blob: 099f8218228487a3889320d44b10c94f916fd366 [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 Triccaee730622018-03-10 16:40:41 -080029TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/src/tss2-mu \
Philip Tricca5f0ab552018-03-10 18:18:29 -080030 -I$(srcdir)/src/tss2-sys/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 Triccaee730622018-03-10 16:40:41 -0800133test_unit_util_LDADD = $(CMOCKA_LIBS) $(libutil) $(libtss2_mu)
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)
Philip Triccaee730622018-03-10 16:40:41 -0800138test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100139test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800140test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800141 src/tss2-tcti/tcti-device.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100142
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800143test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800144test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800145test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800146test_unit_tcti_mssim_SOURCES = src/tss2-tcti/tcti-mssim.c src/tss2-tcti/sockets.c \
147 src/tss2-tcti/sockets.h test/unit/tcti-mssim.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100148
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800149test_unit_socket_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800150test_unit_socket_LDADD = $(CMOCKA_LIBS) $(libutil) $(libtss2_mu)
Philip Tricca2bec2a82018-03-04 21:27:30 -0800151test_unit_socket_LDFLAGS = -Wl,--wrap=connect,--wrap=socket
Philip Triccab8584ac2018-03-10 17:02:30 -0800152test_unit_socket_SOURCES = test/unit/socket.c src/tss2-tcti/sockets.c \
153 src/tss2-tcti/sockets.h
Philip Tricca2bec2a82018-03-04 21:27:30 -0800154
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800155test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100156test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800157test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100158test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
159
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800160test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800161test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100162test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
163
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800164test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100165test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800166test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100167test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
168
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800169test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800170test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100171test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
172
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800173test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800174test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100175test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
176
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800177test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800178test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100179test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
180
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800181test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800182test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100183test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
184
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800185test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800186test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100187test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
188
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800189test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800190test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100191test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
192
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800193test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800194test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100195test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
196
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800197test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800198test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100199test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
200
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800201test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800202test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100203test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
204
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800205test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800206test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100207test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
208endif # UNIT
209
210if SIMULATOR_BIN
211test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
212test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
213test_tpmclient_tpmclient_int_SOURCES = \
214 test/tpmclient/CatSizedByteBuffer.c test/tpmclient/CopySizedBuffer.c \
215 test/tpmclient/CreateNullSession.c test/tpmclient/DecryptEncrypt.c \
216 test/tpmclient/Entity.c test/tpmclient/kdfa.c \
217 test/tpmclient/LoadExternalHMACKey.c test/integration/main.c \
218 test/tpmclient/sample.h test/tpmclient/TpmHmac.c \
219 test/tpmclient/SessionHmac.c test/tpmclient/SetLocality.c \
220 test/tpmclient/StartAuthSession.c test/tpmclient/syscontext.c \
221 test/tpmclient/syscontext.h test/tpmclient/TpmCalcPHash.c \
222 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.h \
223 test/tpmclient/TpmHandleToName.c test/tpmclient/TpmHash.c
224
225test_integration_libtest_utils_la_SOURCES = \
226 test/integration/context-util.c test/integration/context-util.h \
227 test/integration/sapi-util.c test/integration/sapi-util.h \
228 test/integration/test-options.c test/integration/test-options.h \
229 test/integration/test.h
230
231test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
232test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
233test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
234 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
235
236test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
237test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
238test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
239 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
240 test/integration/main.c
241
242test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
243test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
244test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
245 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
246
247test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
248test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
249test_integration_encrypt_decrypt_int_SOURCES = \
250 test/integration/encrypt-decrypt.int.c test/integration/main.c
251
252test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
253test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
254test_integration_encrypt_decrypt_2_int_SOURCES = \
255 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
256
257test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
258test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
259test_integration_evict_ctrl_int_SOURCES = \
260 test/integration/evict-ctrl.int.c test/integration/main.c
261
262test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
263test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
264test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
265 test/integration/main.c
266
267test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
268test_integration_get_random_int_LDADD = $(TESTS_LDADD)
269test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
270 test/integration/main.c
271
272test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
273test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
274test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
275 test/integration/main.c
276
277test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
278test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
279test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
280 test/integration/main.c
281
282test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
283test_integration_self_test_int_LDADD = $(TESTS_LDADD)
284test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
285 test/integration/main.c
286
287test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
288test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
289test_integration_hierarchy_change_auth_int_SOURCES = \
290 test/integration/hierarchy-change-auth.int.c test/integration/main.c
291
292test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
293test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
294test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
295 test/integration/start-auth-session.int.c
296
297test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
298test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
299test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
300 test/integration/tpm-properties.int.c
301
302test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
303test_integration_system_api_int_LDADD = $(TESTS_LDADD)
304test_integration_system_api_int_SOURCES = test/integration/main.c \
305 test/integration/system-api.int.c
306
307if ESAPI
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800308test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100309test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
310test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
311test_integration_esys_clear_int_SOURCES = \
312 test/integration/esys-clear.int.c \
313 test/integration/main-esapi.c test/integration/test-esapi.h
314
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800315test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) \
316 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100317test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
318test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
319test_integration_esys_clear_session_int_SOURCES = \
320 test/integration/esys-clear.int.c \
321 test/integration/main-esapi.c test/integration/test-esapi.h
322
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800323test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100324test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
325test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
326test_integration_esys_clockset_int_SOURCES = \
327 test/integration/esys-clockset.int.c \
328 test/integration/main-esapi.c test/integration/test-esapi.h
329
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800330test_integration_esys_clockset_session_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100331test_integration_esys_clockset_session_int_LDADD = $(TESTS_LDADD)
332test_integration_esys_clockset_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
333test_integration_esys_clockset_session_int_SOURCES = \
334 test/integration/esys-clockset.int.c \
335 test/integration/main-esapi.c test/integration/test-esapi.h
336
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800337test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100338test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
339test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
340test_integration_esys_create_fail_int_SOURCES = \
341 test/integration/esys-create-fail.int.c \
342 test/integration/main-esapi.c test/integration/test-esapi.h
343
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800344test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100345test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
346test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
347test_integration_esys_createloaded_int_SOURCES = \
348 test/integration/esys-createloaded.int.c \
349 test/integration/main-esapi.c test/integration/test-esapi.h
350
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800351test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
352 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100353test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
354test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
355test_integration_esys_createloaded_session_int_SOURCES = \
356 test/integration/esys-createloaded.int.c \
357 test/integration/main-esapi.c test/integration/test-esapi.h
358
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800359test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100360test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
361test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
362test_integration_esys_create_password_auth_int_SOURCES = \
363 test/integration/esys-create-password-auth.int.c \
364 test/integration/main-esapi.c test/integration/test-esapi.h
365
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800366test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100367test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
368test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
369test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
370 test/integration/esys-create-primary-hmac.int.c \
371 test/integration/main-esapi.c test/integration/test-esapi.h
372
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800373test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100374test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
375test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
376test_integration_esys_create_primary_hmac_int_SOURCES = \
377 test/integration/esys-create-primary-hmac.int.c \
378 test/integration/main-esapi.c test/integration/test-esapi.h
379
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800380test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100381test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
382test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
383test_integration_esys_create_session_auth_int_SOURCES = \
384 test/integration/esys-create-session-auth.int.c \
385 test/integration/main-esapi.c test/integration/test-esapi.h
386
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800387test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100388test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
389test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
390test_integration_esys_evict_control_serialization_int_SOURCES = \
391 test/integration/esys-evict-control-serialization.int.c \
392 test/integration/main-esapi.c test/integration/test-esapi.h
393
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800394test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100395test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
396test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
397test_integration_esys_get_capability_int_SOURCES = \
398 test/integration/esys-get-capability.int.c \
399 test/integration/main-esapi.c test/integration/test-esapi.h
400
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800401test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100402test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
403test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
404test_integration_esys_get_random_int_SOURCES = \
405 test/integration/esys-get-random.int.c \
406 test/integration/main-esapi.c test/integration/test-esapi.h
407
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800408test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100409test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
410test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
411test_integration_esys_hashsequencestart_int_SOURCES = \
412 test/integration/esys-hashsequencestart.int.c \
413 test/integration/main-esapi.c test/integration/test-esapi.h
414
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800415test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
416 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100417test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
418test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
419test_integration_esys_hashsequencestart_session_int_SOURCES = \
420 test/integration/esys-hashsequencestart.int.c \
421 test/integration/main-esapi.c test/integration/test-esapi.h
422
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800423test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100424test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
425test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
426test_integration_esys_hmacsequencestart_int_SOURCES = \
427 test/integration/esys-hmacsequencestart.int.c \
428 test/integration/main-esapi.c test/integration/test-esapi.h
429
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800430test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
431 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100432test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
433test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
434test_integration_esys_hmacsequencestart_session_int_SOURCES = \
435 test/integration/esys-hmacsequencestart.int.c \
436 test/integration/main-esapi.c test/integration/test-esapi.h
437
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800438test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100439test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
440test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
441test_integration_esys_hierarchychangeauth_int_SOURCES = \
442 test/integration/esys-hierarchychangeauth.int.c \
443 test/integration/main-esapi.c test/integration/test-esapi.h
444
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800445test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100446test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
447test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
448test_integration_esys_make_credential_int_SOURCES = \
449 test/integration/esys-make-credential.int.c \
450 test/integration/main-esapi.c test/integration/test-esapi.h
451
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800452test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
453 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100454test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
455test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
456test_integration_esys_make_credential_session_int_SOURCES = \
457 test/integration/esys-make-credential.int.c \
458 test/integration/main-esapi.c test/integration/test-esapi.h
459
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800460test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100461test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
462test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
463test_integration_esys_nv_ram_counter_int_SOURCES = \
464 test/integration/esys-nv-ram-counter.int.c \
465 test/integration/main-esapi.c test/integration/test-esapi.h
466
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800467test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
468 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100469test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
470test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
471test_integration_esys_nv_ram_counter_session_int_SOURCES = \
472 test/integration/esys-nv-ram-counter.int.c \
473 test/integration/main-esapi.c test/integration/test-esapi.h
474
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800475test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100476test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
477test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
478test_integration_esys_nv_ram_extend_index_int_SOURCES = \
479 test/integration/esys-nv-ram-extend-index.int.c \
480 test/integration/main-esapi.c test/integration/test-esapi.h
481
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800482test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
483 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100484test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
485test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
486test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
487 test/integration/esys-nv-ram-extend-index.int.c \
488 test/integration/main-esapi.c test/integration/test-esapi.h
489
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800490test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100491test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
492test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
493test_integration_esys_nv_ram_set_bits_int_SOURCES = \
494 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100495 test/integration/main-esapi.c test/integration/test-esapi.h
496
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800497test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
498 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100499test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
500test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
501test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
502 test/integration/esys-nv-ram-set-bits.int.c \
503 test/integration/main-esapi.c test/integration/test-esapi.h
504
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800505test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100506test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
507test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
508test_integration_esys_object_changeauth_int_SOURCES = \
509 test/integration/esys-object-changeauth.int.c \
510 test/integration/main-esapi.c test/integration/test-esapi.h
511
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800512test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100513test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
514test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
515test_integration_esys_policy_nv_changeauth_int_SOURCES = \
516 test/integration/esys-policy-nv-changeauth.int.c \
517 test/integration/main-esapi.c test/integration/test-esapi.h
518
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800519test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100520test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
521test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
522test_integration_esys_policy_password_int_SOURCES = \
523 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100524 test/integration/main-esapi.c test/integration/test-esapi.h
525
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800526test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100527test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
528test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
529test_integration_esys_quote_int_SOURCES = \
530 test/integration/esys-quote.int.c \
531 test/integration/main-esapi.c test/integration/test-esapi.h
532
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800533test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100534test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
535test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
536test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
537 test/integration/esys-rsa-encrypt-decrypt.int.c \
538 test/integration/main-esapi.c test/integration/test-esapi.h
539
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800540test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100541test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
542test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
543test_integration_esys_save_and_load_context_int_SOURCES = \
544 test/integration/esys-save-and-load-context.int.c \
545 test/integration/main-esapi.c test/integration/test-esapi.h
546endif #ESAPI
547
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800548test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100549test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
550test_integration_policy_template_int_SOURCES = test/integration/main.c \
551 test/integration/policy-template.int.c
552
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800553test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100554test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
555test_integration_create_loaded_int_SOURCES = test/integration/main.c \
556 test/integration/create-loaded.int.c
557
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800558test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100559test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800560test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100561 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800562
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800563test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800564test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800565test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800566 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100567endif #SIMULATOR_BIN