Simplify aesni test
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
e07c670e47
commit
c2b7264b83
1 changed files with 4 additions and 15 deletions
|
@ -3453,28 +3453,17 @@ support_test_aesni () {
|
||||||
gcc -v 2>&1 | grep Target | grep -q x86_64
|
gcc -v 2>&1 | grep Target | grep -q x86_64
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_aesni () { # ~ 20s
|
component_test_aesni () { # ~ 40s
|
||||||
msg "build: default config with MBEDTLS_HAVE_ASM and MBEDTLS_AESNI_C enabled"
|
msg "build: default config with MBEDTLS_HAVE_ASM and MBEDTLS_AESNI_C enabled"
|
||||||
scripts/config.py set MBEDTLS_AESNI_C
|
scripts/config.py set MBEDTLS_AESNI_C
|
||||||
scripts/config.py set MBEDTLS_HAVE_ASM
|
scripts/config.py set MBEDTLS_HAVE_ASM
|
||||||
|
|
||||||
msg "AES tests, MBEDTLS_AESNI_HAVE_CODE=1 (asm)"
|
msg "AES tests, MBEDTLS_AESNI_HAVE_CODE=1 (asm)"
|
||||||
make lib tests CC=gcc CFLAGS='-O2 -Werror -Wall -Wextra -DMBEDTLS_AESNI_HAVE_CODE=1'
|
make test CC=gcc CFLAGS='-O2 -Werror -Wall -Wextra -DMBEDTLS_AESNI_HAVE_CODE=1'
|
||||||
cd tests
|
|
||||||
for t in `find . -type f -executable -name '*aes*'`; do
|
|
||||||
# Run all the suites with aes in their name
|
|
||||||
./$t
|
|
||||||
done
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
msg "AES tests, MBEDTLS_AESNI_HAVE_CODE=2 (intrinsics)"
|
msg "AES tests, MBEDTLS_AESNI_HAVE_CODE=2 (intrinsics)"
|
||||||
make clean
|
make clean
|
||||||
make lib tests CC=gcc CFLAGS='-O2 -Werror -Wall -Wextra -mpclmul -msse2 -maes -DMBEDTLS_AESNI_HAVE_CODE=2'
|
make test CC=gcc CFLAGS='-O2 -Werror -Wall -Wextra -mpclmul -msse2 -maes -DMBEDTLS_AESNI_HAVE_CODE=2'
|
||||||
cd tests
|
|
||||||
for t in `find . -type f -executable -name '*aes*'`; do
|
|
||||||
./$t
|
|
||||||
done
|
|
||||||
cd ..
|
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_aes_fewer_tables () {
|
component_test_aes_fewer_tables () {
|
||||||
|
|
Loading…
Reference in a new issue