blob: ec730e42d8e52aeeab22fa6f9097667ce1f7932e [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 \
Andreas Fuchsbaeb2be2018-03-29 15:39:50 +020030 -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys \
Andreas Fuchs1c4a8112018-03-29 16:58:07 +020031 -Wno-unused-parameter -Wno-missing-field-initializers
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010032TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil)
33
34# test harness configuration
35TEST_EXTENSIONS = .int
36INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh
37INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN)
38EXTRA_DIST += $(INT_LOG_COMPILER)
39
40check-programs: $(check_PROGRAMS)
41
42check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
43TESTS = $(check_PROGRAMS)
44
Andreas Fuchsa0eda362018-03-28 11:56:42 +020045if SIMULATOR_BIN
46noinst_PROGRAMS += test/helper/tpm_startup
47test_helper_tpm_startup_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
48test_helper_tpm_startup_LDFLAGS = $(TESTS_LDFLAGS)
49test_helper_tpm_startup_LDADD = $(TESTS_LDADD)
50test_helper_tpm_startup_SOURCES = test/helper/tpm_startup.c
Andreas Fuchsa0eda362018-03-28 11:56:42 +020051
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020052noinst_PROGRAMS += test/helper/tpm_transientempty
53test_helper_tpm_transientempty_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
54test_helper_tpm_transientempty_LDFLAGS = $(TESTS_LDFLAGS)
55test_helper_tpm_transientempty_LDADD = $(TESTS_LDADD)
56test_helper_tpm_transientempty_SOURCES = test/helper/tpm_transientempty.c
Philip Tricca216ac492018-03-30 09:21:24 -070057endif #SIMULATOR_BIN
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020058
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010059if UNIT
60TESTS_UNIT = \
61 test/unit/CommonPreparePrologue \
62 test/unit/CopyCommandHeader \
63 test/unit/GetNumHandles \
Philip Tricca88ced722018-03-14 15:24:20 -070064 test/unit/io \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010065 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080066 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010067 test/unit/UINT8-marshal \
68 test/unit/UINT16-marshal \
69 test/unit/UINT32-marshal \
70 test/unit/UINT64-marshal \
71 test/unit/TPMA-marshal \
72 test/unit/TPM2B-marshal \
73 test/unit/TPMS-marshal \
74 test/unit/TPML-marshal \
75 test/unit/TPMT-marshal \
76 test/unit/TPMU-marshal
Juergen Reppd947f132018-03-16 13:15:10 +010077if ESAPI
78TESTS_UNIT += \
Andreas Fuchs88ac7d72018-03-16 13:20:54 +010079 test/unit/esys-context-null \
Andreas Fuchs5d9ce582018-03-21 19:05:47 +010080 test/unit/esys-default-tcti \
Juergen Repp20181512018-03-20 16:14:28 +010081 test/unit/esys-resubmissions \
82 test/unit/esys-sequence-finish
Juergen Reppd947f132018-03-16 13:15:10 +010083endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010084endif #UNIT
85
86if SIMULATOR_BIN
87noinst_LTLIBRARIES += test/integration/libtest_utils.la
88TESTS_INTEGRATION = \
89 test/integration/asymmetric-encrypt-decrypt.int \
90 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
91 test/integration/create-keyedhash-sha1-hmac.int \
92 test/integration/encrypt-decrypt.int \
93 test/integration/encrypt-decrypt-2.int \
94 test/integration/evict-ctrl.int \
95 test/integration/get-random.int \
96 test/integration/hierarchy-change-auth.int \
97 test/integration/abi-version.int \
98 test/integration/pcr-extension.int \
99 test/integration/self-test.int \
100 test/integration/start-auth-session.int \
101 test/integration/sys-initialize.int \
102 test/integration/tpm-properties.int \
103 test/integration/system-api.int \
104 test/integration/policy-template.int \
105 test/integration/create-loaded.int \
106 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800107 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100108 test/tpmclient/tpmclient.int
109if ESAPI
110TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200111 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200112 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200113 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200114 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100115 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200116 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100117 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100118 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200119 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100120 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100121 test/integration/esys-createloaded.int \
122 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-create-password-auth.int \
124 test/integration/esys-create-primary-ecc-hmac.int \
125 test/integration/esys-create-primary-hmac.int \
126 test/integration/esys-create-session-auth.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200127 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200128 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200129 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200130 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200131 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200132 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200133 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100134 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200135 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200136 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100137 test/integration/esys-get-capability.int \
138 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200139 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100140 test/integration/esys-hashsequencestart.int \
141 test/integration/esys-hashsequencestart-session.int \
142 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200143 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100144 test/integration/esys-hmacsequencestart.int \
145 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200146 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200147 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100148 test/integration/esys-make-credential.int \
149 test/integration/esys-make-credential-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100150 test/integration/esys-nv-ram-counter.int \
151 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100152 test/integration/esys-nv-ram-extend-index.int \
153 test/integration/esys-nv-ram-extend-index-session.int \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200154 test/integration/esys-nv-ram-ordinary-index.int \
155 test/integration/esys-nv-ram-ordinary-index-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100156 test/integration/esys-nv-ram-set-bits.int \
157 test/integration/esys-nv-ram-set-bits-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100158 test/integration/esys-quote.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100159 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200160 test/integration/esys-pcr-basic.int \
161 test/integration/esys-pcr-auth-value.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100162 test/integration/esys-policy-nv-changeauth.int \
163 test/integration/esys-policy-password.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100164 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200165 test/integration/esys-save-and-load-context.int \
166 test/integration/esys-unseal-password-auth.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100167endif #ESAPI
168endif #SIMULATOR_BIN
169
170CLEANFILES += \
171 test/integration/*.log \
172 test/tpmclient/*.log \
173 test/unit/*.log
174
175if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800176test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800177test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100178test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800179test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700180 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
181 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100182
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800183test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800184test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800185test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700186test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
187 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
188 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100189
Philip Tricca88ced722018-03-14 15:24:20 -0700190test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700191test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
192test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700193test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800194
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800195test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100196test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800197test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100198test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
199
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800200test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800201test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100202test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
203
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800204test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100205test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800206test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100207test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
208
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800209test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800210test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100211test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
212
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800213test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800214test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100215test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
216
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800217test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800218test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100219test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
220
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800221test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800222test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100223test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
224
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800225test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800226test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100227test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
228
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800229test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800230test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100231test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
232
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800233test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800234test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100235test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
236
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800237test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800238test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100239test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
240
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800241test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800242test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100243test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
244
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800245test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800246test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100247test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100248
249if ESAPI
250test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
251test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
252test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100253test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
254
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100255test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
256test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
257test_unit_esys_default_tcti_LDFLAGS = \
258 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
259 -Wl,--wrap=Tss2_Tcti_Device_Init \
260 -Wl,--wrap=Tss2_Tcti_Mssim_Init
261test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
262 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
263
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100264test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
265test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
266test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
267test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100268
269test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
270test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
271test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
272test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Juergen Reppd947f132018-03-16 13:15:10 +0100273endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100274endif # UNIT
275
276if SIMULATOR_BIN
277test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
278test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
279test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Struk435467e2018-04-04 14:00:50 -0700280 test/tpmclient/DecryptEncrypt.c \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700281 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \
282 test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100283
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200284test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100285test_integration_libtest_utils_la_SOURCES = \
286 test/integration/context-util.c test/integration/context-util.h \
287 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700288 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100289 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700290 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100291
292test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
293test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
294test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
295 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
296
297test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
298test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
299test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
300 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
301 test/integration/main.c
302
303test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
304test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
305test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
306 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
307
308test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
309test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
310test_integration_encrypt_decrypt_int_SOURCES = \
311 test/integration/encrypt-decrypt.int.c test/integration/main.c
312
313test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
314test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
315test_integration_encrypt_decrypt_2_int_SOURCES = \
316 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
317
318test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
319test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
320test_integration_evict_ctrl_int_SOURCES = \
321 test/integration/evict-ctrl.int.c test/integration/main.c
322
323test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
324test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
325test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
326 test/integration/main.c
327
328test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
329test_integration_get_random_int_LDADD = $(TESTS_LDADD)
330test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
331 test/integration/main.c
332
333test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
334test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
335test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
336 test/integration/main.c
337
338test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
339test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
340test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
341 test/integration/main.c
342
343test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
344test_integration_self_test_int_LDADD = $(TESTS_LDADD)
345test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
346 test/integration/main.c
347
348test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
349test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
350test_integration_hierarchy_change_auth_int_SOURCES = \
351 test/integration/hierarchy-change-auth.int.c test/integration/main.c
352
353test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
354test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
355test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
356 test/integration/start-auth-session.int.c
357
358test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
359test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
360test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
361 test/integration/tpm-properties.int.c
362
363test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
364test_integration_system_api_int_LDADD = $(TESTS_LDADD)
365test_integration_system_api_int_SOURCES = test/integration/main.c \
366 test/integration/system-api.int.c
367
368if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200369test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
370test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
371test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
372test_integration_esys_audit_int_SOURCES = \
373 test/integration/esys-audit.int.c \
374 test/integration/main-esapi.c test/integration/test-esapi.h
375
Juergen Repp43966fc2018-04-12 10:44:53 +0200376test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
377test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
378test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
379test_integration_esys_certify_creation_int_SOURCES = \
380 test/integration/esys-certify-creation.int.c \
381 test/integration/main-esapi.c test/integration/test-esapi.h
382
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200383test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
384test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
385test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
386test_integration_esys_certify_int_SOURCES = \
387 test/integration/esys-certify.int.c \
388 test/integration/main-esapi.c test/integration/test-esapi.h
389
Juergen Repp16455702018-04-12 10:45:49 +0200390test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
391test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
392test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
393test_integration_esys_change_eps_int_SOURCES = \
394 test/integration/esys-change-eps.int.c \
395 test/integration/main-esapi.c test/integration/test-esapi.h
396
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800397test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100398test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
399test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
400test_integration_esys_clear_int_SOURCES = \
401 test/integration/esys-clear.int.c \
402 test/integration/main-esapi.c test/integration/test-esapi.h
403
Juergen Repp658cd7d2018-04-12 10:46:25 +0200404test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
405test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
406test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
407test_integration_esys_clear_control_int_SOURCES = \
408 test/integration/esys-clear-control.int.c \
409 test/integration/main-esapi.c test/integration/test-esapi.h
410
411test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100412test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
413test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
414test_integration_esys_clear_session_int_SOURCES = \
415 test/integration/esys-clear.int.c \
416 test/integration/main-esapi.c test/integration/test-esapi.h
417
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800418test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100419test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
420test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
421test_integration_esys_clockset_int_SOURCES = \
422 test/integration/esys-clockset.int.c \
423 test/integration/main-esapi.c test/integration/test-esapi.h
424
Juergen Repp0c2d8532018-04-12 10:46:57 +0200425test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
426test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
427test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
428test_integration_esys_commit_int_SOURCES = \
429 test/integration/esys-commit.int.c \
430 test/integration/main-esapi.c test/integration/test-esapi.h
431
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800432test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100433test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
434test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
435test_integration_esys_create_fail_int_SOURCES = \
436 test/integration/esys-create-fail.int.c \
437 test/integration/main-esapi.c test/integration/test-esapi.h
438
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800439test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100440test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
441test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
442test_integration_esys_createloaded_int_SOURCES = \
443 test/integration/esys-createloaded.int.c \
444 test/integration/main-esapi.c test/integration/test-esapi.h
445
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800446test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
447 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100448test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
449test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
450test_integration_esys_createloaded_session_int_SOURCES = \
451 test/integration/esys-createloaded.int.c \
452 test/integration/main-esapi.c test/integration/test-esapi.h
453
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800454test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100455test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
456test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
457test_integration_esys_create_password_auth_int_SOURCES = \
458 test/integration/esys-create-password-auth.int.c \
459 test/integration/main-esapi.c test/integration/test-esapi.h
460
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800461test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100462test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
463test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
464test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
465 test/integration/esys-create-primary-hmac.int.c \
466 test/integration/main-esapi.c test/integration/test-esapi.h
467
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800468test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100469test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
470test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
471test_integration_esys_create_primary_hmac_int_SOURCES = \
472 test/integration/esys-create-primary-hmac.int.c \
473 test/integration/main-esapi.c test/integration/test-esapi.h
474
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200475test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
476 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100477test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
478test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
479test_integration_esys_create_session_auth_int_SOURCES = \
480 test/integration/esys-create-session-auth.int.c \
481 test/integration/main-esapi.c test/integration/test-esapi.h
482
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200483test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
484 -DTEST_XOR_OBFUSCATION
485test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
486test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
487test_integration_esys_create_session_auth_xor_int_SOURCES = \
488 test/integration/esys-create-session-auth.int.c \
489 test/integration/main-esapi.c test/integration/test-esapi.h
490
Juergen Reppf477ded2018-03-27 14:40:35 +0200491test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
492test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
493test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
494test_integration_esys_duplicate_int_SOURCES = \
495 test/integration/esys-duplicate.int.c \
496 test/integration/main-esapi.c test/integration/test-esapi.h
497
Juergen Repp0d884d52018-04-12 10:48:07 +0200498test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
499test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
500test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
501test_integration_esys_ecc_parameters_int_SOURCES = \
502 test/integration/esys-ecc-parameters.int.c \
503 test/integration/main-esapi.c test/integration/test-esapi.h
504
Juergen Repp472840f2018-04-12 10:48:38 +0200505test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
506test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
507test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
508test_integration_esys_ecdh_keygen_int_SOURCES = \
509 test/integration/esys-ecdh-keygen.int.c \
510 test/integration/main-esapi.c test/integration/test-esapi.h
511
Juergen Repp73461b42018-04-12 10:49:10 +0200512test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
513test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
514test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
515test_integration_esys_ecdh_zgen_int_SOURCES = \
516 test/integration/esys-ecdh-zgen.int.c \
517 test/integration/main-esapi.c test/integration/test-esapi.h
518
Juergen Reppcd101252018-04-12 10:50:21 +0200519test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
520test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
521test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
522test_integration_esys_encrypt_decrypt_int_SOURCES = \
523 test/integration/esys-encrypt-decrypt.int.c \
524 test/integration/main-esapi.c test/integration/test-esapi.h
525
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200526test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
527test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
528test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
529test_integration_esys_event_sequence_complete_int_SOURCES = \
530 test/integration/esys-event-sequence-complete.int.c \
531 test/integration/main-esapi.c test/integration/test-esapi.h
532
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800533test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100534test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
535test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
536test_integration_esys_evict_control_serialization_int_SOURCES = \
537 test/integration/esys-evict-control-serialization.int.c \
538 test/integration/main-esapi.c test/integration/test-esapi.h
539
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200540test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
541test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
542test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
543test_integration_esys_field_upgrade_int_SOURCES = \
544 test/integration/esys-field-upgrade.int.c \
545 test/integration/main-esapi.c test/integration/test-esapi.h
546
Juergen Repp841eeb42018-04-12 10:51:49 +0200547test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
548test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
549test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
550test_integration_esys_firmware_read_int_SOURCES = \
551 test/integration/esys-firmware-read.int.c \
552 test/integration/main-esapi.c test/integration/test-esapi.h
553
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800554test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100555test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
556test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
557test_integration_esys_get_capability_int_SOURCES = \
558 test/integration/esys-get-capability.int.c \
559 test/integration/main-esapi.c test/integration/test-esapi.h
560
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800561test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100562test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
563test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
564test_integration_esys_get_random_int_SOURCES = \
565 test/integration/esys-get-random.int.c \
566 test/integration/main-esapi.c test/integration/test-esapi.h
567
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200568test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
569test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
570test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
571test_integration_esys_get_time_int_SOURCES = \
572 test/integration/esys-get-time.int.c \
573 test/integration/main-esapi.c test/integration/test-esapi.h
574
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800575test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100576test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
577test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
578test_integration_esys_hashsequencestart_int_SOURCES = \
579 test/integration/esys-hashsequencestart.int.c \
580 test/integration/main-esapi.c test/integration/test-esapi.h
581
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800582test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
583 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100584test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
585test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
586test_integration_esys_hashsequencestart_session_int_SOURCES = \
587 test/integration/esys-hashsequencestart.int.c \
588 test/integration/main-esapi.c test/integration/test-esapi.h
589
Juergen Repp9f394f22018-04-12 10:52:35 +0200590test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
591test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
592test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
593test_integration_esys_hierarchy_control_int_SOURCES = \
594 test/integration/esys-hierarchy-control.int.c \
595 test/integration/main-esapi.c test/integration/test-esapi.h
596
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800597test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100598test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
599test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
600test_integration_esys_hmacsequencestart_int_SOURCES = \
601 test/integration/esys-hmacsequencestart.int.c \
602 test/integration/main-esapi.c test/integration/test-esapi.h
603
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800604test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
605 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100606test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
607test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
608test_integration_esys_hmacsequencestart_session_int_SOURCES = \
609 test/integration/esys-hmacsequencestart.int.c \
610 test/integration/main-esapi.c test/integration/test-esapi.h
611
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800612test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100613test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
614test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
615test_integration_esys_hierarchychangeauth_int_SOURCES = \
616 test/integration/esys-hierarchychangeauth.int.c \
617 test/integration/main-esapi.c test/integration/test-esapi.h
618
Juergen Reppefacad12018-04-12 10:53:12 +0200619test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
620test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
621test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
622test_integration_esys_import_int_SOURCES = \
623 test/integration/esys-import.int.c \
624 test/integration/main-esapi.c test/integration/test-esapi.h
625
Juergen Repp53028832018-04-12 10:53:30 +0200626test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
627test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
628test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
629test_integration_esys_lock_int_SOURCES = \
630 test/integration/esys-lock.int.c \
631 test/integration/main-esapi.c test/integration/test-esapi.h
632
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800633test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100634test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
635test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
636test_integration_esys_make_credential_int_SOURCES = \
637 test/integration/esys-make-credential.int.c \
638 test/integration/main-esapi.c test/integration/test-esapi.h
639
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800640test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
641 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100642test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
643test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
644test_integration_esys_make_credential_session_int_SOURCES = \
645 test/integration/esys-make-credential.int.c \
646 test/integration/main-esapi.c test/integration/test-esapi.h
647
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800648test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100649test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
650test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
651test_integration_esys_nv_ram_counter_int_SOURCES = \
652 test/integration/esys-nv-ram-counter.int.c \
653 test/integration/main-esapi.c test/integration/test-esapi.h
654
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800655test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
656 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100657test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
658test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
659test_integration_esys_nv_ram_counter_session_int_SOURCES = \
660 test/integration/esys-nv-ram-counter.int.c \
661 test/integration/main-esapi.c test/integration/test-esapi.h
662
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800663test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100664test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
665test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
666test_integration_esys_nv_ram_extend_index_int_SOURCES = \
667 test/integration/esys-nv-ram-extend-index.int.c \
668 test/integration/main-esapi.c test/integration/test-esapi.h
669
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800670test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
671 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100672test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
673test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
674test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
675 test/integration/esys-nv-ram-extend-index.int.c \
676 test/integration/main-esapi.c test/integration/test-esapi.h
677
Andreas Fuchs8a191792018-04-10 14:34:58 +0200678test_integration_esys_nv_ram_ordinary_index_int_CFLAGS = $(TESTS_CFLAGS)
679test_integration_esys_nv_ram_ordinary_index_int_LDADD = $(TESTS_LDADD)
680test_integration_esys_nv_ram_ordinary_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
681test_integration_esys_nv_ram_ordinary_index_int_SOURCES = \
682 test/integration/esys-nv-ram-ordinary-index.int.c \
683 test/integration/main-esapi.c test/integration/test-esapi.h
684
685test_integration_esys_nv_ram_ordinary_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
686 -DTEST_SESSION
687test_integration_esys_nv_ram_ordinary_index_session_int_LDADD = $(TESTS_LDADD)
688test_integration_esys_nv_ram_ordinary_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
689test_integration_esys_nv_ram_ordinary_index_session_int_SOURCES = \
690 test/integration/esys-nv-ram-ordinary-index.int.c \
691 test/integration/main-esapi.c test/integration/test-esapi.h
692
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800693test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100694test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
695test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
696test_integration_esys_nv_ram_set_bits_int_SOURCES = \
697 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100698 test/integration/main-esapi.c test/integration/test-esapi.h
699
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800700test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
701 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100702test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
703test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
704test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
705 test/integration/esys-nv-ram-set-bits.int.c \
706 test/integration/main-esapi.c test/integration/test-esapi.h
707
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800708test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100709test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
710test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
711test_integration_esys_object_changeauth_int_SOURCES = \
712 test/integration/esys-object-changeauth.int.c \
713 test/integration/main-esapi.c test/integration/test-esapi.h
714
Juergen Repp731135d2018-03-27 14:43:03 +0200715test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
716test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
717test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
718test_integration_esys_pcr_basic_int_SOURCES = \
719 test/integration/esys-pcr-basic.int.c \
720 test/integration/main-esapi.c test/integration/test-esapi.h
721
722test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
723test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
724test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
725test_integration_esys_pcr_auth_value_int_SOURCES = \
726 test/integration/esys-pcr-auth-value.int.c \
727 test/integration/main-esapi.c test/integration/test-esapi.h
728
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800729test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100730test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
731test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
732test_integration_esys_policy_nv_changeauth_int_SOURCES = \
733 test/integration/esys-policy-nv-changeauth.int.c \
734 test/integration/main-esapi.c test/integration/test-esapi.h
735
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800736test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100737test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
738test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
739test_integration_esys_policy_password_int_SOURCES = \
740 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100741 test/integration/main-esapi.c test/integration/test-esapi.h
742
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800743test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100744test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
745test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
746test_integration_esys_quote_int_SOURCES = \
747 test/integration/esys-quote.int.c \
748 test/integration/main-esapi.c test/integration/test-esapi.h
749
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800750test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100751test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
752test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
753test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
754 test/integration/esys-rsa-encrypt-decrypt.int.c \
755 test/integration/main-esapi.c test/integration/test-esapi.h
756
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800757test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100758test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
759test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
760test_integration_esys_save_and_load_context_int_SOURCES = \
761 test/integration/esys-save-and-load-context.int.c \
762 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200763
764test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
765test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
766test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
767test_integration_esys_unseal_password_auth_int_SOURCES = \
768 test/integration/esys-unseal-password-auth.int.c \
769 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100770endif #ESAPI
771
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800772test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100773test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
774test_integration_policy_template_int_SOURCES = test/integration/main.c \
775 test/integration/policy-template.int.c
776
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800777test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100778test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
779test_integration_create_loaded_int_SOURCES = test/integration/main.c \
780 test/integration/create-loaded.int.c
781
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800782test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100783test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800784test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100785 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800786
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800787test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800788test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800789test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800790 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100791endif #SIMULATOR_BIN