Etienne Carriere | 9b7b70d | 2020-05-16 10:27:23 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 2 | /* |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 3 | * Copyright (c) 2016, Linaro Limited |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 4 | * Copyright (c) 2014, STMicroelectronics International N.V. |
Jelle Sels | 252faa9 | 2020-06-05 14:56:30 +0200 | [diff] [blame] | 5 | * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved. |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 8 | #include <err.h> |
Etienne Carriere | 7d18f55 | 2017-04-04 09:46:29 +0200 | [diff] [blame] | 9 | #include <inttypes.h> |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 10 | #include <signal.h> |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 11 | #include <stdio.h> |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 12 | #include <stdlib.h> |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 13 | #include <string.h> |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 14 | #include <unistd.h> |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 15 | |
Jens Wiklander | 6f34e00 | 2018-05-03 21:21:54 +0200 | [diff] [blame] | 16 | #ifdef OPENSSL_FOUND |
| 17 | #include <openssl/crypto.h> |
| 18 | #include <openssl/err.h> |
| 19 | #include <openssl/evp.h> |
| 20 | #endif |
| 21 | |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 22 | #include <adbg.h> |
| 23 | #include "xtest_test.h" |
| 24 | #include "xtest_helpers.h" |
Igor Opaniuk | 136644a | 2016-09-13 13:40:56 +0300 | [diff] [blame] | 25 | |
| 26 | /* include here shandalone tests */ |
Jerome Forissier | aa43c90 | 2023-05-29 17:21:00 +0200 | [diff] [blame^] | 27 | #include "clear_storage.h" |
Igor Opaniuk | f9b7fd2 | 2016-09-16 16:22:34 +0300 | [diff] [blame] | 28 | #include "crypto_common.h" |
Jens Wiklander | f261a6d | 2017-11-09 16:45:51 +0100 | [diff] [blame] | 29 | #include "install_ta.h" |
Jens Wiklander | 254a3e3 | 2019-01-31 12:25:08 +0100 | [diff] [blame] | 30 | #include "stats.h" |
Igor Opaniuk | 136644a | 2016-09-13 13:40:56 +0300 | [diff] [blame] | 31 | |
Jens Wiklander | 74abfe3 | 2017-01-03 14:17:47 +0100 | [diff] [blame] | 32 | ADBG_SUITE_DEFINE(benchmark); |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 33 | #ifdef WITH_GP_TESTS |
| 34 | ADBG_SUITE_DEFINE(gp); |
| 35 | #endif |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 36 | #ifdef CFG_PKCS11_TA |
| 37 | ADBG_SUITE_DEFINE(pkcs11); |
| 38 | #endif |
Jelle Sels | 252faa9 | 2020-06-05 14:56:30 +0200 | [diff] [blame] | 39 | #ifdef CFG_SPMC_TESTS |
| 40 | ADBG_SUITE_DEFINE(ffa_spmc); |
| 41 | #endif |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 42 | ADBG_SUITE_DEFINE(regression); |
Igor Opaniuk | 136644a | 2016-09-13 13:40:56 +0300 | [diff] [blame] | 43 | |
Etienne Carriere | b11820c | 2020-05-26 11:55:33 +0200 | [diff] [blame] | 44 | char *xtest_tee_name = NULL; |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 45 | unsigned int level = 0; |
| 46 | static const char glevel[] = "0"; |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 47 | |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 48 | #ifdef WITH_GP_TESTS |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 49 | #define GP_SUITE "+gp" |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 50 | #else |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 51 | #define GP_SUITE "" |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 52 | #endif |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 53 | |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 54 | #ifdef CFG_PKCS11_TA |
| 55 | #define PKCS11_SUITE "+pkcs11" |
| 56 | #else |
| 57 | #define PKCS11_SUITE "" |
| 58 | #endif |
| 59 | |
Jelle Sels | 252faa9 | 2020-06-05 14:56:30 +0200 | [diff] [blame] | 60 | #ifdef CFG_SPMC_TESTS |
| 61 | #define FFA_SPMC_SUITE "+ffa_spmc" |
| 62 | #else |
| 63 | #define FFA_SPMC_SUITE "" |
| 64 | #endif |
| 65 | |
| 66 | static char gsuitename[] = "regression" GP_SUITE PKCS11_SUITE FFA_SPMC_SUITE; |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 67 | |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 68 | void usage(char *program); |
| 69 | |
| 70 | void usage(char *program) |
| 71 | { |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 72 | printf("Usage: %s <options> [[-x] <test-id>]...]\n", program); |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 73 | printf("\n"); |
| 74 | printf("options:\n"); |
Etienne Carriere | ab02af5 | 2020-05-26 09:33:26 +0200 | [diff] [blame] | 75 | printf("\t-d <TEE-identifer> TEE identifier. Use default TEE if not set\n"); |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 76 | printf("\t-l <level> Test level [0-15]. Values higher than 0 enable\n"); |
| 77 | printf("\t optional tests. Default: 0. All tests: 15.\n"); |
| 78 | printf("\t-t <test_suite> Available test suites: regression benchmark"); |
| 79 | #ifdef WITH_GP_TESTS |
| 80 | printf(" gp"); |
| 81 | #endif |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 82 | #ifdef CFG_PKCS11_TA |
| 83 | printf(" pkcs11"); |
| 84 | #endif |
Jelle Sels | 252faa9 | 2020-06-05 14:56:30 +0200 | [diff] [blame] | 85 | #ifdef CFG_SPMC_TESTS |
| 86 | printf(" ffa_spmc"); |
| 87 | #endif |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 88 | printf("\n"); |
| 89 | printf("\t To run several suites, use multiple names\n"); |
| 90 | printf("\t separated by a '+')\n"); |
| 91 | printf("\t Default value: '%s'\n", gsuitename); |
| 92 | printf("\t-h Show usage\n"); |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 93 | printf("\t<test-id> Add <test-id> to the list of tests to be run.\n"); |
| 94 | printf("\t A substring match is performed. May be specified\n"); |
| 95 | printf("\t several times. If no tests are given, all the\n"); |
| 96 | printf("\t tests are added.\n"); |
| 97 | printf("\t-x <test-id> Exclude <test-id> from the list of tests to be\n"); |
| 98 | printf("\t run. A substring match is performed. May be\n"); |
| 99 | printf("\t specified several times.\n"); |
Igor Opaniuk | 136644a | 2016-09-13 13:40:56 +0300 | [diff] [blame] | 100 | printf("applets:\n"); |
yuzexi | 4c9b16a | 2022-11-24 15:42:34 +0800 | [diff] [blame] | 101 | printf("\t--sha-perf [opts] Deprecated, same as --hash-perf\n"); |
| 102 | printf("\t--hash-perf [opts] Hash performance testing tool (-h for usage)\n"); |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 103 | printf("\t--aes-perf [opts] AES performance testing tool (-h for usage)\n"); |
Jens Wiklander | f261a6d | 2017-11-09 16:45:51 +0100 | [diff] [blame] | 104 | #ifdef CFG_SECSTOR_TA_MGMT_PTA |
| 105 | printf("\t--install-ta [directory or list of TAs]\n"); |
| 106 | printf("\t Install TAs\n"); |
| 107 | #endif |
Etienne Carriere | 41343db | 2017-03-17 15:38:52 +0100 | [diff] [blame] | 108 | #ifdef CFG_SECURE_DATA_PATH |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 109 | printf("\t--sdp-basic [opts] Basic Secure Data Path test setup ('-h' for usage)\n"); |
Etienne Carriere | 41343db | 2017-03-17 15:38:52 +0100 | [diff] [blame] | 110 | #endif |
Jens Wiklander | 254a3e3 | 2019-01-31 12:25:08 +0100 | [diff] [blame] | 111 | printf("\t--stats [opts] Various statistics ('-h' for usage)\n"); |
Jerome Forissier | aa43c90 | 2023-05-29 17:21:00 +0200 | [diff] [blame^] | 112 | printf("\t--clear-storage Delete any persistent objects that may have been\n"); |
| 113 | printf("\t left over by a previous run of this application\n"); |
Etienne Carriere | 41343db | 2017-03-17 15:38:52 +0100 | [diff] [blame] | 114 | printf("\n"); |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 115 | printf("Examples:\n"); |
| 116 | printf("\txtest -t regression 4001 4003\n"); |
| 117 | printf("\t run regression tests 4001 and 4003\n"); |
| 118 | printf("\txtest -t regression -x 1027 -x 1028\n"); |
| 119 | printf("\t run all regression tests but 1027 and 1028\n"); |
| 120 | printf("\n"); |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 121 | } |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 122 | |
Jens Wiklander | 6f34e00 | 2018-05-03 21:21:54 +0200 | [diff] [blame] | 123 | static void init_ossl(void) |
| 124 | { |
| 125 | #ifdef OPENSSL_FOUND |
| 126 | OPENSSL_init(); |
| 127 | OpenSSL_add_all_algorithms(); |
| 128 | ERR_load_crypto_strings(); |
| 129 | #endif |
| 130 | } |
| 131 | |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 132 | int main(int argc, char *argv[]) |
| 133 | { |
Etienne Carriere | e4ec9e4 | 2019-03-28 13:30:21 +0100 | [diff] [blame] | 134 | int opt = 0; |
| 135 | int index = 0; |
| 136 | TEEC_Result tee_res = TEEC_ERROR_GENERIC; |
| 137 | int ret = 0; |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 138 | char *p = (char *)glevel; |
James Kung | 35b352d | 2015-09-07 18:01:16 +0800 | [diff] [blame] | 139 | char *test_suite = (char *)gsuitename; |
Etienne Carriere | e4ec9e4 | 2019-03-28 13:30:21 +0100 | [diff] [blame] | 140 | char *token = NULL; |
| 141 | ADBG_Suite_Definition_t all = { |
| 142 | .SuiteID_p = NULL, |
| 143 | .cases = TAILQ_HEAD_INITIALIZER(all.cases), |
| 144 | }; |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 145 | bool exclusion = false; |
| 146 | size_t last_gen_option = 1; |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 147 | |
James Kung | 35b352d | 2015-09-07 18:01:16 +0800 | [diff] [blame] | 148 | opterr = 0; |
| 149 | |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 150 | if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) |
| 151 | warn("signal(SIGPIPE, SIG_IGN)"); |
| 152 | |
| 153 | if (signal(SIGHUP, SIG_IGN) == SIG_ERR) |
| 154 | warn("signal(SIGPIPE, SIG_IGN)"); |
| 155 | |
Jens Wiklander | 6f34e00 | 2018-05-03 21:21:54 +0200 | [diff] [blame] | 156 | init_ossl(); |
| 157 | |
Igor Opaniuk | 44aff4b | 2016-09-16 10:18:00 +0300 | [diff] [blame] | 158 | if (argc > 1 && !strcmp(argv[1], "--sha-perf")) |
yuzexi | 4c9b16a | 2022-11-24 15:42:34 +0800 | [diff] [blame] | 159 | return hash_perf_runner_cmd_parser(argc-1, &argv[1]); |
| 160 | else if (argc > 1 && !strcmp(argv[1], "--hash-perf")) |
| 161 | return hash_perf_runner_cmd_parser(argc-1, &argv[1]); |
Igor Opaniuk | 44aff4b | 2016-09-16 10:18:00 +0300 | [diff] [blame] | 162 | else if (argc > 1 && !strcmp(argv[1], "--aes-perf")) |
| 163 | return aes_perf_runner_cmd_parser(argc-1, &argv[1]); |
Jens Wiklander | f261a6d | 2017-11-09 16:45:51 +0100 | [diff] [blame] | 164 | #ifdef CFG_SECSTOR_TA_MGMT_PTA |
| 165 | else if (argc > 1 && !strcmp(argv[1], "--install-ta")) |
| 166 | return install_ta_runner_cmd_parser(argc - 1, argv + 1); |
| 167 | #endif |
Etienne Carriere | 41343db | 2017-03-17 15:38:52 +0100 | [diff] [blame] | 168 | #ifdef CFG_SECURE_DATA_PATH |
| 169 | else if (argc > 1 && !strcmp(argv[1], "--sdp-basic")) |
| 170 | return sdp_basic_runner_cmd_parser(argc-1, &argv[1]); |
| 171 | #endif |
Jens Wiklander | 254a3e3 | 2019-01-31 12:25:08 +0100 | [diff] [blame] | 172 | else if (argc > 1 && !strcmp(argv[1], "--stats")) |
| 173 | return stats_runner_cmd_parser(argc - 1, &argv[1]); |
Jerome Forissier | aa43c90 | 2023-05-29 17:21:00 +0200 | [diff] [blame^] | 174 | else if (argc == 2 && !strcmp(argv[1], "--clear-storage")) |
| 175 | return clear_storage(); |
Igor Opaniuk | 136644a | 2016-09-13 13:40:56 +0300 | [diff] [blame] | 176 | |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 177 | while ((opt = getopt(argc, argv, "d:l:t:h")) != -1) { |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 178 | switch (opt) { |
| 179 | case 'd': |
Etienne Carriere | b11820c | 2020-05-26 11:55:33 +0200 | [diff] [blame] | 180 | xtest_tee_name = optarg; |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 181 | last_gen_option = optind; |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 182 | break; |
| 183 | case 'l': |
| 184 | p = optarg; |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 185 | last_gen_option = optind; |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 186 | break; |
James Kung | 35b352d | 2015-09-07 18:01:16 +0800 | [diff] [blame] | 187 | case 't': |
| 188 | test_suite = optarg; |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 189 | last_gen_option = optind; |
James Kung | 35b352d | 2015-09-07 18:01:16 +0800 | [diff] [blame] | 190 | break; |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 191 | case 'h': |
| 192 | usage(argv[0]); |
| 193 | return 0; |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 194 | case '?': |
| 195 | if (optopt == 'x') { |
| 196 | /* |
| 197 | * The -x option is not processed here, |
| 198 | * it is part of the test IDs. |
| 199 | */ |
| 200 | goto next; |
| 201 | } |
| 202 | /* option not recognized */ |
| 203 | usage(argv[0]); |
| 204 | return -1; |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 205 | default: |
| 206 | usage(argv[0]); |
| 207 | return -1; |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 208 | } |
| 209 | } |
| 210 | next: |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 211 | |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 212 | for (index = last_gen_option; index < argc; index++) { |
| 213 | if (!strcmp(argv[index], "-x")) { |
| 214 | exclusion = true; |
| 215 | continue; |
| 216 | } |
| 217 | printf("Test ID: %s%s\n", exclusion ? "-x " : "", argv[index]); |
| 218 | exclusion = false; |
| 219 | } |
Cedric Chaumont | c3b6c28 | 2015-09-25 03:05:18 +0200 | [diff] [blame] | 220 | |
| 221 | if (p) |
| 222 | level = atoi(p); |
| 223 | else |
| 224 | level = 0; |
| 225 | printf("Run test suite with level=%d\n", level); |
| 226 | |
Etienne Carriere | ab02af5 | 2020-05-26 09:33:26 +0200 | [diff] [blame] | 227 | printf("\nTEE test application started over %s TEE instance\n", |
Etienne Carriere | b11820c | 2020-05-26 11:55:33 +0200 | [diff] [blame] | 228 | xtest_tee_name ? xtest_tee_name : "default"); |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 229 | |
Etienne Carriere | 69f914d | 2017-04-03 13:57:46 +0200 | [diff] [blame] | 230 | tee_res = xtest_teec_ctx_init(); |
| 231 | if (tee_res != TEEC_SUCCESS) { |
Etienne Carriere | 7d18f55 | 2017-04-04 09:46:29 +0200 | [diff] [blame] | 232 | fprintf(stderr, "Failed to open TEE context: 0x%" PRIx32 "\n", |
| 233 | tee_res); |
Etienne Carriere | 69f914d | 2017-04-03 13:57:46 +0200 | [diff] [blame] | 234 | return -1; |
| 235 | } |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 236 | |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 237 | /* Concatenate all the selected suites into 'all' */ |
| 238 | for (token = test_suite; ; token = NULL) { |
| 239 | |
| 240 | token = strtok(token, "+"); |
| 241 | if (!token) |
| 242 | break; |
| 243 | |
| 244 | if (!strcmp(token, "regression")) |
| 245 | ret = Do_ADBG_AppendToSuite(&all, &ADBG_Suite_regression); |
| 246 | else if (!strcmp(token, "benchmark")) |
| 247 | ret = Do_ADBG_AppendToSuite(&all, &ADBG_Suite_benchmark); |
| 248 | #ifdef WITH_GP_TESTS |
| 249 | else if (!strcmp(token, "gp")) |
| 250 | ret = Do_ADBG_AppendToSuite(&all, &ADBG_Suite_gp); |
| 251 | #endif |
Etienne Carriere | 109c1d7 | 2019-01-09 11:02:02 +0100 | [diff] [blame] | 252 | #ifdef CFG_PKCS11_TA |
| 253 | else if (!strcmp(token, "pkcs11")) |
| 254 | ret = Do_ADBG_AppendToSuite(&all, &ADBG_Suite_pkcs11); |
| 255 | #endif |
Jelle Sels | eb3d01f | 2020-06-05 14:56:30 +0200 | [diff] [blame] | 256 | #ifdef CFG_SPMC_TESTS |
| 257 | else if (!strcmp(token, "ffa_spmc")) |
| 258 | ret = Do_ADBG_AppendToSuite(&all, &ADBG_Suite_ffa_spmc); |
| 259 | #endif |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 260 | else { |
| 261 | fprintf(stderr, "Unkown test suite: %s\n", token); |
| 262 | ret = -1; |
| 263 | } |
| 264 | if (ret < 0) |
| 265 | goto err; |
James Kung | 35b352d | 2015-09-07 18:01:16 +0800 | [diff] [blame] | 266 | } |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 267 | |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 268 | /* Run the tests */ |
Etienne Carriere | 66542a1 | 2020-05-16 06:09:43 +0200 | [diff] [blame] | 269 | ret = Do_ADBG_RunSuite(&all, argc - last_gen_option, argv + last_gen_option); |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame] | 270 | |
| 271 | err: |
| 272 | free((void *)all.SuiteID_p); |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 273 | xtest_teec_ctx_deinit(); |
| 274 | |
| 275 | printf("TEE test application done!\n"); |
| 276 | return ret; |
| 277 | } |