mcuboot/sim/mcuboot-sys
Fabio Utzig 9b0ee9034a Enable capturing asserts inside simulator
When building in simulator mode, mock assert() to call an simulator
function which will enable other code to check if some path failed.

The assert checking interface, was added to boot_go which now
returns the low-level invocation results as well as the number of
asserts triggered.

Some new added tests check for assert() and expect it to happen. To not
abort tests, assert() was changed under sim env to not call c assert()
and instead just do some internal calculation which could be checked
by the simulator after a bootloader run and assert() catching behavior
was made optional (each test choses the behavior it needs).

Signed-off-by: Fabio Utzig <utzig@apache.org>
2017-12-21 13:36:34 -07:00
..
csupport Enable capturing asserts inside simulator 2017-12-21 13:36:34 -07:00
mbedtls@f2a597fa3d sim: Move mbedtls into mcuboot-sys 2017-07-12 15:00:57 -06:00
src Enable capturing asserts inside simulator 2017-12-21 13:36:34 -07:00
.gitignore sim: Naive move of binding into mcuboot-sys 2017-07-12 15:00:57 -06:00
Cargo.toml Add MCUBOOT_VALIDATE_SLOT0 as feature 2017-12-21 13:36:34 -07:00
build.rs Add MCUBOOT_VALIDATE_SLOT0 as feature 2017-12-21 13:36:34 -07:00