blob: 4b0c1906f91b4de2e4c7cf090efe58b93a1c2c9f [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 Repp090bcef2018-04-12 10:53:49 +0200150 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100151 test/integration/esys-nv-ram-counter.int \
152 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100153 test/integration/esys-nv-ram-extend-index.int \
154 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200155 test/integration/esys-nv-ram-ordinary-index-rlock.int \
156 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
157 test/integration/esys-nv-ram-ordinary-index-wlock.int \
158 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100159 test/integration/esys-nv-ram-set-bits.int \
160 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100161 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200162 test/integration/esys-pcr-basic.int \
163 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200164 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200165 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200166 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100167 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200168 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100169 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200170 test/integration/esys-pp-commands.int \
171 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100172 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200173 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200174 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200175 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200176 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200177 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200178 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200179 test/integration/esys-tr-fromTpmPublic-nv.int \
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200180 test/integration/esys-tr-getName-hierarchy.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200181 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200182 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200183 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100184endif #ESAPI
185endif #SIMULATOR_BIN
186
187CLEANFILES += \
188 test/integration/*.log \
189 test/tpmclient/*.log \
190 test/unit/*.log
191
192if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800193test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800194test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100195test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800196test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700197 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
198 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100199
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800200test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800201test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800202test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700203test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
204 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
205 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100206
Philip Tricca88ced722018-03-14 15:24:20 -0700207test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700208test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
209test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700210test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800211
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800212test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100213test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800214test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100215test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
216
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800217test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800218test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100219test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
220
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800221test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100222test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800223test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100224test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
225
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800226test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800227test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100228test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
229
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800230test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800231test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100232test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
233
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800234test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800235test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100236test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
237
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800238test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800239test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100240test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
241
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800242test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800243test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100244test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
245
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800246test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800247test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100248test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
249
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800250test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800251test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100252test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
253
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800254test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800255test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100256test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
257
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800258test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800259test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100260test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
261
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800262test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800263test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100264test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100265
266if ESAPI
267test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
268test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
269test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100270test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
271
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100272test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
273test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
274test_unit_esys_default_tcti_LDFLAGS = \
275 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
276 -Wl,--wrap=Tss2_Tcti_Device_Init \
277 -Wl,--wrap=Tss2_Tcti_Mssim_Init
278test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
279 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
280
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100281test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
282test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
283test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
284test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100285
286test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
287test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
288test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
289test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Juergen Reppd947f132018-03-16 13:15:10 +0100290endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100291endif # UNIT
292
293if SIMULATOR_BIN
294test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
295test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
296test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Struk435467e2018-04-04 14:00:50 -0700297 test/tpmclient/DecryptEncrypt.c \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700298 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \
299 test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100300
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200301test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100302test_integration_libtest_utils_la_SOURCES = \
303 test/integration/context-util.c test/integration/context-util.h \
304 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700305 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100306 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700307 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100308
309test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
310test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
311test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
312 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
313
314test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
315test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
316test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
317 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
318 test/integration/main.c
319
320test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
321test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
322test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
323 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
324
325test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
326test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
327test_integration_encrypt_decrypt_int_SOURCES = \
328 test/integration/encrypt-decrypt.int.c test/integration/main.c
329
330test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
331test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
332test_integration_encrypt_decrypt_2_int_SOURCES = \
333 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
334
335test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
336test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
337test_integration_evict_ctrl_int_SOURCES = \
338 test/integration/evict-ctrl.int.c test/integration/main.c
339
340test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
341test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
342test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
343 test/integration/main.c
344
345test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
346test_integration_get_random_int_LDADD = $(TESTS_LDADD)
347test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
348 test/integration/main.c
349
350test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
351test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
352test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
353 test/integration/main.c
354
355test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
356test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
357test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
358 test/integration/main.c
359
360test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
361test_integration_self_test_int_LDADD = $(TESTS_LDADD)
362test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
363 test/integration/main.c
364
365test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
366test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
367test_integration_hierarchy_change_auth_int_SOURCES = \
368 test/integration/hierarchy-change-auth.int.c test/integration/main.c
369
370test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
371test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
372test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
373 test/integration/start-auth-session.int.c
374
375test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
376test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
377test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
378 test/integration/tpm-properties.int.c
379
380test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
381test_integration_system_api_int_LDADD = $(TESTS_LDADD)
382test_integration_system_api_int_SOURCES = test/integration/main.c \
383 test/integration/system-api.int.c
384
385if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200386test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
387test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
388test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
389test_integration_esys_audit_int_SOURCES = \
390 test/integration/esys-audit.int.c \
391 test/integration/main-esapi.c test/integration/test-esapi.h
392
Juergen Repp43966fc2018-04-12 10:44:53 +0200393test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
394test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
395test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
396test_integration_esys_certify_creation_int_SOURCES = \
397 test/integration/esys-certify-creation.int.c \
398 test/integration/main-esapi.c test/integration/test-esapi.h
399
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200400test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
401test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
402test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
403test_integration_esys_certify_int_SOURCES = \
404 test/integration/esys-certify.int.c \
405 test/integration/main-esapi.c test/integration/test-esapi.h
406
Juergen Repp16455702018-04-12 10:45:49 +0200407test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
408test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
409test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
410test_integration_esys_change_eps_int_SOURCES = \
411 test/integration/esys-change-eps.int.c \
412 test/integration/main-esapi.c test/integration/test-esapi.h
413
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800414test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100415test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
416test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
417test_integration_esys_clear_int_SOURCES = \
418 test/integration/esys-clear.int.c \
419 test/integration/main-esapi.c test/integration/test-esapi.h
420
Juergen Repp658cd7d2018-04-12 10:46:25 +0200421test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
422test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
423test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
424test_integration_esys_clear_control_int_SOURCES = \
425 test/integration/esys-clear-control.int.c \
426 test/integration/main-esapi.c test/integration/test-esapi.h
427
428test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100429test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
430test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
431test_integration_esys_clear_session_int_SOURCES = \
432 test/integration/esys-clear.int.c \
433 test/integration/main-esapi.c test/integration/test-esapi.h
434
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800435test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100436test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
437test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
438test_integration_esys_clockset_int_SOURCES = \
439 test/integration/esys-clockset.int.c \
440 test/integration/main-esapi.c test/integration/test-esapi.h
441
Juergen Repp0c2d8532018-04-12 10:46:57 +0200442test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
443test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
444test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
445test_integration_esys_commit_int_SOURCES = \
446 test/integration/esys-commit.int.c \
447 test/integration/main-esapi.c test/integration/test-esapi.h
448
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800449test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100450test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
451test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
452test_integration_esys_create_fail_int_SOURCES = \
453 test/integration/esys-create-fail.int.c \
454 test/integration/main-esapi.c test/integration/test-esapi.h
455
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800456test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100457test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
458test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
459test_integration_esys_createloaded_int_SOURCES = \
460 test/integration/esys-createloaded.int.c \
461 test/integration/main-esapi.c test/integration/test-esapi.h
462
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800463test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
464 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100465test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
466test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
467test_integration_esys_createloaded_session_int_SOURCES = \
468 test/integration/esys-createloaded.int.c \
469 test/integration/main-esapi.c test/integration/test-esapi.h
470
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800471test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100472test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
473test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
474test_integration_esys_create_password_auth_int_SOURCES = \
475 test/integration/esys-create-password-auth.int.c \
476 test/integration/main-esapi.c test/integration/test-esapi.h
477
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800478test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100479test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
480test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
481test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
482 test/integration/esys-create-primary-hmac.int.c \
483 test/integration/main-esapi.c test/integration/test-esapi.h
484
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800485test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100486test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
487test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
488test_integration_esys_create_primary_hmac_int_SOURCES = \
489 test/integration/esys-create-primary-hmac.int.c \
490 test/integration/main-esapi.c test/integration/test-esapi.h
491
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200492test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
493 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100494test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
495test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
496test_integration_esys_create_session_auth_int_SOURCES = \
497 test/integration/esys-create-session-auth.int.c \
498 test/integration/main-esapi.c test/integration/test-esapi.h
499
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200500test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
501 -DTEST_XOR_OBFUSCATION
502test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
503test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
504test_integration_esys_create_session_auth_xor_int_SOURCES = \
505 test/integration/esys-create-session-auth.int.c \
506 test/integration/main-esapi.c test/integration/test-esapi.h
507
Juergen Reppf477ded2018-03-27 14:40:35 +0200508test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
509test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
510test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
511test_integration_esys_duplicate_int_SOURCES = \
512 test/integration/esys-duplicate.int.c \
513 test/integration/main-esapi.c test/integration/test-esapi.h
514
Juergen Repp0d884d52018-04-12 10:48:07 +0200515test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
516test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
517test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
518test_integration_esys_ecc_parameters_int_SOURCES = \
519 test/integration/esys-ecc-parameters.int.c \
520 test/integration/main-esapi.c test/integration/test-esapi.h
521
Juergen Repp472840f2018-04-12 10:48:38 +0200522test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
523test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
524test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
525test_integration_esys_ecdh_keygen_int_SOURCES = \
526 test/integration/esys-ecdh-keygen.int.c \
527 test/integration/main-esapi.c test/integration/test-esapi.h
528
Juergen Repp73461b42018-04-12 10:49:10 +0200529test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
530test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
531test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
532test_integration_esys_ecdh_zgen_int_SOURCES = \
533 test/integration/esys-ecdh-zgen.int.c \
534 test/integration/main-esapi.c test/integration/test-esapi.h
535
Juergen Reppcd101252018-04-12 10:50:21 +0200536test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
537test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
538test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
539test_integration_esys_encrypt_decrypt_int_SOURCES = \
540 test/integration/esys-encrypt-decrypt.int.c \
541 test/integration/main-esapi.c test/integration/test-esapi.h
542
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200543test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
544test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
545test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
546test_integration_esys_event_sequence_complete_int_SOURCES = \
547 test/integration/esys-event-sequence-complete.int.c \
548 test/integration/main-esapi.c test/integration/test-esapi.h
549
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800550test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100551test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
552test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
553test_integration_esys_evict_control_serialization_int_SOURCES = \
554 test/integration/esys-evict-control-serialization.int.c \
555 test/integration/main-esapi.c test/integration/test-esapi.h
556
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200557test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
558test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
559test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
560test_integration_esys_field_upgrade_int_SOURCES = \
561 test/integration/esys-field-upgrade.int.c \
562 test/integration/main-esapi.c test/integration/test-esapi.h
563
Juergen Repp841eeb42018-04-12 10:51:49 +0200564test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
565test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
566test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
567test_integration_esys_firmware_read_int_SOURCES = \
568 test/integration/esys-firmware-read.int.c \
569 test/integration/main-esapi.c test/integration/test-esapi.h
570
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800571test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100572test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
573test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
574test_integration_esys_get_capability_int_SOURCES = \
575 test/integration/esys-get-capability.int.c \
576 test/integration/main-esapi.c test/integration/test-esapi.h
577
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800578test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100579test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
580test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
581test_integration_esys_get_random_int_SOURCES = \
582 test/integration/esys-get-random.int.c \
583 test/integration/main-esapi.c test/integration/test-esapi.h
584
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200585test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
586test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
587test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
588test_integration_esys_get_time_int_SOURCES = \
589 test/integration/esys-get-time.int.c \
590 test/integration/main-esapi.c test/integration/test-esapi.h
591
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800592test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100593test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
594test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
595test_integration_esys_hashsequencestart_int_SOURCES = \
596 test/integration/esys-hashsequencestart.int.c \
597 test/integration/main-esapi.c test/integration/test-esapi.h
598
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800599test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
600 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100601test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
602test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
603test_integration_esys_hashsequencestart_session_int_SOURCES = \
604 test/integration/esys-hashsequencestart.int.c \
605 test/integration/main-esapi.c test/integration/test-esapi.h
606
Juergen Repp9f394f22018-04-12 10:52:35 +0200607test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
608test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
609test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
610test_integration_esys_hierarchy_control_int_SOURCES = \
611 test/integration/esys-hierarchy-control.int.c \
612 test/integration/main-esapi.c test/integration/test-esapi.h
613
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800614test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100615test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
616test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
617test_integration_esys_hmacsequencestart_int_SOURCES = \
618 test/integration/esys-hmacsequencestart.int.c \
619 test/integration/main-esapi.c test/integration/test-esapi.h
620
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800621test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
622 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100623test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
624test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
625test_integration_esys_hmacsequencestart_session_int_SOURCES = \
626 test/integration/esys-hmacsequencestart.int.c \
627 test/integration/main-esapi.c test/integration/test-esapi.h
628
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800629test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100630test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
631test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
632test_integration_esys_hierarchychangeauth_int_SOURCES = \
633 test/integration/esys-hierarchychangeauth.int.c \
634 test/integration/main-esapi.c test/integration/test-esapi.h
635
Juergen Reppefacad12018-04-12 10:53:12 +0200636test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
637test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
638test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
639test_integration_esys_import_int_SOURCES = \
640 test/integration/esys-import.int.c \
641 test/integration/main-esapi.c test/integration/test-esapi.h
642
Juergen Repp53028832018-04-12 10:53:30 +0200643test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
644test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
645test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
646test_integration_esys_lock_int_SOURCES = \
647 test/integration/esys-lock.int.c \
648 test/integration/main-esapi.c test/integration/test-esapi.h
649
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800650test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100651test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
652test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
653test_integration_esys_make_credential_int_SOURCES = \
654 test/integration/esys-make-credential.int.c \
655 test/integration/main-esapi.c test/integration/test-esapi.h
656
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800657test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
658 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100659test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
660test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
661test_integration_esys_make_credential_session_int_SOURCES = \
662 test/integration/esys-make-credential.int.c \
663 test/integration/main-esapi.c test/integration/test-esapi.h
664
Juergen Repp090bcef2018-04-12 10:53:49 +0200665test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
666test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
667test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
668test_integration_esys_nv_certify_int_SOURCES = \
669 test/integration/esys-nv-certify.int.c \
670 test/integration/main-esapi.c test/integration/test-esapi.h
671
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800672test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100673test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
674test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
675test_integration_esys_nv_ram_counter_int_SOURCES = \
676 test/integration/esys-nv-ram-counter.int.c \
677 test/integration/main-esapi.c test/integration/test-esapi.h
678
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800679test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
680 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100681test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
682test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
683test_integration_esys_nv_ram_counter_session_int_SOURCES = \
684 test/integration/esys-nv-ram-counter.int.c \
685 test/integration/main-esapi.c test/integration/test-esapi.h
686
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800687test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100688test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
689test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
690test_integration_esys_nv_ram_extend_index_int_SOURCES = \
691 test/integration/esys-nv-ram-extend-index.int.c \
692 test/integration/main-esapi.c test/integration/test-esapi.h
693
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800694test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
695 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100696test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
697test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
698test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
699 test/integration/esys-nv-ram-extend-index.int.c \
700 test/integration/main-esapi.c test/integration/test-esapi.h
701
Juergen Repp4f8ad602018-04-12 10:54:45 +0200702test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
703 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
704 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
705test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
706test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
707test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200708 test/integration/esys-nv-ram-ordinary-index.int.c \
709 test/integration/main-esapi.c test/integration/test-esapi.h
710
Juergen Repp4f8ad602018-04-12 10:54:45 +0200711test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
712 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
713 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
714test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
715test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
716test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
717 test/integration/esys-nv-ram-ordinary-index.int.c \
718 test/integration/main-esapi.c test/integration/test-esapi.h
719
720test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
721 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
722 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
723test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
724test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
725test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
726 test/integration/esys-nv-ram-ordinary-index.int.c \
727 test/integration/main-esapi.c test/integration/test-esapi.h
728
729test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
730 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
731 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
732test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
733test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
734test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200735 test/integration/esys-nv-ram-ordinary-index.int.c \
736 test/integration/main-esapi.c test/integration/test-esapi.h
737
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800738test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100739test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
740test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
741test_integration_esys_nv_ram_set_bits_int_SOURCES = \
742 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100743 test/integration/main-esapi.c test/integration/test-esapi.h
744
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800745test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
746 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100747test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
748test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
749test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
750 test/integration/esys-nv-ram-set-bits.int.c \
751 test/integration/main-esapi.c test/integration/test-esapi.h
752
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800753test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100754test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
755test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
756test_integration_esys_object_changeauth_int_SOURCES = \
757 test/integration/esys-object-changeauth.int.c \
758 test/integration/main-esapi.c test/integration/test-esapi.h
759
Juergen Repped818052018-04-12 10:56:38 +0200760test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
761test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
762test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
763test_integration_esys_policy_authorize_int_SOURCES = \
764 test/integration/esys-policy-authorize.int.c \
765 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200766 test/integration/main-esapi.c test/integration/test-esapi.h
767
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200768test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
769test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
770test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
771test_integration_esys_policy_regression_int_SOURCES = \
772 test/integration/esys-policy-regression.int.c \
773 test/integration/main-esapi.c test/integration/test-esapi.h
774
Juergen Repp897c75d2018-04-12 10:57:26 +0200775test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
776test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
777test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
778test_integration_esys_policy_ticket_int_SOURCES = \
779 test/integration/esys-policy-ticket.int.c \
780 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200781 test/integration/main-esapi.c test/integration/test-esapi.h
782
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800783test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100784test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
785test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
786test_integration_esys_policy_nv_changeauth_int_SOURCES = \
787 test/integration/esys-policy-nv-changeauth.int.c \
788 test/integration/main-esapi.c test/integration/test-esapi.h
789
Juergen Repp4cac2822018-04-12 10:58:39 +0200790test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
791test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
792test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
793test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
794 test/integration/esys-policy-nv-undefine-special.int.c \
795 test/integration/main-esapi.c test/integration/test-esapi.h
796
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800797test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100798test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
799test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
800test_integration_esys_policy_password_int_SOURCES = \
801 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100802 test/integration/main-esapi.c test/integration/test-esapi.h
803
Juergen Repped818052018-04-12 10:56:38 +0200804test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
805test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
806test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
807test_integration_esys_pcr_basic_int_SOURCES = \
808 test/integration/esys-pcr-basic.int.c \
809 test/integration/main-esapi.c test/integration/test-esapi.h
810
Juergen Repp897c75d2018-04-12 10:57:26 +0200811test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
812test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
813test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
814test_integration_esys_pcr_auth_value_int_SOURCES = \
815 test/integration/esys-pcr-auth-value.int.c \
816 test/integration/main-esapi.c test/integration/test-esapi.h
817
Juergen Repp91ed3de2018-04-12 11:01:30 +0200818test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
819test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
820test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
821test_integration_esys_pp_commands_int_SOURCES = \
822 test/integration/esys-pp-commands.int.c \
823 test/integration/main-esapi.c test/integration/test-esapi.h
824
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800825test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100826test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
827test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
828test_integration_esys_quote_int_SOURCES = \
829 test/integration/esys-quote.int.c \
830 test/integration/main-esapi.c test/integration/test-esapi.h
831
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800832test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100833test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
834test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
835test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
836 test/integration/esys-rsa-encrypt-decrypt.int.c \
837 test/integration/main-esapi.c test/integration/test-esapi.h
838
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800839test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100840test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
841test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
842test_integration_esys_save_and_load_context_int_SOURCES = \
843 test/integration/esys-save-and-load-context.int.c \
844 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200845
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200846test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
847test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
848test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
849test_integration_esys_set_algorithm_set_int_SOURCES = \
850 test/integration/esys-set-algorithm-set.int.c \
851 test/integration/main-esapi.c test/integration/test-esapi.h
852
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200853test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
854test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
855test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
856test_integration_esys_stir_random_int_SOURCES = \
857 test/integration/esys-stir-random.int.c \
858 test/integration/main-esapi.c test/integration/test-esapi.h
859
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200860test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
861test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
862test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
863test_integration_esys_testparms_int_SOURCES = \
864 test/integration/esys-testparms.int.c \
865 test/integration/main-esapi.c test/integration/test-esapi.h
866
Juergen Repp24f4acb2018-04-12 11:04:27 +0200867test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
868test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
869test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
870test_integration_esys_tpm_tests_int_SOURCES = \
871 test/integration/esys-tpm-tests.int.c \
872 test/integration/main-esapi.c test/integration/test-esapi.h
873
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200874test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
875test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
876test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
877test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
878 test/integration/esys-tr-fromTpmPublic-key.int.c \
879 test/integration/main-esapi.c test/integration/test-esapi.h
880
Andreas Fuchs95809e22018-04-12 12:21:06 +0200881test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
882test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
883test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
884test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
885 test/integration/esys-tr-fromTpmPublic-nv.int.c \
886 test/integration/main-esapi.c test/integration/test-esapi.h
887
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200888test_integration_esys_tr_getName_hierarchy_int_CFLAGS = $(TESTS_CFLAGS)
889test_integration_esys_tr_getName_hierarchy_int_LDADD = $(TESTS_LDADD)
890test_integration_esys_tr_getName_hierarchy_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
891test_integration_esys_tr_getName_hierarchy_int_SOURCES = \
892 test/integration/esys-tr-getName-hierarchy.int.c \
893 test/integration/main-esapi.c test/integration/test-esapi.h
894
Christian Plappert624423b2018-03-27 14:36:40 +0200895test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
896test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
897test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
898test_integration_esys_unseal_password_auth_int_SOURCES = \
899 test/integration/esys-unseal-password-auth.int.c \
900 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200901
902test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
903test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
904test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
905test_integration_esys_verify_signature_int_SOURCES = \
906 test/integration/esys-verify-signature.int.c \
907 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200908
909test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
910test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
911test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
912test_integration_esys_zgen_2phase_int_SOURCES = \
913 test/integration/esys-zgen-2phase.int.c \
914 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100915endif #ESAPI
916
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800917test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100918test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
919test_integration_policy_template_int_SOURCES = test/integration/main.c \
920 test/integration/policy-template.int.c
921
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800922test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100923test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
924test_integration_create_loaded_int_SOURCES = test/integration/main.c \
925 test/integration/create-loaded.int.c
926
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800927test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100928test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800929test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100930 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800931
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800932test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800933test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800934test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800935 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100936endif #SIMULATOR_BIN