Skip to content

Commit 35af1d8

Browse files
component-configuration-crypto: Undo modifications to reference components.
analyze_outcomes will fail when the libtestdriver1 is using cmake and the reference component is on cmake. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
1 parent 321ee13 commit 35af1d8

File tree

1 file changed

+16
-24
lines changed

1 file changed

+16
-24
lines changed

tests/scripts/components-configuration-crypto.sh

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,10 @@ component_test_psa_crypto_config_reference_ecc_ecp_light_only () {
972972

973973
config_psa_crypto_config_ecp_light_only 0
974974

975-
cmake -D CMAKE_BUILD_TYPE:String=Release .
976-
cmake --build .
975+
$MAKE_COMMAND
977976

978977
msg "test suites: full with non-accelerated EC algs"
979-
make test
978+
$MAKE_COMMAND test
980979

981980
msg "ssl-opt: full with non-accelerated EC algs"
982981
tests/ssl-opt.sh
@@ -1071,11 +1070,10 @@ component_test_psa_crypto_config_reference_ecc_no_ecp_at_all () {
10711070

10721071
config_psa_crypto_no_ecp_at_all 0
10731072

1074-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1075-
cmake --build .
1073+
$MAKE_COMMAND
10761074

10771075
msg "test: full + non accelerated EC algs"
1078-
make test
1076+
$MAKE_COMMAND test
10791077

10801078
msg "ssl-opt: full + non accelerated EC algs"
10811079
tests/ssl-opt.sh
@@ -1238,11 +1236,10 @@ common_test_psa_crypto_config_reference_ecc_ffdh_no_bignum () {
12381236

12391237
config_psa_crypto_config_accel_ecc_ffdh_no_bignum 0 "$test_target"
12401238

1241-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1242-
cmake --build .
1239+
$MAKE_COMMAND
12431240

12441241
msg "test suites: full + non accelerated EC algs + USE_PSA"
1245-
make test
1242+
$MAKE_COMMAND test
12461243

12471244
msg "ssl-opt: full + non accelerated $accel_text algs + USE_PSA"
12481245
tests/ssl-opt.sh
@@ -1444,13 +1441,12 @@ component_test_psa_crypto_config_reference_rsa_crypto () {
14441441

14451442
# Build
14461443
# -----
1447-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1448-
cmake --build .
1444+
$MAKE_COMMAND
14491445

14501446
# Run the tests
14511447
# -------------
14521448
msg "test: crypto_full with non-accelerated RSA"
1453-
make test
1449+
$MAKE_COMMAND test
14541450
}
14551451

14561452
# This is a temporary test to verify that full RSA support is present even when
@@ -1600,11 +1596,10 @@ component_test_psa_crypto_config_reference_hash_use_psa () {
16001596

16011597
config_psa_crypto_hash_use_psa 0
16021598

1603-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1604-
cmake --build .
1599+
$MAKE_COMMAND
16051600

16061601
msg "test: full without accelerated hashes"
1607-
make test
1602+
$MAKE_COMMAND test
16081603

16091604
msg "test: ssl-opt.sh, full without accelerated hashes"
16101605
tests/ssl-opt.sh
@@ -1670,11 +1665,10 @@ component_test_psa_crypto_config_reference_hmac () {
16701665

16711666
config_psa_crypto_hmac_use_psa 0
16721667

1673-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1674-
cmake --build .
1668+
$MAKE_COMMAND
16751669

16761670
msg "test: full without accelerated hmac"
1677-
make test
1671+
$MAKE_COMMAND test
16781672
}
16791673

16801674
component_test_psa_crypto_config_accel_aead () {
@@ -1775,11 +1769,10 @@ component_test_psa_crypto_config_reference_cipher_aead_cmac () {
17751769
msg "build: full config with non-accelerated cipher inc. AEAD and CMAC"
17761770
common_psa_crypto_config_accel_cipher_aead_cmac
17771771

1778-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1779-
cmake --build .
1772+
$MAKE_COMMAND
17801773

17811774
msg "test: full config with non-accelerated cipher inc. AEAD and CMAC"
1782-
make test
1775+
$MAKE_COMMAND test
17831776

17841777
msg "ssl-opt: full config with non-accelerated cipher inc. AEAD and CMAC"
17851778
# Exclude password-protected key tests as in test_psa_crypto_config_accel_cipher_aead_cmac.
@@ -1890,11 +1883,10 @@ component_test_full_block_cipher_legacy_dispatch () {
18901883

18911884
common_block_cipher_dispatch 0
18921885

1893-
cmake -D CMAKE_BUILD_TYPE:String=Release .
1894-
cmake --build .
1886+
$MAKE_COMMAND
18951887

18961888
msg "test: full + legacy dispatch in block_cipher"
1897-
make test
1889+
$MAKE_COMMAND test
18981890
}
18991891

19001892
component_test_aead_chachapoly_disabled () {

0 commit comments

Comments
 (0)