Add accelerator only tests.
The cases with runtime detection have been covered by `full` configuration Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
0d4f4e5b01
commit
d767cc4106
2 changed files with 62 additions and 0 deletions
|
@ -4941,6 +4941,43 @@ component_check_test_helpers () {
|
|||
python3 -m unittest tests/scripts/translate_ciphers.py 2>&1
|
||||
}
|
||||
|
||||
component_test_aes_builtin_only () {
|
||||
msg "Test: AES builtin only"
|
||||
scripts/config.py unset MBEDTLS_AESNI_C
|
||||
scripts/config.py unset MBEDTLS_PADLOCK_C
|
||||
scripts/config.py unset MBEDTLS_AESCE_C
|
||||
scripts/config.py unset MBEDTLS_AES_HAS_NO_BUILTIN
|
||||
msg "build: make, AES built-in only" # ~10s
|
||||
make
|
||||
|
||||
msg "selftest: AES built-in only" # ~10s
|
||||
programs/test/selftest
|
||||
}
|
||||
|
||||
component_test_aes_aesni_only () {
|
||||
msg "Test: AESNI only"
|
||||
scripts/config.py set MBEDTLS_AESNI_C
|
||||
scripts/config.py unset MBEDTLS_PADLOCK_C
|
||||
scripts/config.py unset MBEDTLS_AESCE_C
|
||||
scripts/config.py set MBEDTLS_AES_HAS_NO_BUILTIN
|
||||
msg "build: AESNI only" # ~10s
|
||||
make
|
||||
|
||||
msg "selftest: AESNI only" # ~10s
|
||||
programs/test/selftest
|
||||
}
|
||||
|
||||
component_test_aes_padlock_only () {
|
||||
msg "Test: AES, VIA padlock only"
|
||||
scripts/config.py unset MBEDTLS_AESNI_C
|
||||
scripts/config.py set MBEDTLS_PADLOCK_C
|
||||
scripts/config.py unset MBEDTLS_AESCE_C
|
||||
scripts/config.py set MBEDTLS_AES_HAS_NO_BUILTIN
|
||||
msg "build: AES, VIA padlock only" # ~10s
|
||||
make CC=gcc CFLAGS="$ASAN_CFLAGS -m32 -O2" LDFLAGS="-m32 $ASAN_CFLAGS"
|
||||
|
||||
}
|
||||
|
||||
################################################################
|
||||
#### Termination
|
||||
################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue