blob: af59389e26318b369f218f68d91c5c287801fb94 [file] [log] [blame]
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01001#;**********************************************************************;
Philip Tricca49635f42018-03-10 19:19:58 -08002# Copyright (c) 2015 - 2018 Intel Corporation
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01003# 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 Tricca0013d842018-03-13 18:33:00 -070030 -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys
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 Tricca88ced722018-03-14 15:24:20 -070049 test/unit/io \
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/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
62endif #UNIT
63
64if SIMULATOR_BIN
65noinst_LTLIBRARIES += test/integration/libtest_utils.la
66TESTS_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 \
Tadeusz Strukcbde8662018-03-08 15:11:47 -080085 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010086 test/tpmclient/tpmclient.int
87if ESAPI
88TESTS_INTEGRATION += \
Juergen Repp110a68a2018-03-08 11:51:30 +010089 test/integration/esys-clear.int \
90 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010091 test/integration/esys-clockset.int \
92 test/integration/esys-clockset-session.int \
93 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +010094 test/integration/esys-createloaded.int \
95 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010096 test/integration/esys-create-password-auth.int \
97 test/integration/esys-create-primary-ecc-hmac.int \
98 test/integration/esys-create-primary-hmac.int \
99 test/integration/esys-create-session-auth.int \
100 test/integration/esys-evict-control-serialization.int \
101 test/integration/esys-get-capability.int \
102 test/integration/esys-get-random.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100103 test/integration/esys-hashsequencestart.int \
104 test/integration/esys-hashsequencestart-session.int \
105 test/integration/esys-hierarchychangeauth.int \
106 test/integration/esys-hmacsequencestart.int \
107 test/integration/esys-hmacsequencestart-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100108 test/integration/esys-make-credential.int \
109 test/integration/esys-make-credential-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100110 test/integration/esys-nv-ram-counter.int \
111 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100112 test/integration/esys-nv-ram-extend-index.int \
113 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100114 test/integration/esys-nv-ram-set-bits.int \
115 test/integration/esys-nv-ram-set-bits-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100116 test/integration/esys-quote.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100117 test/integration/esys-object-changeauth.int \
118 test/integration/esys-policy-nv-changeauth.int \
119 test/integration/esys-policy-password.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100120 test/integration/esys-rsa-encrypt-decrypt.int \
121 test/integration/esys-save-and-load-context.int
122endif #ESAPI
123endif #SIMULATOR_BIN
124
125CLEANFILES += \
126 test/integration/*.log \
127 test/tpmclient/*.log \
128 test/unit/*.log
129
130if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800131test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800132test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100133test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800134test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca88ced722018-03-14 15:24:20 -0700135 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti.c src/tss2-tcti/tcti.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100136
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800137test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800138test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800139test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700140test_unit_tcti_mssim_SOURCES = src/tss2-tcti/tcti-mssim.c \
141 test/unit/tcti-mssim.c src/tss2-tcti/tcti.c src/tss2-tcti/tcti.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100142
Philip Tricca88ced722018-03-14 15:24:20 -0700143test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
144test_unit_io_LDADD = $(CMOCKA_LIBS) $(libutil) $(libtss2_mu)
145test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=socket,--wrap=write
146test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800147
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800148test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100149test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800150test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100151test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
152
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800153test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800154test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100155test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
156
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800157test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100158test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800159test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100160test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
161
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800162test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800163test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100164test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
165
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800166test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800167test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100168test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
169
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800170test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800171test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100172test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
173
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800174test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800175test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100176test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
177
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800178test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800179test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100180test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
181
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800182test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800183test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100184test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
185
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800186test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800187test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100188test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
189
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800190test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800191test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100192test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
193
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800194test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800195test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100196test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
197
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800198test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800199test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100200test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
201endif # UNIT
202
203if SIMULATOR_BIN
204test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
205test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
206test_tpmclient_tpmclient_int_SOURCES = \
207 test/tpmclient/CatSizedByteBuffer.c test/tpmclient/CopySizedBuffer.c \
208 test/tpmclient/CreateNullSession.c test/tpmclient/DecryptEncrypt.c \
209 test/tpmclient/Entity.c test/tpmclient/kdfa.c \
210 test/tpmclient/LoadExternalHMACKey.c test/integration/main.c \
211 test/tpmclient/sample.h test/tpmclient/TpmHmac.c \
212 test/tpmclient/SessionHmac.c test/tpmclient/SetLocality.c \
213 test/tpmclient/StartAuthSession.c test/tpmclient/syscontext.c \
214 test/tpmclient/syscontext.h test/tpmclient/TpmCalcPHash.c \
215 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.h \
216 test/tpmclient/TpmHandleToName.c test/tpmclient/TpmHash.c
217
218test_integration_libtest_utils_la_SOURCES = \
219 test/integration/context-util.c test/integration/context-util.h \
220 test/integration/sapi-util.c test/integration/sapi-util.h \
221 test/integration/test-options.c test/integration/test-options.h \
222 test/integration/test.h
223
224test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
225test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
226test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
227 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
228
229test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
230test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
231test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
232 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
233 test/integration/main.c
234
235test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
236test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
237test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
238 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
239
240test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
241test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
242test_integration_encrypt_decrypt_int_SOURCES = \
243 test/integration/encrypt-decrypt.int.c test/integration/main.c
244
245test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
246test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
247test_integration_encrypt_decrypt_2_int_SOURCES = \
248 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
249
250test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
251test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
252test_integration_evict_ctrl_int_SOURCES = \
253 test/integration/evict-ctrl.int.c test/integration/main.c
254
255test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
256test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
257test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
258 test/integration/main.c
259
260test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
261test_integration_get_random_int_LDADD = $(TESTS_LDADD)
262test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
263 test/integration/main.c
264
265test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
266test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
267test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
268 test/integration/main.c
269
270test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
271test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
272test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
273 test/integration/main.c
274
275test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
276test_integration_self_test_int_LDADD = $(TESTS_LDADD)
277test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
278 test/integration/main.c
279
280test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
281test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
282test_integration_hierarchy_change_auth_int_SOURCES = \
283 test/integration/hierarchy-change-auth.int.c test/integration/main.c
284
285test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
286test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
287test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
288 test/integration/start-auth-session.int.c
289
290test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
291test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
292test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
293 test/integration/tpm-properties.int.c
294
295test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
296test_integration_system_api_int_LDADD = $(TESTS_LDADD)
297test_integration_system_api_int_SOURCES = test/integration/main.c \
298 test/integration/system-api.int.c
299
300if ESAPI
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800301test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100302test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
303test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
304test_integration_esys_clear_int_SOURCES = \
305 test/integration/esys-clear.int.c \
306 test/integration/main-esapi.c test/integration/test-esapi.h
307
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800308test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) \
309 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100310test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
311test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
312test_integration_esys_clear_session_int_SOURCES = \
313 test/integration/esys-clear.int.c \
314 test/integration/main-esapi.c test/integration/test-esapi.h
315
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800316test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100317test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
318test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
319test_integration_esys_clockset_int_SOURCES = \
320 test/integration/esys-clockset.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_session_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100324test_integration_esys_clockset_session_int_LDADD = $(TESTS_LDADD)
325test_integration_esys_clockset_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
326test_integration_esys_clockset_session_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_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100331test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
332test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
333test_integration_esys_create_fail_int_SOURCES = \
334 test/integration/esys-create-fail.int.c \
335 test/integration/main-esapi.c test/integration/test-esapi.h
336
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800337test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100338test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
339test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
340test_integration_esys_createloaded_int_SOURCES = \
341 test/integration/esys-createloaded.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
345 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100346test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
347test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
348test_integration_esys_createloaded_session_int_SOURCES = \
349 test/integration/esys-createloaded.int.c \
350 test/integration/main-esapi.c test/integration/test-esapi.h
351
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800352test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100353test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
354test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
355test_integration_esys_create_password_auth_int_SOURCES = \
356 test/integration/esys-create-password-auth.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_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100360test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
361test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
362test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
363 test/integration/esys-create-primary-hmac.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_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100367test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
368test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
369test_integration_esys_create_primary_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_session_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100374test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
375test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
376test_integration_esys_create_session_auth_int_SOURCES = \
377 test/integration/esys-create-session-auth.int.c \
378 test/integration/main-esapi.c test/integration/test-esapi.h
379
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800380test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100381test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
382test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
383test_integration_esys_evict_control_serialization_int_SOURCES = \
384 test/integration/esys-evict-control-serialization.int.c \
385 test/integration/main-esapi.c test/integration/test-esapi.h
386
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800387test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100388test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
389test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
390test_integration_esys_get_capability_int_SOURCES = \
391 test/integration/esys-get-capability.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_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100395test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
396test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
397test_integration_esys_get_random_int_SOURCES = \
398 test/integration/esys-get-random.int.c \
399 test/integration/main-esapi.c test/integration/test-esapi.h
400
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800401test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100402test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
403test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
404test_integration_esys_hashsequencestart_int_SOURCES = \
405 test/integration/esys-hashsequencestart.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
409 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100410test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
411test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
412test_integration_esys_hashsequencestart_session_int_SOURCES = \
413 test/integration/esys-hashsequencestart.int.c \
414 test/integration/main-esapi.c test/integration/test-esapi.h
415
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800416test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100417test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
418test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
419test_integration_esys_hmacsequencestart_int_SOURCES = \
420 test/integration/esys-hmacsequencestart.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
424 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100425test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
426test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
427test_integration_esys_hmacsequencestart_session_int_SOURCES = \
428 test/integration/esys-hmacsequencestart.int.c \
429 test/integration/main-esapi.c test/integration/test-esapi.h
430
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800431test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100432test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
433test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
434test_integration_esys_hierarchychangeauth_int_SOURCES = \
435 test/integration/esys-hierarchychangeauth.int.c \
436 test/integration/main-esapi.c test/integration/test-esapi.h
437
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800438test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100439test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
440test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
441test_integration_esys_make_credential_int_SOURCES = \
442 test/integration/esys-make-credential.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
446 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100447test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
448test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
449test_integration_esys_make_credential_session_int_SOURCES = \
450 test/integration/esys-make-credential.int.c \
451 test/integration/main-esapi.c test/integration/test-esapi.h
452
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800453test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100454test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
455test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
456test_integration_esys_nv_ram_counter_int_SOURCES = \
457 test/integration/esys-nv-ram-counter.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
461 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100462test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
463test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
464test_integration_esys_nv_ram_counter_session_int_SOURCES = \
465 test/integration/esys-nv-ram-counter.int.c \
466 test/integration/main-esapi.c test/integration/test-esapi.h
467
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800468test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100469test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
470test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
471test_integration_esys_nv_ram_extend_index_int_SOURCES = \
472 test/integration/esys-nv-ram-extend-index.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
476 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100477test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
478test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
479test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
480 test/integration/esys-nv-ram-extend-index.int.c \
481 test/integration/main-esapi.c test/integration/test-esapi.h
482
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800483test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100484test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
485test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
486test_integration_esys_nv_ram_set_bits_int_SOURCES = \
487 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100488 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_session_int_CFLAGS = $(TESTS_CFLAGS) \
491 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100492test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
493test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
494test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
495 test/integration/esys-nv-ram-set-bits.int.c \
496 test/integration/main-esapi.c test/integration/test-esapi.h
497
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800498test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100499test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
500test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
501test_integration_esys_object_changeauth_int_SOURCES = \
502 test/integration/esys-object-changeauth.int.c \
503 test/integration/main-esapi.c test/integration/test-esapi.h
504
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800505test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100506test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
507test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
508test_integration_esys_policy_nv_changeauth_int_SOURCES = \
509 test/integration/esys-policy-nv-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_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100513test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
514test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
515test_integration_esys_policy_password_int_SOURCES = \
516 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100517 test/integration/main-esapi.c test/integration/test-esapi.h
518
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800519test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100520test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
521test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
522test_integration_esys_quote_int_SOURCES = \
523 test/integration/esys-quote.int.c \
524 test/integration/main-esapi.c test/integration/test-esapi.h
525
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800526test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100527test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
528test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
529test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
530 test/integration/esys-rsa-encrypt-decrypt.int.c \
531 test/integration/main-esapi.c test/integration/test-esapi.h
532
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800533test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100534test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
535test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
536test_integration_esys_save_and_load_context_int_SOURCES = \
537 test/integration/esys-save-and-load-context.int.c \
538 test/integration/main-esapi.c test/integration/test-esapi.h
539endif #ESAPI
540
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800541test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100542test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
543test_integration_policy_template_int_SOURCES = test/integration/main.c \
544 test/integration/policy-template.int.c
545
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800546test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100547test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
548test_integration_create_loaded_int_SOURCES = test/integration/main.c \
549 test/integration/create-loaded.int.c
550
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800551test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100552test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800553test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100554 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800555
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800556test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800557test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800558test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800559 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100560endif #SIMULATOR_BIN