bespoke test provision added for crypto
Signed-off-by: jothikumar mani <jothikumar.mani@arm.com>
diff --git a/api-tests/CMakeLists.txt b/api-tests/CMakeLists.txt
index 1e65e5f..7e81299 100644
--- a/api-tests/CMakeLists.txt
+++ b/api-tests/CMakeLists.txt
@@ -1,5 +1,5 @@
#/** @file
-# * Copyright (c) 2019-2022, Arm Limited or its affiliates. All rights reserved.
+# * Copyright (c) 2019-2023, Arm Limited or its affiliates. All rights reserved.
# * SPDX-License-Identifier : Apache-2.0
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
@@ -253,9 +253,16 @@
set(TESTSUITE_DB ${PSA_SUITE_DIR}/its_testsuite.db)
elseif((${SUITE} STREQUAL "PROTECTED_STORAGE") OR (${SUITE} STREQUAL "STORAGE"))
set(TESTSUITE_DB ${PSA_SUITE_DIR}/ps_testsuite.db)
+ elseif(${SUITE} STREQUAL "CRYPTO")
+ if(DEFINED BESPOKE_SUITE_TESTS)
+ set(TESTSUITE_DB ${PSA_ROOT_DIR}/platform/targets/${TARGET}/${BESPOKE_SUITE_TESTS})
+ else()
+ set(TESTSUITE_DB ${PSA_SUITE_DIR}/testsuite.db)
+ endif()
else()
set(TESTSUITE_DB ${PSA_SUITE_DIR}/testsuite.db)
endif()
+ message(STATUS "[PSA] : Selected test database file : ${TESTSUITE_DB}")
else()
if(${SUITE} STREQUAL "INTERNAL_TRUSTED_STORAGE")
if(${SPEC_VERSION} STREQUAL "1.0-BETA2")