mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-03 10:20:36 +00:00
Test MBEDTLS_USE_PSA_CRYPTO with Valgrind
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
3ffd6bce81
commit
df3dd4c3bc
@ -3444,30 +3444,43 @@ component_test_memsan () {
|
|||||||
|
|
||||||
component_test_valgrind () {
|
component_test_valgrind () {
|
||||||
msg "build: Release (clang)"
|
msg "build: Release (clang)"
|
||||||
|
# default config, in particular without MBEDTLS_USE_PSA_CRYPTO
|
||||||
CC=clang cmake -D CMAKE_BUILD_TYPE:String=Release .
|
CC=clang cmake -D CMAKE_BUILD_TYPE:String=Release .
|
||||||
make
|
make
|
||||||
|
|
||||||
msg "test: main suites valgrind (Release)"
|
msg "test: main suites, Valgrind (default config)"
|
||||||
make memcheck
|
make memcheck
|
||||||
|
|
||||||
# Optional parts (slow; currently broken on OS X because programs don't
|
# Optional parts (slow; currently broken on OS X because programs don't
|
||||||
# seem to receive signals under valgrind on OS X).
|
# seem to receive signals under valgrind on OS X).
|
||||||
|
# These optional parts don't run on the CI.
|
||||||
if [ "$MEMORY" -gt 0 ]; then
|
if [ "$MEMORY" -gt 0 ]; then
|
||||||
msg "test: ssl-opt.sh --memcheck (Release)"
|
msg "test: ssl-opt.sh --memcheck (default config)"
|
||||||
tests/ssl-opt.sh --memcheck
|
tests/ssl-opt.sh --memcheck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MEMORY" -gt 1 ]; then
|
if [ "$MEMORY" -gt 1 ]; then
|
||||||
msg "test: compat.sh --memcheck (Release)"
|
msg "test: compat.sh --memcheck (default config)"
|
||||||
tests/compat.sh --memcheck
|
tests/compat.sh --memcheck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MEMORY" -gt 0 ]; then
|
if [ "$MEMORY" -gt 0 ]; then
|
||||||
msg "test: context-info.sh --memcheck (Release)"
|
msg "test: context-info.sh --memcheck (default config)"
|
||||||
tests/context-info.sh --memcheck
|
tests/context-info.sh --memcheck
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
component_test_valgrind_psa () {
|
||||||
|
msg "build: Release, full (clang)"
|
||||||
|
# full config, in particular with MBEDTLS_USE_PSA_CRYPTO
|
||||||
|
scripts/config.py full
|
||||||
|
CC=clang cmake -D CMAKE_BUILD_TYPE:String=Release .
|
||||||
|
make
|
||||||
|
|
||||||
|
msg "test: main suites, Valgrind (full config)"
|
||||||
|
make memcheck
|
||||||
|
}
|
||||||
|
|
||||||
support_test_cmake_out_of_source () {
|
support_test_cmake_out_of_source () {
|
||||||
distrib_id=""
|
distrib_id=""
|
||||||
distrib_ver=""
|
distrib_ver=""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user