replace strings command with grep
`strings | grep` will fail some time. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
a7de78d050
commit
76a51b99b6
1 changed files with 5 additions and 4 deletions
|
@ -3887,8 +3887,8 @@ component_test_aesni () { # ~ 60s
|
||||||
make CC=gcc CFLAGS='-O2 -Werror'
|
make CC=gcc CFLAGS='-O2 -Werror'
|
||||||
# check that there is no AESNI code present
|
# check that there is no AESNI code present
|
||||||
./programs/test/selftest aes | not grep -q "AESNI code"
|
./programs/test/selftest aes | not grep -q "AESNI code"
|
||||||
strings ./programs/test/selftest | not grep -q "AES note: using AESNI"
|
not grep -q "AES note: using AESNI" ./programs/test/selftest
|
||||||
strings ./programs/test/selftest | grep -q "AES note: built-in implementation."
|
grep -q "AES note: built-in implementation." ./programs/test/selftest
|
||||||
|
|
||||||
# test the intrinsics implementation
|
# test the intrinsics implementation
|
||||||
scripts/config.py set MBEDTLS_AESNI_C
|
scripts/config.py set MBEDTLS_AESNI_C
|
||||||
|
@ -3896,10 +3896,11 @@ component_test_aesni () { # ~ 60s
|
||||||
msg "AES tests, test AESNI only"
|
msg "AES tests, test AESNI only"
|
||||||
make clean
|
make clean
|
||||||
make CC=gcc CFLAGS='-Werror -Wall -Wextra -mpclmul -msse2 -maes'
|
make CC=gcc CFLAGS='-Werror -Wall -Wextra -mpclmul -msse2 -maes'
|
||||||
strings ./programs/test/selftest | grep -q "AES note: using AESNI"
|
|
||||||
strings ./programs/test/selftest | not grep -q "AES note: built-in implementation."
|
|
||||||
./programs/test/selftest aes | grep -q "AES note: using AESNI"
|
./programs/test/selftest aes | grep -q "AES note: using AESNI"
|
||||||
./programs/test/selftest aes | not grep -q "AES note: built-in implementation."
|
./programs/test/selftest aes | not grep -q "AES note: built-in implementation."
|
||||||
|
grep -q "AES note: using AESNI" ./programs/test/selftest
|
||||||
|
not grep -q "AES note: built-in implementation." ./programs/test/selftest
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue