blob: 63f0e962f109ba3d38c92aed9cf637bfc26ee6f8 [file] [log] [blame]
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +00001/*
Mate Toth-Pal349714a2018-02-23 15:30:24 +01002 * 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/secure/sst_tests.h"
Antonio de Angelis2eeac642018-08-21 14:23:22 +010014#include "test/suites/audit/secure/audit_s_tests.h"
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +000015#include "test/suites/invert/secure/invert_s_tests.h"
Marc Moreno Berengueace460a2018-05-03 12:57:11 +010016#include "secure_fw/services/secure_storage/sst_object_system.h"
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +000017
18static struct test_suite_t test_suites[] = {
19#ifdef SERVICES_TEST_S
20 /* Secure SST test cases */
21 {&register_testsuite_s_sst_sec_interface, 0, 0, 0},
22 {&register_testsuite_s_sst_reliability, 0, 0, 0},
23
Antonio de Angelis2eeac642018-08-21 14:23:22 +010024 /* Secure Audit Logging test cases */
25 {&register_testsuite_s_audit_interface, 0, 0, 0},
Antonio de Angelis7852dff2018-02-07 11:15:54 +000026
Mate Toth-Pal349714a2018-02-23 15:30:24 +010027#ifdef TFM_PARTITION_TEST_CORE
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +000028 /* Secure invert test cases */
29 /* Note: since this is sample code, only run if test services are enabled */
30 {&register_testsuite_s_invert_interface, 0, 0, 0},
31#endif
32#endif /* SERVICES_TEST_S */
33};
34
35static void setup_integ_test(void)
36{
37 /* Left empty intentionally, currently implemented
38 * test suites require no setup
39 */
40}
41
42static void tear_down_integ_test(void)
43{
44 /* Leave the SST area clean after execute the tests */
Marc Moreno Berengueace460a2018-05-03 12:57:11 +010045 sst_system_wipe_all();
46 sst_system_prepare();
Marc Moreno Berengueffd3c462017-11-29 16:09:52 +000047}
48
49void start_integ_test(void)
50{
51 setup_integ_test();
52 integ_test("Secure",
53 test_suites,
54 sizeof(test_suites)/sizeof(test_suites[0]));
55 tear_down_integ_test();
56}