diff --git a/tests/scripts/check-generated-files.sh b/tests/scripts/check-generated-files.sh index 865e24777d..d4bfca4143 100755 --- a/tests/scripts/check-generated-files.sh +++ b/tests/scripts/check-generated-files.sh @@ -179,4 +179,4 @@ fi # Generated files that are present in the repository even in the development # branch. (This is intended to be temporary, until the generator scripts are # fully reviewed and the build scripts support a generated header file.) -check framework/scripts/generate_psa_wrappers.py tests/include/test/psa_test_wrappers.h tests/src/psa_test_wrappers.c +check framework/scripts/generate_psa_wrappers.py tf-psa-crypto/tests/include/test/psa_test_wrappers.h tf-psa-crypto/tests/src/psa_test_wrappers.c diff --git a/tf-psa-crypto/CMakeLists.txt b/tf-psa-crypto/CMakeLists.txt index a16e20522b..5968276045 100644 --- a/tf-psa-crypto/CMakeLists.txt +++ b/tf-psa-crypto/CMakeLists.txt @@ -403,7 +403,8 @@ if(ENABLE_TESTING OR ENABLE_PROGRAMS) file(GLOB MBEDTLS_TEST_FILES ${MBEDTLS_FRAMEWORK_DIR}/tests/src/*.c ${MBEDTLS_FRAMEWORK_DIR}/tests/src/drivers/*.c - ${MBEDTLS_DIR}/tests/src/*.c) + ${MBEDTLS_DIR}/tests/src/*.c + ${TF_PSA_CRYPTO_DIR}/tests/src/*.c) add_library(tf_psa_crypto_test OBJECT ${MBEDTLS_TEST_FILES}) set_base_compile_options(tf_psa_crypto_test) if(GEN_FILES) @@ -427,6 +428,7 @@ if(ENABLE_TESTING OR ENABLE_PROGRAMS) target_include_directories(tf_psa_crypto_test PRIVATE ${MBEDTLS_FRAMEWORK_DIR}/tests/include PRIVATE ${MBEDTLS_DIR}/tests/include + PRIVATE ${TF_PSA_CRYPTO_DIR}/tests/include PRIVATE ${MBEDTLS_DIR}/include PRIVATE include PRIVATE drivers/builtin/include diff --git a/tests/include/test/psa_test_wrappers.h b/tf-psa-crypto/tests/include/test/psa_test_wrappers.h similarity index 100% rename from tests/include/test/psa_test_wrappers.h rename to tf-psa-crypto/tests/include/test/psa_test_wrappers.h diff --git a/tests/src/psa_test_wrappers.c b/tf-psa-crypto/tests/src/psa_test_wrappers.c similarity index 100% rename from tests/src/psa_test_wrappers.c rename to tf-psa-crypto/tests/src/psa_test_wrappers.c