Skip to content

Commit c42d07f

Browse files
Import PSA compliance test script entry point from the framework
Signed-off-by: Gilles Peskine <[email protected]>
1 parent f30c007 commit c42d07f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env python3
2+
"""Run the PSA Crypto API compliance test suite.
3+
4+
Clone the repo and check out the commit specified by PSA_ARCH_TEST_REPO and PSA_ARCH_TEST_REF,
5+
then compile and run the test suite. The clone is stored at <repository root>/psa-arch-tests.
6+
Known defects in either the test suite or TF-PSA-Crypto - identified by their test
7+
number - are ignored, while unexpected failures AND successes are reported as errors, to help
8+
keep the list of known defects as up to date as possible.
9+
"""
10+
11+
# Copyright The Mbed TLS Contributors
12+
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
13+
14+
from typing import List
15+
16+
import scripts_path # pylint: disable=unused-import
17+
from mbedtls_framework import psa_compliance
18+
19+
PSA_ARCH_TESTS_REF = 'v23.06_API1.5_ADAC_EAC'
20+
21+
# PSA Compliance tests we expect to fail due to known defects in Mbed TLS /
22+
# TF-PSA-Crypto (or the test suite).
23+
# The test numbers correspond to the numbers used by the console output of the test suite.
24+
# Test number 2xx corresponds to the files in the folder
25+
# psa-arch-tests/api-tests/dev_apis/crypto/test_c0xx
26+
EXPECTED_FAILURES = [] # type: List[int]
27+
28+
if __name__ == '__main__':
29+
psa_compliance.main(PSA_ARCH_TESTS_REF, expected_failures=EXPECTED_FAILURES)

0 commit comments

Comments
 (0)