blob: e0d8b2ab5da5c865a228e4c05d71675a28eb0e2b [file] [log] [blame]
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01001#;**********************************************************************;
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
Philip Tricca8ffd3c42018-03-09 16:27:24 -080029TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/marshal \
30 -I$(srcdir)/sysapi/include -I$(srcdir)/esapi/esapi_util
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010031TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil)
32
33# test harness configuration
34TEST_EXTENSIONS = .int
35INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh
36INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN)
37EXTRA_DIST += $(INT_LOG_COMPILER)
38
39check-programs: $(check_PROGRAMS)
40
41check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
42TESTS = $(check_PROGRAMS)
43
44if UNIT
45TESTS_UNIT = \
46 test/unit/CommonPreparePrologue \
47 test/unit/CopyCommandHeader \
48 test/unit/GetNumHandles \
Philip Tricca2bec2a82018-03-04 21:27:30 -080049 test/unit/socket \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010050 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080051 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010052 test/unit/util \
53 test/unit/UINT8-marshal \
54 test/unit/UINT16-marshal \
55 test/unit/UINT32-marshal \
56 test/unit/UINT64-marshal \
57 test/unit/TPMA-marshal \
58 test/unit/TPM2B-marshal \
59 test/unit/TPMS-marshal \
60 test/unit/TPML-marshal \
61 test/unit/TPMT-marshal \
62 test/unit/TPMU-marshal
63endif #UNIT
64
65if SIMULATOR_BIN
66noinst_LTLIBRARIES += test/integration/libtest_utils.la
67TESTS_INTEGRATION = \
68 test/integration/asymmetric-encrypt-decrypt.int \
69 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
70 test/integration/create-keyedhash-sha1-hmac.int \
71 test/integration/encrypt-decrypt.int \
72 test/integration/encrypt-decrypt-2.int \
73 test/integration/evict-ctrl.int \
74 test/integration/get-random.int \
75 test/integration/hierarchy-change-auth.int \
76 test/integration/abi-version.int \
77 test/integration/pcr-extension.int \
78 test/integration/self-test.int \
79 test/integration/start-auth-session.int \
80 test/integration/sys-initialize.int \
81 test/integration/tpm-properties.int \
82 test/integration/system-api.int \
83 test/integration/policy-template.int \
84 test/integration/create-loaded.int \
85 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -080086 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010087 test/tpmclient/tpmclient.int
88if ESAPI
89TESTS_INTEGRATION += \
Juergen Repp110a68a2018-03-08 11:51:30 +010090 test/integration/esys-clear.int \
91 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010092 test/integration/esys-clockset.int \
93 test/integration/esys-clockset-session.int \
94 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +010095 test/integration/esys-createloaded.int \
96 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010097 test/integration/esys-create-password-auth.int \
98 test/integration/esys-create-primary-ecc-hmac.int \
99 test/integration/esys-create-primary-hmac.int \
100 test/integration/esys-create-session-auth.int \
101 test/integration/esys-evict-control-serialization.int \
102 test/integration/esys-get-capability.int \
103 test/integration/esys-get-random.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100104 test/integration/esys-hashsequencestart.int \
105 test/integration/esys-hashsequencestart-session.int \
106 test/integration/esys-hierarchychangeauth.int \
107 test/integration/esys-hmacsequencestart.int \
108 test/integration/esys-hmacsequencestart-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100109 test/integration/esys-make-credential.int \
110 test/integration/esys-make-credential-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100111 test/integration/esys-nv-ram-counter.int \
112 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100113 test/integration/esys-nv-ram-extend-index.int \
114 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100115 test/integration/esys-nv-ram-set-bits.int \
116 test/integration/esys-nv-ram-set-bits-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100117 test/integration/esys-quote.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100118 test/integration/esys-object-changeauth.int \
119 test/integration/esys-policy-nv-changeauth.int \
120 test/integration/esys-policy-password.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100121 test/integration/esys-rsa-encrypt-decrypt.int \
122 test/integration/esys-save-and-load-context.int
123endif #ESAPI
124endif #SIMULATOR_BIN
125
126CLEANFILES += \
127 test/integration/*.log \
128 test/tpmclient/*.log \
129 test/unit/*.log
130
131if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800132test_unit_util_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca7a10ee32018-03-06 12:48:39 -0800133test_unit_util_LDADD = $(CMOCKA_LIBS) $(libutil) $(libmarshal)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100134test_unit_util_LDFLAGS = -Wl,--wrap=write
135test_unit_util_SOURCES = test/unit/util.c
136
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800137test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100138test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libmarshal) $(libutil)
139test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
140test_unit_tcti_device_SOURCES = test/unit/tcti-device.c tcti/tcti_device.c log/log.h
141
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800142test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaaddad782018-03-09 11:42:05 -0800143test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libmarshal) $(URIPARSER_LIBS) $(libutil)
144test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
145test_unit_tcti_mssim_SOURCES = tcti/tcti-mssim.c tcti/sockets.c \
146 tcti/sockets.h test/unit/tcti-mssim.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100147
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800148test_unit_socket_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca7a10ee32018-03-06 12:48:39 -0800149test_unit_socket_LDADD = $(CMOCKA_LIBS) $(libutil) $(libmarshal)
Philip Tricca2bec2a82018-03-04 21:27:30 -0800150test_unit_socket_LDFLAGS = -Wl,--wrap=connect,--wrap=socket
151test_unit_socket_SOURCES = test/unit/socket.c tcti/sockets.c tcti/sockets.h
152
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800153test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100154test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
155test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libsapi)
156test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
157
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800158test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100159test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libsapi)
160test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
161
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800162test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100163test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
164test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libsapi)
165test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
166
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800167test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100168test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
169test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
170
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800171test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100172test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
173test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
174
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800175test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100176test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
177test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
178
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800179test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100180test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
181test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
182
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800183test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100184test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
185test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
186
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800187test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100188test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
189test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
190
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800191test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100192test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
193test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
194
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800195test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100196test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
197test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
198
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800199test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100200test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
201test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
202
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800203test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100204test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libmarshal)
205test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
206endif # UNIT
207
208if SIMULATOR_BIN
209test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
210test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
211test_tpmclient_tpmclient_int_SOURCES = \
212 test/tpmclient/CatSizedByteBuffer.c test/tpmclient/CopySizedBuffer.c \
213 test/tpmclient/CreateNullSession.c test/tpmclient/DecryptEncrypt.c \
214 test/tpmclient/Entity.c test/tpmclient/kdfa.c \
215 test/tpmclient/LoadExternalHMACKey.c test/integration/main.c \
216 test/tpmclient/sample.h test/tpmclient/TpmHmac.c \
217 test/tpmclient/SessionHmac.c test/tpmclient/SetLocality.c \
218 test/tpmclient/StartAuthSession.c test/tpmclient/syscontext.c \
219 test/tpmclient/syscontext.h test/tpmclient/TpmCalcPHash.c \
220 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.h \
221 test/tpmclient/TpmHandleToName.c test/tpmclient/TpmHash.c
222
223test_integration_libtest_utils_la_SOURCES = \
224 test/integration/context-util.c test/integration/context-util.h \
225 test/integration/sapi-util.c test/integration/sapi-util.h \
226 test/integration/test-options.c test/integration/test-options.h \
227 test/integration/test.h
228
229test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
230test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
231test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
232 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
233
234test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
235test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
236test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
237 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
238 test/integration/main.c
239
240test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
241test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
242test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
243 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
244
245test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
246test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
247test_integration_encrypt_decrypt_int_SOURCES = \
248 test/integration/encrypt-decrypt.int.c test/integration/main.c
249
250test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
251test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
252test_integration_encrypt_decrypt_2_int_SOURCES = \
253 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
254
255test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
256test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
257test_integration_evict_ctrl_int_SOURCES = \
258 test/integration/evict-ctrl.int.c test/integration/main.c
259
260test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
261test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
262test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
263 test/integration/main.c
264
265test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
266test_integration_get_random_int_LDADD = $(TESTS_LDADD)
267test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
268 test/integration/main.c
269
270test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
271test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
272test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
273 test/integration/main.c
274
275test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
276test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
277test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
278 test/integration/main.c
279
280test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
281test_integration_self_test_int_LDADD = $(TESTS_LDADD)
282test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
283 test/integration/main.c
284
285test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
286test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
287test_integration_hierarchy_change_auth_int_SOURCES = \
288 test/integration/hierarchy-change-auth.int.c test/integration/main.c
289
290test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
291test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
292test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
293 test/integration/start-auth-session.int.c
294
295test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
296test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
297test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
298 test/integration/tpm-properties.int.c
299
300test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
301test_integration_system_api_int_LDADD = $(TESTS_LDADD)
302test_integration_system_api_int_SOURCES = test/integration/main.c \
303 test/integration/system-api.int.c
304
305if ESAPI
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800306test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100307test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
308test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
309test_integration_esys_clear_int_SOURCES = \
310 test/integration/esys-clear.int.c \
311 test/integration/main-esapi.c test/integration/test-esapi.h
312
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800313test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) \
314 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100315test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
316test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
317test_integration_esys_clear_session_int_SOURCES = \
318 test/integration/esys-clear.int.c \
319 test/integration/main-esapi.c test/integration/test-esapi.h
320
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800321test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100322test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
323test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
324test_integration_esys_clockset_int_SOURCES = \
325 test/integration/esys-clockset.int.c \
326 test/integration/main-esapi.c test/integration/test-esapi.h
327
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800328test_integration_esys_clockset_session_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100329test_integration_esys_clockset_session_int_LDADD = $(TESTS_LDADD)
330test_integration_esys_clockset_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
331test_integration_esys_clockset_session_int_SOURCES = \
332 test/integration/esys-clockset.int.c \
333 test/integration/main-esapi.c test/integration/test-esapi.h
334
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800335test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100336test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
337test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
338test_integration_esys_create_fail_int_SOURCES = \
339 test/integration/esys-create-fail.int.c \
340 test/integration/main-esapi.c test/integration/test-esapi.h
341
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800342test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100343test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
344test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
345test_integration_esys_createloaded_int_SOURCES = \
346 test/integration/esys-createloaded.int.c \
347 test/integration/main-esapi.c test/integration/test-esapi.h
348
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800349test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
350 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100351test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
352test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
353test_integration_esys_createloaded_session_int_SOURCES = \
354 test/integration/esys-createloaded.int.c \
355 test/integration/main-esapi.c test/integration/test-esapi.h
356
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800357test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100358test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
359test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
360test_integration_esys_create_password_auth_int_SOURCES = \
361 test/integration/esys-create-password-auth.int.c \
362 test/integration/main-esapi.c test/integration/test-esapi.h
363
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800364test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100365test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
366test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
367test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
368 test/integration/esys-create-primary-hmac.int.c \
369 test/integration/main-esapi.c test/integration/test-esapi.h
370
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800371test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100372test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
373test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
374test_integration_esys_create_primary_hmac_int_SOURCES = \
375 test/integration/esys-create-primary-hmac.int.c \
376 test/integration/main-esapi.c test/integration/test-esapi.h
377
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800378test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100379test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
380test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
381test_integration_esys_create_session_auth_int_SOURCES = \
382 test/integration/esys-create-session-auth.int.c \
383 test/integration/main-esapi.c test/integration/test-esapi.h
384
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800385test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100386test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
387test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
388test_integration_esys_evict_control_serialization_int_SOURCES = \
389 test/integration/esys-evict-control-serialization.int.c \
390 test/integration/main-esapi.c test/integration/test-esapi.h
391
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800392test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100393test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
394test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
395test_integration_esys_get_capability_int_SOURCES = \
396 test/integration/esys-get-capability.int.c \
397 test/integration/main-esapi.c test/integration/test-esapi.h
398
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800399test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100400test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
401test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
402test_integration_esys_get_random_int_SOURCES = \
403 test/integration/esys-get-random.int.c \
404 test/integration/main-esapi.c test/integration/test-esapi.h
405
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800406test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100407test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
408test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
409test_integration_esys_hashsequencestart_int_SOURCES = \
410 test/integration/esys-hashsequencestart.int.c \
411 test/integration/main-esapi.c test/integration/test-esapi.h
412
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800413test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
414 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100415test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
416test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
417test_integration_esys_hashsequencestart_session_int_SOURCES = \
418 test/integration/esys-hashsequencestart.int.c \
419 test/integration/main-esapi.c test/integration/test-esapi.h
420
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800421test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100422test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
423test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
424test_integration_esys_hmacsequencestart_int_SOURCES = \
425 test/integration/esys-hmacsequencestart.int.c \
426 test/integration/main-esapi.c test/integration/test-esapi.h
427
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800428test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
429 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100430test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
431test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
432test_integration_esys_hmacsequencestart_session_int_SOURCES = \
433 test/integration/esys-hmacsequencestart.int.c \
434 test/integration/main-esapi.c test/integration/test-esapi.h
435
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800436test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100437test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
438test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
439test_integration_esys_hierarchychangeauth_int_SOURCES = \
440 test/integration/esys-hierarchychangeauth.int.c \
441 test/integration/main-esapi.c test/integration/test-esapi.h
442
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800443test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100444test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
445test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
446test_integration_esys_make_credential_int_SOURCES = \
447 test/integration/esys-make-credential.int.c \
448 test/integration/main-esapi.c test/integration/test-esapi.h
449
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800450test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
451 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100452test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
453test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
454test_integration_esys_make_credential_session_int_SOURCES = \
455 test/integration/esys-make-credential.int.c \
456 test/integration/main-esapi.c test/integration/test-esapi.h
457
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800458test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100459test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
460test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
461test_integration_esys_nv_ram_counter_int_SOURCES = \
462 test/integration/esys-nv-ram-counter.int.c \
463 test/integration/main-esapi.c test/integration/test-esapi.h
464
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800465test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
466 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100467test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
468test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
469test_integration_esys_nv_ram_counter_session_int_SOURCES = \
470 test/integration/esys-nv-ram-counter.int.c \
471 test/integration/main-esapi.c test/integration/test-esapi.h
472
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800473test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100474test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
475test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
476test_integration_esys_nv_ram_extend_index_int_SOURCES = \
477 test/integration/esys-nv-ram-extend-index.int.c \
478 test/integration/main-esapi.c test/integration/test-esapi.h
479
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800480test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
481 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100482test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
483test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
484test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
485 test/integration/esys-nv-ram-extend-index.int.c \
486 test/integration/main-esapi.c test/integration/test-esapi.h
487
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800488test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100489test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
490test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
491test_integration_esys_nv_ram_set_bits_int_SOURCES = \
492 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100493 test/integration/main-esapi.c test/integration/test-esapi.h
494
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800495test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
496 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100497test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
498test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
499test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
500 test/integration/esys-nv-ram-set-bits.int.c \
501 test/integration/main-esapi.c test/integration/test-esapi.h
502
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800503test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100504test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
505test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
506test_integration_esys_object_changeauth_int_SOURCES = \
507 test/integration/esys-object-changeauth.int.c \
508 test/integration/main-esapi.c test/integration/test-esapi.h
509
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800510test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100511test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
512test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
513test_integration_esys_policy_nv_changeauth_int_SOURCES = \
514 test/integration/esys-policy-nv-changeauth.int.c \
515 test/integration/main-esapi.c test/integration/test-esapi.h
516
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800517test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100518test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
519test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
520test_integration_esys_policy_password_int_SOURCES = \
521 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100522 test/integration/main-esapi.c test/integration/test-esapi.h
523
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800524test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100525test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
526test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
527test_integration_esys_quote_int_SOURCES = \
528 test/integration/esys-quote.int.c \
529 test/integration/main-esapi.c test/integration/test-esapi.h
530
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800531test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100532test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
533test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
534test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
535 test/integration/esys-rsa-encrypt-decrypt.int.c \
536 test/integration/main-esapi.c test/integration/test-esapi.h
537
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800538test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100539test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
540test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
541test_integration_esys_save_and_load_context_int_SOURCES = \
542 test/integration/esys-save-and-load-context.int.c \
543 test/integration/main-esapi.c test/integration/test-esapi.h
544endif #ESAPI
545
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800546test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100547test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
548test_integration_policy_template_int_SOURCES = test/integration/main.c \
549 test/integration/policy-template.int.c
550
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800551test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100552test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
553test_integration_create_loaded_int_SOURCES = test/integration/main.c \
554 test/integration/create-loaded.int.c
555
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800556test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100557test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
558test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c log/log.h log/log.c \
559 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800560
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800561test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800562test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
563test_integration_command_cancel_int_SOURCES = test/integration/main.c log/log.h log/log.c \
564 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100565endif #SIMULATOR_BIN