blob: 8b51f10ee7db3b39b771ed59c3dc20be5f390cab [file] [log] [blame]
Minos Galanakisada21b02024-07-26 12:34:19 +01001# components-compliance.sh
Minos Galanakis6aab5b72024-07-25 14:24:37 +01002#
3# Copyright The Mbed TLS Contributors
4# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5
Minos Galanakis609f7492024-07-31 16:39:28 +01006# This file contains test components that are executed by all.sh
Minos Galanakis6aab5b72024-07-25 14:24:37 +01007
8################################################################
9#### Compliance Testing
10################################################################
11
Minos Galanakis328b9e82024-07-26 15:23:39 +010012component_test_psa_compliance () {
13 # The arch tests build with gcc, so require use of gcc here to link properly
14 msg "build: make, default config (out-of-box), libmbedcrypto.a only"
15 CC=gcc make -C library libmbedcrypto.a
16
17 msg "unit test: test_psa_compliance.py"
18 CC=gcc ./tests/scripts/test_psa_compliance.py
19}
20
21support_test_psa_compliance () {
22 # psa-compliance-tests only supports CMake >= 3.10.0
23 ver="$(cmake --version)"
24 ver="${ver#cmake version }"
25 ver_major="${ver%%.*}"
26
27 ver="${ver#*.}"
28 ver_minor="${ver%%.*}"
29
30 [ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ]
31}
Minos Galanakis6aab5b72024-07-25 14:24:37 +010032