Marc Moreno Berengue | ffd3c46 | 2017-11-29 16:09:52 +0000 | [diff] [blame] | 1 | /* |
Jamie Fox | 06aee08 | 2017-12-18 17:00:15 +0000 | [diff] [blame^] | 2 | * Copyright (c) 2017-2018, Arm Limited. All rights reserved. |
Marc Moreno Berengue | ffd3c46 | 2017-11-29 16:09:52 +0000 | [diff] [blame] | 3 | * |
| 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 | |
| 17 | static struct test_suite_t test_suites[] = { |
| 18 | #ifdef SERVICES_TEST_NS |
| 19 | /* Non-secure SST test cases */ |
| 20 | {®ister_testsuite_ns_sst_interface, 0, 0, 0}, |
| 21 | |
Jamie Fox | 06aee08 | 2017-12-18 17:00:15 +0000 | [diff] [blame^] | 22 | #ifdef SST_TEST_SERVICES |
| 23 | /* Non-secure SST referenced access testsuite */ |
| 24 | {®ister_testsuite_ns_sst_ref_access, 0, 0, 0}, |
| 25 | #endif |
| 26 | |
Marc Moreno Berengue | ffd3c46 | 2017-11-29 16:09:52 +0000 | [diff] [blame] | 27 | #ifdef CORE_TEST_SERVICES |
| 28 | /* Non-secure invert test cases */ |
| 29 | /* Note: since this is sample code, only run if test services are enabled */ |
| 30 | {®ister_testsuite_ns_invert_interface, 0, 0, 0}, |
| 31 | #endif |
| 32 | #endif |
| 33 | |
| 34 | #ifdef CORE_TEST_POSITIVE |
| 35 | /* Non-secure core test cases */ |
| 36 | {®ister_testsuite_ns_core_positive, 0, 0, 0}, |
| 37 | #endif |
| 38 | |
| 39 | #ifdef CORE_TEST_INTERACTIVE |
| 40 | /* Non-secure interactive test cases */ |
| 41 | {®ister_testsuite_ns_core_interactive, 0, 0, 0}, |
| 42 | #endif |
| 43 | }; |
| 44 | |
| 45 | void start_integ_test(void) |
| 46 | { |
| 47 | integ_test("Non-secure", test_suites, |
| 48 | sizeof(test_suites)/sizeof(test_suites[0])); |
| 49 | } |