Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 1 | /* |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 2 | * Copyright (c) 2016, Linaro Limited |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 3 | * Copyright (c) 2014, STMicroelectronics International N.V. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License Version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | #ifndef XTEST_TEST_H |
| 16 | #define XTEST_TEST_H |
| 17 | #include <adbg.h> |
| 18 | #include <tee_client_api.h> |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 19 | |
Jens Wiklander | 74abfe3 | 2017-01-03 14:17:47 +0100 | [diff] [blame] | 20 | ADBG_SUITE_DECLARE(benchmark); |
Jerome Forissier | 213ca8a | 2017-03-31 11:27:56 +0200 | [diff] [blame^] | 21 | #ifdef WITH_GP_TESTS |
| 22 | ADBG_SUITE_DECLARE(gp); |
| 23 | #endif |
| 24 | ADBG_SUITE_DECLARE(regression); |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 25 | |
| 26 | /* TEEC_Result */ |
| 27 | ADBG_ENUM_TABLE_DECLARE(TEEC_Result); |
| 28 | |
| 29 | #define ADBG_EXPECT_TEEC_RESULT(c, exp, got) \ |
| 30 | ADBG_EXPECT_ENUM(c, exp, got, ADBG_EnumTable_TEEC_Result) |
| 31 | |
| 32 | #define ADBG_EXPECT_TEEC_SUCCESS(c, got) \ |
| 33 | ADBG_EXPECT_ENUM(c, TEEC_SUCCESS, got, ADBG_EnumTable_TEEC_Result) |
| 34 | |
| 35 | /* TEEC_ErrorOrigin */ |
| 36 | ADBG_ENUM_TABLE_DECLARE(TEEC_ErrorOrigin); |
| 37 | |
| 38 | #define ADBG_EXPECT_TEEC_ERROR_ORIGIN(c, exp, got) \ |
| 39 | ADBG_EXPECT_ENUM(c, exp, got, ADBG_EnumTable_TEEC_ErrorOrigin) |
| 40 | |
| 41 | /* bass_return_code */ |
| 42 | ADBG_ENUM_TABLE_DECLARE(bass_return_code); |
| 43 | |
| 44 | #define ADBG_EXPECT_BASS_RETURN_CODE(c, exp, got) \ |
| 45 | ADBG_EXPECT_ENUM(c, exp, got, ADBG_EnumTable_bass_return_code) |
| 46 | |
| 47 | #define ADBG_EXPECT_BASS_RC_SUCCESS(c, got) \ |
| 48 | ADBG_EXPECT_ENUM(c, BASS_RC_SUCCESS, got, \ |
| 49 | ADBG_EnumTable_bass_return_code) |
| 50 | |
| 51 | |
| 52 | extern const char crypt_user_ta[]; |
| 53 | extern const unsigned int crypt_user_ta_size; |
| 54 | |
| 55 | extern const char os_test_ta[]; |
| 56 | extern const unsigned int os_test_ta_size; |
| 57 | |
| 58 | extern const char create_fail_test_ta[]; |
| 59 | extern const unsigned int create_fail_test_ta_size; |
| 60 | |
| 61 | extern const char rpc_test_ta[]; |
| 62 | extern const unsigned int rpc_test_ta_size; |
| 63 | |
| 64 | extern const char sims_test_ta[]; |
| 65 | extern const unsigned int sims_test_ta_size; |
| 66 | |
| 67 | extern const char gp_tta_testing_client_api_ta[]; |
| 68 | extern const unsigned int gp_tta_testing_client_api_ta_size; |
| 69 | |
| 70 | extern const char gp_tta_answer_success_to_open_session_invoke_ta[]; |
| 71 | extern const unsigned int gp_tta_answer_success_to_open_session_invoke_ta_size; |
| 72 | |
| 73 | extern const char gp_tta_answer_error_to_invoke_ta[]; |
| 74 | extern const unsigned int gp_tta_answer_error_to_invoke_ta_size; |
| 75 | |
| 76 | extern const char gp_tta_answer_error_to_open_session_ta[]; |
| 77 | extern const unsigned int gp_tta_answer_error_to_open_session_ta_size; |
| 78 | |
| 79 | extern const char gp_tta_check_open_session_with_4_parameters_ta[]; |
| 80 | extern const unsigned int gp_tta_check_open_session_with_4_parameters_ta_size; |
| 81 | |
| 82 | extern const char gp_tta_ds_ta[]; |
| 83 | extern const unsigned int gp_tta_ds_ta_size; |
| 84 | |
| 85 | extern const char storage_ta[]; |
| 86 | extern const unsigned int storage_ta_size; |
| 87 | |
| 88 | extern const char gp_tta_time_ta[]; |
| 89 | extern const unsigned int gp_tta_time_ta_size; |
| 90 | |
| 91 | extern const char gp_tta_tcf_ta[]; |
| 92 | extern const unsigned int gp_tta_tcf_ta_size; |
| 93 | |
| 94 | extern const char gp_tta_crypto_ta[]; |
| 95 | extern const unsigned int gp_tta_crypto_ta_size; |
| 96 | |
| 97 | extern const char gp_tta_arithm_ta[]; |
| 98 | extern const unsigned int gp_tta_arithm_ta_size; |
| 99 | |
| 100 | extern const char gp_tta_ica_ta[]; |
| 101 | extern const unsigned int gp_tta_ica_ta_size; |
| 102 | |
| 103 | extern const char gp_tta_ica2_ta[]; |
| 104 | extern const unsigned int gp_tta_ica2_ta_size; |
| 105 | |
| 106 | extern const char gp_tta_tcf_singleinstance_ta[]; |
| 107 | extern const unsigned int gp_tta_tcf_singleinstance_ta_size; |
| 108 | |
| 109 | extern const char gp_tta_tcf_multipleinstance_ta[]; |
| 110 | extern const unsigned int gp_tta_tcf_multipleinstance_ta_size; |
| 111 | |
| 112 | extern const TEEC_UUID crypt_user_ta_uuid; |
| 113 | extern const TEEC_UUID os_test_ta_uuid; |
| 114 | extern const TEEC_UUID create_fail_test_ta_uuid; |
| 115 | extern const TEEC_UUID rpc_test_ta_uuid; |
| 116 | extern const TEEC_UUID sims_test_ta_uuid; |
| 117 | extern const TEEC_UUID gp_tta_testing_client_api_uuid; |
| 118 | extern const TEEC_UUID gp_tta_answer_success_to_open_session_invoke_uuid; |
| 119 | extern const TEEC_UUID gp_tta_answer_error_to_invoke_uuid; |
| 120 | extern const TEEC_UUID gp_tta_answer_error_to_open_session_uuid; |
| 121 | extern const TEEC_UUID gp_tta_check_OpenSession_with_4_parameters_uuid; |
| 122 | extern const TEEC_UUID gp_tta_ds_uuid; |
| 123 | extern const TEEC_UUID storage_ta_uuid; |
Jerome Forissier | e385416 | 2016-08-12 12:40:12 +0200 | [diff] [blame] | 124 | extern const TEEC_UUID storage2_ta_uuid; |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 125 | extern const TEEC_UUID enc_fs_key_manager_test_ta_uuid; |
| 126 | extern const TEEC_UUID ecc_test_ta_uuid; |
Etienne Carriere | 726d8bc | 2017-03-21 15:45:59 +0100 | [diff] [blame] | 127 | extern const TEEC_UUID pta_invoke_tests_ta_uuid; |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 128 | extern const TEEC_UUID gp_tta_time_uuid; |
Jens Wiklander | ac27ec1 | 2015-07-15 15:23:14 +0200 | [diff] [blame] | 129 | extern const TEEC_UUID concurrent_ta_uuid; |
Jens Wiklander | 7067297 | 2016-04-06 00:01:45 +0200 | [diff] [blame] | 130 | extern const TEEC_UUID concurrent_large_ta_uuid; |
James Kung | df1e6cf | 2015-09-14 22:42:24 +0800 | [diff] [blame] | 131 | extern const TEEC_UUID storage_benchmark_ta_uuid; |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 132 | extern const TEEC_UUID socket_ta_uuid; |
Etienne Carriere | 50abf9a | 2017-03-24 11:33:50 +0100 | [diff] [blame] | 133 | extern const TEEC_UUID sdp_basic_ta_uuid; |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 134 | extern char *_device; |
| 135 | |
| 136 | #endif /*XTEST_TEST_H*/ |