mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 00:18:16 +00:00
Extend zeroize tests to multiple optimizations
Extend the all.sh test to cover multiple compiler optimization levels. At the momment, the test is run using gcc and clang.
This commit is contained in:
parent
24768bfa37
commit
2967381ccd
1 changed files with 8 additions and 9 deletions
|
@ -907,15 +907,14 @@ make test
|
|||
cd "$MBEDTLS_ROOT_DIR"
|
||||
rm -rf "$OUT_OF_SOURCE_DIR"
|
||||
|
||||
msg "test: gcc, mbedtls_zeroize()"
|
||||
cleanup
|
||||
CC=gcc DEBUG=1 make programs
|
||||
gdb -x tests/scripts/test_zeroize.gdb
|
||||
|
||||
msg "test: clang, mbedtls_zeroize()"
|
||||
cleanup
|
||||
CC=clang DEBUG=1 make programs
|
||||
gdb -x tests/scripts/test_zeroize.gdb
|
||||
for optimization_flag in -O2 -O3 -Ofast -Os; do
|
||||
for compiler in clang gcc; do
|
||||
msg "test: $compiler $optimization_flag, mbedtls_zeroize()"
|
||||
cleanup
|
||||
CC="$compiler" DEBUG=1 CFLAGS="$optimization_flag" make programs
|
||||
gdb -x tests/scripts/test_zeroize.gdb -nw -batch -nx
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue