blob: e691bcf5f74f48a5957cc3f54be8725919ca2fd8 [file] [log] [blame]
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +00001/*
Jamie Fox06aee082017-12-18 17:00:15 +00002 * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include "integ_test.h"
9#include "integ_test_helper.h"
10#include "test_framework.h"
11
12/* Service specific includes */
13#include "test/suites/sst/non_secure/sst_ns_tests.h"
14#include "test/suites/invert/non_secure/invert_ns_tests.h"
15#include "test/suites/core/non_secure/core_ns_tests.h"
16
17static struct test_suite_t test_suites[] = {
18#ifdef SERVICES_TEST_NS
19 /* Non-secure SST test cases */
20 {&register_testsuite_ns_sst_interface, 0, 0, 0},
Jamie Fox0ee2ca52018-02-13 18:05:50 +000021 {&register_testsuite_ns_sst_policy, 0, 0, 0},
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +000022
Mate Toth-Pal349714a2018-02-23 15:30:24 +010023#ifdef TFM_PARTITION_TEST_SST
Jamie Fox06aee082017-12-18 17:00:15 +000024 /* Non-secure SST referenced access testsuite */
25 {&register_testsuite_ns_sst_ref_access, 0, 0, 0},
26#endif
27
Mate Toth-Pal349714a2018-02-23 15:30:24 +010028#ifdef TFM_PARTITION_TEST_CORE
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +000029 /* Non-secure invert test cases */
30 /* Note: since this is sample code, only run if test services are enabled */
31 {&register_testsuite_ns_invert_interface, 0, 0, 0},
32#endif
33#endif
34
35#ifdef CORE_TEST_POSITIVE
36 /* Non-secure core test cases */
37 {&register_testsuite_ns_core_positive, 0, 0, 0},
38#endif
39
40#ifdef CORE_TEST_INTERACTIVE
41 /* Non-secure interactive test cases */
42 {&register_testsuite_ns_core_interactive, 0, 0, 0},
43#endif
44};
45
46void start_integ_test(void)
47{
48 integ_test("Non-secure", test_suites,
49 sizeof(test_suites)/sizeof(test_suites[0]));
50}