Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 1 | #;**********************************************************************; |
| 2 | # Copyright (c) 2015, 2016, 2017 Intel Corporation |
| 3 | # Copyright (c) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG |
| 4 | # All rights reserved. |
| 5 | # |
| 6 | # Redistribution and use in source and binary forms, with or without |
| 7 | # modification, are permitted provided that the following conditions are met: |
| 8 | # |
| 9 | # 1. Redistributions of source code must retain the above copyright notice, |
| 10 | # this list of conditions and the following disclaimer. |
| 11 | # |
| 12 | # 2. Redistributions in binary form must reproduce the above copyright notice, |
| 13 | # this list of conditions and the following disclaimer in the documentation |
| 14 | # and/or other materials provided with the distribution. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 20 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 23 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 24 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 25 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 26 | # THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | #;**********************************************************************; |
| 28 | |
| 29 | TESTS_CFLAGS = $(LIBCRYPTO_CFLAGS) |
| 30 | TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil) |
| 31 | |
| 32 | # test harness configuration |
| 33 | TEST_EXTENSIONS = .int |
| 34 | INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh |
| 35 | INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN) |
| 36 | EXTRA_DIST += $(INT_LOG_COMPILER) |
| 37 | |
| 38 | check-programs: $(check_PROGRAMS) |
| 39 | |
| 40 | check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION) |
| 41 | TESTS = $(check_PROGRAMS) |
| 42 | |
| 43 | if UNIT |
| 44 | TESTS_UNIT = \ |
| 45 | test/unit/CommonPreparePrologue \ |
| 46 | test/unit/CopyCommandHeader \ |
| 47 | test/unit/GetNumHandles \ |
Philip Tricca | 2bec2a8 | 2018-03-04 21:27:30 -0800 | [diff] [blame^] | 48 | test/unit/socket \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 49 | test/unit/tcti-device \ |
| 50 | test/unit/tcti-socket \ |
| 51 | test/unit/util \ |
| 52 | test/unit/UINT8-marshal \ |
| 53 | test/unit/UINT16-marshal \ |
| 54 | test/unit/UINT32-marshal \ |
| 55 | test/unit/UINT64-marshal \ |
| 56 | test/unit/TPMA-marshal \ |
| 57 | test/unit/TPM2B-marshal \ |
| 58 | test/unit/TPMS-marshal \ |
| 59 | test/unit/TPML-marshal \ |
| 60 | test/unit/TPMT-marshal \ |
| 61 | test/unit/TPMU-marshal |
| 62 | endif #UNIT |
| 63 | |
| 64 | if SIMULATOR_BIN |
| 65 | noinst_LTLIBRARIES += test/integration/libtest_utils.la |
| 66 | TESTS_INTEGRATION = \ |
| 67 | test/integration/asymmetric-encrypt-decrypt.int \ |
| 68 | test/integration/create-primary-rsa-2048-aes-128-cfb.int \ |
| 69 | test/integration/create-keyedhash-sha1-hmac.int \ |
| 70 | test/integration/encrypt-decrypt.int \ |
| 71 | test/integration/encrypt-decrypt-2.int \ |
| 72 | test/integration/evict-ctrl.int \ |
| 73 | test/integration/get-random.int \ |
| 74 | test/integration/hierarchy-change-auth.int \ |
| 75 | test/integration/abi-version.int \ |
| 76 | test/integration/pcr-extension.int \ |
| 77 | test/integration/self-test.int \ |
| 78 | test/integration/start-auth-session.int \ |
| 79 | test/integration/sys-initialize.int \ |
| 80 | test/integration/tpm-properties.int \ |
| 81 | test/integration/system-api.int \ |
| 82 | test/integration/policy-template.int \ |
| 83 | test/integration/create-loaded.int \ |
| 84 | test/integration/policy-authorizeNV.int \ |
| 85 | test/tpmclient/tpmclient.int |
| 86 | if ESAPI |
| 87 | TESTS_INTEGRATION += \ |
| 88 | test/integration/esys-clockset.int \ |
| 89 | test/integration/esys-clockset-session.int \ |
| 90 | test/integration/esys-create-fail.int \ |
| 91 | test/integration/esys-create-password-auth.int \ |
| 92 | test/integration/esys-create-primary-ecc-hmac.int \ |
| 93 | test/integration/esys-create-primary-hmac.int \ |
| 94 | test/integration/esys-create-session-auth.int \ |
| 95 | test/integration/esys-evict-control-serialization.int \ |
| 96 | test/integration/esys-get-capability.int \ |
| 97 | test/integration/esys-get-random.int \ |
| 98 | test/integration/esys-make-credential.int \ |
| 99 | test/integration/esys-make-credential-session.int \ |
| 100 | test/integration/esys-nv-ram-extend-index.int \ |
| 101 | test/integration/esys-nv-ram-extend-index-session.int \ |
| 102 | test/integration/esys-nv-ram-ordinary-index.int \ |
| 103 | test/integration/esys-nv-ram-ordinary-index-session.int \ |
| 104 | test/integration/esys-quote.int \ |
| 105 | test/integration/esys-rsa-encrypt-decrypt.int \ |
| 106 | test/integration/esys-save-and-load-context.int |
| 107 | endif #ESAPI |
| 108 | endif #SIMULATOR_BIN |
| 109 | |
| 110 | CLEANFILES += \ |
| 111 | test/integration/*.log \ |
| 112 | test/tpmclient/*.log \ |
| 113 | test/unit/*.log |
| 114 | |
| 115 | if UNIT |
| 116 | test_unit_util_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 117 | test_unit_util_LDADD = $(CMOCKA_LIBS) $(libutil) |
| 118 | test_unit_util_LDFLAGS = -Wl,--wrap=write |
| 119 | test_unit_util_SOURCES = test/unit/util.c |
| 120 | |
| 121 | test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 122 | test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libmarshal) $(libutil) |
| 123 | test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write |
| 124 | test_unit_tcti_device_SOURCES = test/unit/tcti-device.c tcti/tcti_device.c log/log.h |
| 125 | |
| 126 | test_unit_tcti_socket_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) $(URIPARSER_CFLAGS) |
| 127 | test_unit_tcti_socket_LDADD = $(CMOCKA_LIBS) $(libmarshal) $(URIPARSER_LIBS) $(libutil) |
| 128 | test_unit_tcti_socket_LDFLAGS = -Wl,--wrap=connect,--wrap=recv,--wrap=read,--wrap=select,--wrap=write |
| 129 | test_unit_tcti_socket_SOURCES = tcti/platformcommand.c tcti/tcti_socket.c \ |
| 130 | tcti/sockets.c tcti/sockets.h test/unit/tcti-socket.c |
| 131 | |
Philip Tricca | 2bec2a8 | 2018-03-04 21:27:30 -0800 | [diff] [blame^] | 132 | test_unit_socket_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 133 | test_unit_socket_LDADD = $(CMOCKA_LIBS) $(libutil) |
| 134 | test_unit_socket_LDFLAGS = -Wl,--wrap=connect,--wrap=socket |
| 135 | test_unit_socket_SOURCES = test/unit/socket.c tcti/sockets.c tcti/sockets.h |
| 136 | |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 137 | test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 138 | test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all |
| 139 | test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libsapi) |
| 140 | test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c |
| 141 | |
| 142 | test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 143 | test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libsapi) |
| 144 | test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c |
| 145 | |
| 146 | test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 147 | test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all |
| 148 | test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libsapi) |
| 149 | test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c |
| 150 | |
| 151 | test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 152 | test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 153 | test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c |
| 154 | |
| 155 | test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 156 | test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 157 | test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c |
| 158 | |
| 159 | test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 160 | test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 161 | test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c |
| 162 | |
| 163 | test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 164 | test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 165 | test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c |
| 166 | |
| 167 | test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 168 | test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 169 | test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c |
| 170 | |
| 171 | test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 172 | test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 173 | test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c |
| 174 | |
| 175 | test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 176 | test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 177 | test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c |
| 178 | |
| 179 | test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 180 | test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 181 | test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c |
| 182 | |
| 183 | test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 184 | test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 185 | test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c |
| 186 | |
| 187 | test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(AM_CFLAGS) |
| 188 | test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal) |
| 189 | test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c |
| 190 | endif # UNIT |
| 191 | |
| 192 | if SIMULATOR_BIN |
| 193 | test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS) |
| 194 | test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD) |
| 195 | test_tpmclient_tpmclient_int_SOURCES = \ |
| 196 | test/tpmclient/CatSizedByteBuffer.c test/tpmclient/CopySizedBuffer.c \ |
| 197 | test/tpmclient/CreateNullSession.c test/tpmclient/DecryptEncrypt.c \ |
| 198 | test/tpmclient/Entity.c test/tpmclient/kdfa.c \ |
| 199 | test/tpmclient/LoadExternalHMACKey.c test/integration/main.c \ |
| 200 | test/tpmclient/sample.h test/tpmclient/TpmHmac.c \ |
| 201 | test/tpmclient/SessionHmac.c test/tpmclient/SetLocality.c \ |
| 202 | test/tpmclient/StartAuthSession.c test/tpmclient/syscontext.c \ |
| 203 | test/tpmclient/syscontext.h test/tpmclient/TpmCalcPHash.c \ |
| 204 | test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.h \ |
| 205 | test/tpmclient/TpmHandleToName.c test/tpmclient/TpmHash.c |
| 206 | |
| 207 | test_integration_libtest_utils_la_SOURCES = \ |
| 208 | test/integration/context-util.c test/integration/context-util.h \ |
| 209 | test/integration/sapi-util.c test/integration/sapi-util.h \ |
| 210 | test/integration/test-options.c test/integration/test-options.h \ |
| 211 | test/integration/test.h |
| 212 | |
| 213 | test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 214 | test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 215 | test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \ |
| 216 | test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c |
| 217 | |
| 218 | test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 219 | test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD) |
| 220 | test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \ |
| 221 | test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \ |
| 222 | test/integration/main.c |
| 223 | |
| 224 | test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 225 | test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD) |
| 226 | test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \ |
| 227 | test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c |
| 228 | |
| 229 | test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 230 | test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 231 | test_integration_encrypt_decrypt_int_SOURCES = \ |
| 232 | test/integration/encrypt-decrypt.int.c test/integration/main.c |
| 233 | |
| 234 | test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 235 | test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD) |
| 236 | test_integration_encrypt_decrypt_2_int_SOURCES = \ |
| 237 | test/integration/encrypt-decrypt-2.int.c test/integration/main.c |
| 238 | |
| 239 | test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 240 | test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD) |
| 241 | test_integration_evict_ctrl_int_SOURCES = \ |
| 242 | test/integration/evict-ctrl.int.c test/integration/main.c |
| 243 | |
| 244 | test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 245 | test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD) |
| 246 | test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \ |
| 247 | test/integration/main.c |
| 248 | |
| 249 | test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 250 | test_integration_get_random_int_LDADD = $(TESTS_LDADD) |
| 251 | test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \ |
| 252 | test/integration/main.c |
| 253 | |
| 254 | test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 255 | test_integration_abi_version_int_LDADD = $(TESTS_LDADD) |
| 256 | test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \ |
| 257 | test/integration/main.c |
| 258 | |
| 259 | test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 260 | test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD) |
| 261 | test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \ |
| 262 | test/integration/main.c |
| 263 | |
| 264 | test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 265 | test_integration_self_test_int_LDADD = $(TESTS_LDADD) |
| 266 | test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \ |
| 267 | test/integration/main.c |
| 268 | |
| 269 | test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 270 | test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD) |
| 271 | test_integration_hierarchy_change_auth_int_SOURCES = \ |
| 272 | test/integration/hierarchy-change-auth.int.c test/integration/main.c |
| 273 | |
| 274 | test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 275 | test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD) |
| 276 | test_integration_start_auth_session_int_SOURCES = test/integration/main.c \ |
| 277 | test/integration/start-auth-session.int.c |
| 278 | |
| 279 | test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 280 | test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD) |
| 281 | test_integration_tpm_properties_int_SOURCES = test/integration/main.c \ |
| 282 | test/integration/tpm-properties.int.c |
| 283 | |
| 284 | test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 285 | test_integration_system_api_int_LDADD = $(TESTS_LDADD) |
| 286 | test_integration_system_api_int_SOURCES = test/integration/main.c \ |
| 287 | test/integration/system-api.int.c |
| 288 | |
| 289 | if ESAPI |
| 290 | test_integration_esys_clockset_int_CFLAGS = $(AM_CFLAGS) \ |
| 291 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 292 | -I$(srcdir)/esapi/esapi_util |
| 293 | test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD) |
| 294 | test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 295 | test_integration_esys_clockset_int_SOURCES = \ |
| 296 | test/integration/esys-clockset.int.c \ |
| 297 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 298 | |
| 299 | test_integration_esys_clockset_session_int_CFLAGS = $(AM_CFLAGS) \ |
| 300 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 301 | -I$(srcdir)/esapi/esapi_util -DTEST_SESSION |
| 302 | test_integration_esys_clockset_session_int_LDADD = $(TESTS_LDADD) |
| 303 | test_integration_esys_clockset_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 304 | test_integration_esys_clockset_session_int_SOURCES = \ |
| 305 | test/integration/esys-clockset.int.c \ |
| 306 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 307 | |
| 308 | test_integration_esys_create_fail_int_CFLAGS = $(AM_CFLAGS) \ |
| 309 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 310 | -I$(srcdir)/esapi/esapi_util |
| 311 | test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD) |
| 312 | test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 313 | test_integration_esys_create_fail_int_SOURCES = \ |
| 314 | test/integration/esys-create-fail.int.c \ |
| 315 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 316 | |
| 317 | test_integration_esys_create_password_auth_int_CFLAGS = $(AM_CFLAGS) \ |
| 318 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 319 | -I$(srcdir)/esapi/esapi_util |
| 320 | test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD) |
| 321 | test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 322 | test_integration_esys_create_password_auth_int_SOURCES = \ |
| 323 | test/integration/esys-create-password-auth.int.c \ |
| 324 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 325 | |
| 326 | test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(AM_CFLAGS) \ |
| 327 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 328 | -I$(srcdir)/esapi/esapi_util |
| 329 | test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD) |
| 330 | test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 331 | test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \ |
| 332 | test/integration/esys-create-primary-hmac.int.c \ |
| 333 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 334 | |
| 335 | test_integration_esys_create_primary_hmac_int_CFLAGS = $(AM_CFLAGS) \ |
| 336 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 337 | -I$(srcdir)/esapi/esapi_util |
| 338 | test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD) |
| 339 | test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 340 | test_integration_esys_create_primary_hmac_int_SOURCES = \ |
| 341 | test/integration/esys-create-primary-hmac.int.c \ |
| 342 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 343 | |
| 344 | test_integration_esys_create_session_auth_int_CFLAGS = $(AM_CFLAGS) \ |
| 345 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 346 | -I$(srcdir)/esapi/esapi_util |
| 347 | test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD) |
| 348 | test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 349 | test_integration_esys_create_session_auth_int_SOURCES = \ |
| 350 | test/integration/esys-create-session-auth.int.c \ |
| 351 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 352 | |
| 353 | test_integration_esys_evict_control_serialization_int_CFLAGS = $(AM_CFLAGS) \ |
| 354 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 355 | -I$(srcdir)/esapi/esapi_util |
| 356 | test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD) |
| 357 | test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 358 | test_integration_esys_evict_control_serialization_int_SOURCES = \ |
| 359 | test/integration/esys-evict-control-serialization.int.c \ |
| 360 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 361 | |
| 362 | test_integration_esys_get_capability_int_CFLAGS = $(AM_CFLAGS) \ |
| 363 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 364 | -I$(srcdir)/esapi/esapi_util |
| 365 | test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD) |
| 366 | test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 367 | test_integration_esys_get_capability_int_SOURCES = \ |
| 368 | test/integration/esys-get-capability.int.c \ |
| 369 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 370 | |
| 371 | test_integration_esys_get_random_int_CFLAGS = $(AM_CFLAGS) \ |
| 372 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 373 | -I$(srcdir)/esapi/esapi_util |
| 374 | test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD) |
| 375 | test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 376 | test_integration_esys_get_random_int_SOURCES = \ |
| 377 | test/integration/esys-get-random.int.c \ |
| 378 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 379 | |
| 380 | test_integration_esys_make_credential_int_CFLAGS = $(AM_CFLAGS) \ |
| 381 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 382 | -I$(srcdir)/esapi/esapi_util |
| 383 | test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD) |
| 384 | test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 385 | test_integration_esys_make_credential_int_SOURCES = \ |
| 386 | test/integration/esys-make-credential.int.c \ |
| 387 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 388 | |
| 389 | test_integration_esys_make_credential_session_int_CFLAGS = $(AM_CFLAGS) \ |
| 390 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 391 | -I$(srcdir)/esapi/esapi_util -DTEST_SESSION |
| 392 | test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD) |
| 393 | test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 394 | test_integration_esys_make_credential_session_int_SOURCES = \ |
| 395 | test/integration/esys-make-credential.int.c \ |
| 396 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 397 | |
| 398 | test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(AM_CFLAGS) \ |
| 399 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 400 | -I$(srcdir)/esapi/esapi_util |
| 401 | test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD) |
| 402 | test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 403 | test_integration_esys_nv_ram_extend_index_int_SOURCES = \ |
| 404 | test/integration/esys-nv-ram-extend-index.int.c \ |
| 405 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 406 | |
| 407 | test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(AM_CFLAGS) \ |
| 408 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 409 | -I$(srcdir)/esapi/esapi_util -DTEST_SESSION |
| 410 | test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD) |
| 411 | test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 412 | test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \ |
| 413 | test/integration/esys-nv-ram-extend-index.int.c \ |
| 414 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 415 | |
| 416 | test_integration_esys_nv_ram_ordinary_index_int_CFLAGS = $(AM_CFLAGS) \ |
| 417 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 418 | -I$(srcdir)/esapi/esapi_util |
| 419 | test_integration_esys_nv_ram_ordinary_index_int_LDADD = $(TESTS_LDADD) |
| 420 | test_integration_esys_nv_ram_ordinary_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 421 | test_integration_esys_nv_ram_ordinary_index_int_SOURCES = \ |
| 422 | test/integration/esys-nv-ram-ordinary-index.int.c \ |
| 423 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 424 | |
| 425 | test_integration_esys_nv_ram_ordinary_index_session_int_CFLAGS = $(AM_CFLAGS) \ |
| 426 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 427 | -I$(srcdir)/esapi/esapi_util -DTEST_SESSION |
| 428 | test_integration_esys_nv_ram_ordinary_index_session_int_LDADD = $(TESTS_LDADD) |
| 429 | test_integration_esys_nv_ram_ordinary_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 430 | test_integration_esys_nv_ram_ordinary_index_session_int_SOURCES = \ |
| 431 | test/integration/esys-nv-ram-ordinary-index.int.c \ |
| 432 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 433 | |
| 434 | test_integration_esys_quote_int_CFLAGS = $(AM_CFLAGS) \ |
| 435 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 436 | -I$(srcdir)/esapi/esapi_util |
| 437 | test_integration_esys_quote_int_LDADD = $(TESTS_LDADD) |
| 438 | test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 439 | test_integration_esys_quote_int_SOURCES = \ |
| 440 | test/integration/esys-quote.int.c \ |
| 441 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 442 | |
| 443 | test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) \ |
| 444 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 445 | -I$(srcdir)/esapi/esapi_util |
| 446 | test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 447 | test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 448 | test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \ |
| 449 | test/integration/esys-rsa-encrypt-decrypt.int.c \ |
| 450 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 451 | |
| 452 | test_integration_esys_save_and_load_context_int_CFLAGS = $(AM_CFLAGS) \ |
| 453 | -I. -I$(srcdir)/esapi/esapi -I$(srcdir)/include/esapi \ |
| 454 | -I$(srcdir)/esapi/esapi_util |
| 455 | test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD) |
| 456 | test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 457 | test_integration_esys_save_and_load_context_int_SOURCES = \ |
| 458 | test/integration/esys-save-and-load-context.int.c \ |
| 459 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 460 | endif #ESAPI |
| 461 | |
| 462 | test_integration_policy_template_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 463 | test_integration_policy_template_int_LDADD = $(TESTS_LDADD) |
| 464 | test_integration_policy_template_int_SOURCES = test/integration/main.c \ |
| 465 | test/integration/policy-template.int.c |
| 466 | |
| 467 | test_integration_create_loaded_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 468 | test_integration_create_loaded_int_LDADD = $(TESTS_LDADD) |
| 469 | test_integration_create_loaded_int_SOURCES = test/integration/main.c \ |
| 470 | test/integration/create-loaded.int.c |
| 471 | |
| 472 | test_integration_policy_authorizeNV_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 473 | test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD) |
| 474 | test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c log/log.h log/log.c \ |
| 475 | test/integration/policy-authorizeNV.int.c |
| 476 | endif #SIMULATOR_BIN |