From b298d1f8d228781a5918fc53dcaf0dbf15538451 Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Thu, 1 Aug 2024 16:58:17 +0100 Subject: [PATCH] Extract compliance-components into a separate file. Signed-off-by: Minos Galanakis --- tests/scripts/components-compliance.sh | 21 +++++++++++++++++++++ tests/scripts/components.sh | 21 --------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/scripts/components-compliance.sh b/tests/scripts/components-compliance.sh index 0ba19aaa06..38bcd01430 100644 --- a/tests/scripts/components-compliance.sh +++ b/tests/scripts/components-compliance.sh @@ -8,3 +8,24 @@ ################################################################ #### Compliance Testing ################################################################ + +component_test_psa_compliance () { + # The arch tests build with gcc, so require use of gcc here to link properly + msg "build: make, default config (out-of-box), libmbedcrypto.a only" + CC=gcc make -C library libmbedcrypto.a + + msg "unit test: test_psa_compliance.py" + CC=gcc ./tests/scripts/test_psa_compliance.py +} + +support_test_psa_compliance () { + # psa-compliance-tests only supports CMake >= 3.10.0 + ver="$(cmake --version)" + ver="${ver#cmake version }" + ver_major="${ver%%.*}" + + ver="${ver#*.}" + ver_minor="${ver%%.*}" + + [ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ] +} diff --git a/tests/scripts/components.sh b/tests/scripts/components.sh index 0c24c703ae..e601022fda 100644 --- a/tests/scripts/components.sh +++ b/tests/scripts/components.sh @@ -4986,24 +4986,3 @@ component_release_test_valgrind_psa () { make memcheck } -component_test_psa_compliance () { - # The arch tests build with gcc, so require use of gcc here to link properly - msg "build: make, default config (out-of-box), libmbedcrypto.a only" - CC=gcc make -C library libmbedcrypto.a - - msg "unit test: test_psa_compliance.py" - CC=gcc ./tests/scripts/test_psa_compliance.py -} - -support_test_psa_compliance () { - # psa-compliance-tests only supports CMake >= 3.10.0 - ver="$(cmake --version)" - ver="${ver#cmake version }" - ver_major="${ver%%.*}" - - ver="${ver#*.}" - ver_minor="${ver%%.*}" - - [ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ] -} -