Test: PSA Arch test for the split build
MVP for PSA arch tests for split build. Further work required but
builds and executes tests for ITS, ATESTATION, CRYPTO(hangs)
To execute need SPE binaries in CONFIG_SPE_PATH, ex. /prj/build-tfm/api_ns
and PSA Arch test repo in PSA_ARCH_TESTS_PATH ex ../pse-arch-tests then:
cmake -S . -B build -DCONFIG_SPE_PATH=/prj/build/api_ns -DPSA_ARCH_TESTS_PATH=<..>/psa-arch-tests
cmake --build build -- tfm_app_binaries
Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: I52c17144373ea6cb95277e3939e11213e9318729
diff --git a/app_test_psa_arch/test_app.c b/app_test_psa_arch/test_app.c
new file mode 100644
index 0000000..80190bd
--- /dev/null
+++ b/app_test_psa_arch/test_app.c
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2017-2022, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "test_app.h"
+#include "tfm_log.h"
+
+/**
+ * \brief This symbol is the entry point provided by the PSA API compliance
+ * test libraries
+ */
+extern void val_entry(void);
+
+/**
+ * \brief Services test thread
+ *
+ */
+__attribute__((noreturn))
+void test_app(void *argument)
+{
+ UNUSED_VARIABLE(argument);
+
+ val_entry();
+
+ /* Output EOT char for test environments like FVP. */
+ LOG_MSG("\x04");
+
+ /* End of test */
+ for (;;) {
+ }
+}