diff --git a/tests/scripts/components-pqcp.sh b/tests/scripts/components-pqcp.sh new file mode 100644 index 0000000000..aead820771 --- /dev/null +++ b/tests/scripts/components-pqcp.sh @@ -0,0 +1,26 @@ +# components-pqcp.sh +# +# Copyright The Mbed TLS Contributors +# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later + +# This file contains test components that are executed by all.sh + +################################################################ +#### PQCP Testing +################################################################ + +support_test_pqcp_mldsa_native_upstream_all () { + python3 -c 'import sys; exit(1 if sys.version_info < (3, 9) else 0)' +} + +# This condition deliberately runs when all.sh sources this file. It hides the +# component from both `--list-all-components` and explicit component requests on +# runners whose Python is too old for mldsa-native's generated-test checks. +if support_test_pqcp_mldsa_native_upstream_all; then + component_test_pqcp_mldsa_native_upstream_all () { + msg "test: mldsa-native upstream all --opt ALL --examples" + + cd drivers/pqcp/mldsa-native + ./scripts/tests all --opt ALL --examples + } +fi