Skip to content

Commit 72c7255

Browse files
committed
CMake: Add support for compliance_attestation test
Greentea test for PSA compliance_attestation can now build with CMake.
1 parent 75b9273 commit 72c7255

File tree

2 files changed

+23
-0
lines changed
  • platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/TESTS/compliance_attestation/test_a001

2 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2021 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
5+
6+
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../ CACHE INTERNAL "")
7+
set(TEST_TARGET mbed-platform-psa-compliance-attestation-a001)
8+
9+
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
10+
11+
project(${TEST_TARGET})
12+
13+
mbed_greentea_add_test(
14+
TEST_NAME
15+
${TEST_TARGET}
16+
TEST_SOURCES
17+
main.c
18+
test_entry.c
19+
test_a001.c
20+
TEST_REQUIRED_LIBS
21+
mbed-psa-tal
22+
)

platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/TESTS/compliance_attestation/test_a001/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#if !defined(MBED_CONF_RTOS_PRESENT)
2121
#error [NOT_SUPPORTED] PSA compliance attestation test cases require RTOS to run.
2222
#else
23+
2324
void test_entry_a001(val_api_t *val_api, psa_api_t *psa_api);
2425

2526
int main(void)

0 commit comments

Comments
 (0)