Skip to content

Commit

Permalink
tests: CMake: Skip PSA Attestation test if unsupported
Browse files Browse the repository at this point in the history
The PSA Attestation test suite requires full RTOS and PSA support.
  • Loading branch information
LDong-Arm committed Jul 14, 2021
1 parent 9228210 commit 094d24c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)

project(${TEST_TARGET})

if(MBED_TEST_BAREMETAL)
set(TEST_SKIPPED "RTOS required")
elseif(NOT ("PSA" IN_LIST MBED_TARGET_LABELS AND "EXPERIMENTAL_API" IN_LIST MBED_TARGET_LABELS))
set(TEST_SKIPPED "Experiemental API and PSA required")
endif()

mbed_greentea_add_test(
TEST_NAME
${TEST_TARGET}
TEST_SOURCES
main.cpp
TEST_SKIPPED
${TEST_SKIPPED}
)

0 comments on commit 094d24c

Please sign in to comment.