Run aes tests only for test_aesni
That can reduce time of selftest Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
69dd441eb5
commit
1221a31cc4
1 changed files with 3 additions and 3 deletions
|
@ -3869,14 +3869,14 @@ component_test_aesni () { # ~ 60s
|
||||||
make clean
|
make clean
|
||||||
make test programs/test/selftest CC=gcc CFLAGS='-Werror -Wall -Wextra -mpclmul -msse2 -maes'
|
make test programs/test/selftest CC=gcc CFLAGS='-Werror -Wall -Wextra -mpclmul -msse2 -maes'
|
||||||
# check that we built intrinsics - this should be used by default when supported by the compiler
|
# check that we built intrinsics - this should be used by default when supported by the compiler
|
||||||
./programs/test/selftest | grep "AESNI code" | grep -q "intrinsics"
|
./programs/test/selftest aes | grep "AESNI code" | grep -q "intrinsics"
|
||||||
|
|
||||||
# test the asm implementation
|
# test the asm implementation
|
||||||
msg "AES tests, test assembly"
|
msg "AES tests, test assembly"
|
||||||
make clean
|
make clean
|
||||||
make test programs/test/selftest CC=gcc CFLAGS='-Werror -Wall -Wextra -mno-pclmul -mno-sse2 -mno-aes'
|
make test programs/test/selftest CC=gcc CFLAGS='-Werror -Wall -Wextra -mno-pclmul -mno-sse2 -mno-aes'
|
||||||
# check that we built assembly - this should be built if the compiler does not support intrinsics
|
# check that we built assembly - this should be built if the compiler does not support intrinsics
|
||||||
./programs/test/selftest | grep "AESNI code" | grep -q "assembly"
|
./programs/test/selftest aes | grep "AESNI code" | grep -q "assembly"
|
||||||
|
|
||||||
# test the plain C implementation
|
# test the plain C implementation
|
||||||
scripts/config.py unset MBEDTLS_AESNI_C
|
scripts/config.py unset MBEDTLS_AESNI_C
|
||||||
|
@ -3884,7 +3884,7 @@ component_test_aesni () { # ~ 60s
|
||||||
make clean
|
make clean
|
||||||
make test programs/test/selftest CC=gcc CFLAGS='-O2 -Werror'
|
make test programs/test/selftest CC=gcc CFLAGS='-O2 -Werror'
|
||||||
# check that there is no AESNI code present
|
# check that there is no AESNI code present
|
||||||
./programs/test/selftest | not grep -q "AESNI code"
|
./programs/test/selftest aes | not grep -q "AESNI code"
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_aes_only_128_bit_keys () {
|
component_test_aes_only_128_bit_keys () {
|
||||||
|
|
Loading…
Reference in a new issue