File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,20 @@ make -C py
20
20
./.ci/check-release-sigs
21
21
22
22
# Make build directories so we can do some static analysis
23
+ # - prepare-tidy will create build dirs and more importantly the
24
+ # compile_commands.json needed for clang-tidy
23
25
make prepare-tidy
24
26
./.ci/check-tidy
25
27
26
28
# Build and run Unit tests
27
- make -j8 unit-test SANITIZE=OFF
29
+ make -j8 unit-test
28
30
make -j8 run-unit-tests
29
31
make -j8 run-rust-unit-tests
32
+
33
+ # Delete the build directories so that SANITIZE=OFF will take effect
34
+ # Valgrind cannot run programs compiled with address sanitizing on.
35
+ make clean
36
+ make -j8 unit-test SANITIZE=OFF
30
37
make -j8 run-valgrind-on-unit-tests
31
38
32
39
# BUild simulator
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ coverage: | build-build
105
105
# ./build/bin/test_ui_component_gestures;
106
106
run-valgrind-on-unit-tests :
107
107
$(MAKE ) unit-test
108
- bash -c ' find build-build/bin/ -name " test_*" -exec valgrind --leak-check=yes --track-origins=yes {} \; '
108
+ bash -ec ' for exe in build-build/bin/test_*; do valgrind --leak-check=yes --track-origins=yes --error-exitcode=1 --exit-on-first-error=yes $$exe; done '
109
109
flash-dev-firmware :
110
110
./py/load_firmware.py build/bin/firmware.bin --debug
111
111
jlink-flash-bootloader-development : | build
Original file line number Diff line number Diff line change @@ -107,9 +107,9 @@ static void _test_memory_attestation(void** state)
107
107
uint8_t expected_pubkey [64 ];
108
108
memset (expected_pubkey , 0x55 , sizeof (expected_pubkey ));
109
109
uint8_t expected_certificate [64 ];
110
- memset (expected_pubkey , 0x66 , sizeof (expected_certificate ));
110
+ memset (expected_certificate , 0x66 , sizeof (expected_certificate ));
111
111
uint8_t expected_root_pubkey_identifier [32 ];
112
- memset (expected_pubkey , 0x77 , sizeof (expected_root_pubkey_identifier ));
112
+ memset (expected_root_pubkey_identifier , 0x77 , sizeof (expected_root_pubkey_identifier ));
113
113
114
114
uint8_t pubkey [64 ];
115
115
uint8_t certificate [64 ];
You can’t perform that action at this time.
0 commit comments