blob: ad23ed6674908b391897a0a56095ad6fe0260956 [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 \
Philip Triccae394cff2018-04-18 08:36:06 -070065 test/unit/key-value-parse \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010066 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080067 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010068 test/unit/UINT8-marshal \
69 test/unit/UINT16-marshal \
70 test/unit/UINT32-marshal \
71 test/unit/UINT64-marshal \
72 test/unit/TPMA-marshal \
73 test/unit/TPM2B-marshal \
74 test/unit/TPMS-marshal \
75 test/unit/TPML-marshal \
76 test/unit/TPMT-marshal \
77 test/unit/TPMU-marshal
Juergen Reppd947f132018-03-16 13:15:10 +010078if ESAPI
79TESTS_UNIT += \
Andreas Fuchs88ac7d72018-03-16 13:20:54 +010080 test/unit/esys-context-null \
Andreas Fuchs5d9ce582018-03-21 19:05:47 +010081 test/unit/esys-default-tcti \
Juergen Repp20181512018-03-20 16:14:28 +010082 test/unit/esys-resubmissions \
Andreas Fuchs4879ad32018-04-12 14:48:06 +020083 test/unit/esys-sequence-finish \
Andreas Fuchs72227dc2018-04-12 14:54:07 +020084 test/unit/esys-tcti-rcs \
Andreas Fuchsc3cc36e2018-04-26 19:22:02 +020085 test/unit/esys-tpm-rcs \
86 test/unit/esys-getpollhandles
Juergen Reppd947f132018-03-16 13:15:10 +010087endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010088endif #UNIT
89
90if SIMULATOR_BIN
91noinst_LTLIBRARIES += test/integration/libtest_utils.la
92TESTS_INTEGRATION = \
93 test/integration/asymmetric-encrypt-decrypt.int \
94 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
95 test/integration/create-keyedhash-sha1-hmac.int \
96 test/integration/encrypt-decrypt.int \
97 test/integration/encrypt-decrypt-2.int \
98 test/integration/evict-ctrl.int \
99 test/integration/get-random.int \
100 test/integration/hierarchy-change-auth.int \
101 test/integration/abi-version.int \
102 test/integration/pcr-extension.int \
103 test/integration/self-test.int \
104 test/integration/start-auth-session.int \
105 test/integration/sys-initialize.int \
106 test/integration/tpm-properties.int \
107 test/integration/system-api.int \
108 test/integration/policy-template.int \
109 test/integration/create-loaded.int \
110 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800111 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100112 test/tpmclient/tpmclient.int
113if ESAPI
114TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200115 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200116 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200117 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200118 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100119 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200120 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100121 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100122 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200123 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100124 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100125 test/integration/esys-createloaded.int \
126 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100127 test/integration/esys-create-password-auth.int \
128 test/integration/esys-create-primary-ecc-hmac.int \
129 test/integration/esys-create-primary-hmac.int \
130 test/integration/esys-create-session-auth.int \
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200131 test/integration/esys-create-session-auth-ecc.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200132 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200133 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200134 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200135 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200136 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200137 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200138 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100139 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200140 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200141 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100142 test/integration/esys-get-capability.int \
143 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200144 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100145 test/integration/esys-hashsequencestart.int \
146 test/integration/esys-hashsequencestart-session.int \
147 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200148 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100149 test/integration/esys-hmacsequencestart.int \
150 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200151 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200152 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100153 test/integration/esys-make-credential.int \
154 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200155 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100156 test/integration/esys-nv-ram-counter.int \
157 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100158 test/integration/esys-nv-ram-extend-index.int \
159 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200160 test/integration/esys-nv-ram-ordinary-index-rlock.int \
161 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
162 test/integration/esys-nv-ram-ordinary-index-wlock.int \
163 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100164 test/integration/esys-nv-ram-set-bits.int \
165 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100166 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200167 test/integration/esys-pcr-basic.int \
168 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200169 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200170 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200171 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100172 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200173 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100174 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200175 test/integration/esys-pp-commands.int \
176 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100177 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200178 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200179 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200180 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200181 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200182 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200183 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200184 test/integration/esys-tr-fromTpmPublic-nv.int \
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200185 test/integration/esys-tr-getName-hierarchy.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200186 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200187 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200188 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100189endif #ESAPI
190endif #SIMULATOR_BIN
191
192CLEANFILES += \
193 test/integration/*.log \
194 test/tpmclient/*.log \
195 test/unit/*.log
196
197if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800198test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800199test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100200test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800201test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700202 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
203 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100204
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800205test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800206test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800207test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700208test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
209 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
210 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100211
Philip Tricca88ced722018-03-14 15:24:20 -0700212test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700213test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
214test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700215test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800216
Philip Triccae394cff2018-04-18 08:36:06 -0700217test_unit_key_value_parse_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
218test_unit_key_value_parse_LDADD = $(CMOCKA_LIBS) $(libutil)
219test_unit_key_value_parse_SOURCES = test/unit/key-value-parse.c
220
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800221test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100222test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800223test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100224test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
225
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800226test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800227test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100228test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
229
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800230test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100231test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800232test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100233test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
234
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800235test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800236test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100237test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
238
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800239test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800240test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100241test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
242
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800243test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800244test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100245test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
246
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800247test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800248test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100249test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
250
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800251test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800252test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100253test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
254
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800255test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800256test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100257test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
258
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800259test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800260test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100261test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
262
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800263test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800264test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100265test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
266
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800267test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800268test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100269test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
270
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800271test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800272test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100273test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100274
275if ESAPI
276test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
277test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
278test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100279test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
280
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100281test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
282test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
283test_unit_esys_default_tcti_LDFLAGS = \
284 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
285 -Wl,--wrap=Tss2_Tcti_Device_Init \
286 -Wl,--wrap=Tss2_Tcti_Mssim_Init
287test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
288 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
289
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100290test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
291test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
292test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
293test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100294
295test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
296test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
297test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
298test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Andreas Fuchs4879ad32018-04-12 14:48:06 +0200299
300test_unit_esys_tcti_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
301test_unit_esys_tcti_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
302test_unit_esys_tcti_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
303test_unit_esys_tcti_rcs_SOURCES = test/unit/esys-tcti-rcs.c
Andreas Fuchs72227dc2018-04-12 14:54:07 +0200304
305test_unit_esys_tpm_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
306test_unit_esys_tpm_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
307test_unit_esys_tpm_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
308test_unit_esys_tpm_rcs_SOURCES = test/unit/esys-tpm-rcs.c
Andreas Fuchsc3cc36e2018-04-26 19:22:02 +0200309
310test_unit_esys_getpollhandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
311test_unit_esys_getpollhandles_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
312test_unit_esys_getpollhandles_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
313test_unit_esys_getpollhandles_SOURCES = test/unit/esys-getpollhandles.c
Juergen Reppd947f132018-03-16 13:15:10 +0100314endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100315endif # UNIT
316
317if SIMULATOR_BIN
318test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
319test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
320test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Strukf517ee52018-04-23 19:00:10 -0700321 test/tpmclient/tpmclient.int.c test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100322
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200323test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100324test_integration_libtest_utils_la_SOURCES = \
325 test/integration/context-util.c test/integration/context-util.h \
326 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700327 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100328 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700329 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100330
331test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
332test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
333test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
334 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
335
336test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
337test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
338test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
339 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
340 test/integration/main.c
341
342test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
343test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
344test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
345 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
346
347test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
348test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
349test_integration_encrypt_decrypt_int_SOURCES = \
350 test/integration/encrypt-decrypt.int.c test/integration/main.c
351
352test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
353test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
354test_integration_encrypt_decrypt_2_int_SOURCES = \
355 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
356
357test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
358test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
359test_integration_evict_ctrl_int_SOURCES = \
360 test/integration/evict-ctrl.int.c test/integration/main.c
361
362test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
363test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
364test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
365 test/integration/main.c
366
367test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
368test_integration_get_random_int_LDADD = $(TESTS_LDADD)
369test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
370 test/integration/main.c
371
372test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
373test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
374test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
375 test/integration/main.c
376
377test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
378test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
379test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
380 test/integration/main.c
381
382test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
383test_integration_self_test_int_LDADD = $(TESTS_LDADD)
384test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
385 test/integration/main.c
386
387test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
388test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
389test_integration_hierarchy_change_auth_int_SOURCES = \
390 test/integration/hierarchy-change-auth.int.c test/integration/main.c
391
392test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
393test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
394test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
395 test/integration/start-auth-session.int.c
396
397test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
398test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
399test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
400 test/integration/tpm-properties.int.c
401
402test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
403test_integration_system_api_int_LDADD = $(TESTS_LDADD)
404test_integration_system_api_int_SOURCES = test/integration/main.c \
405 test/integration/system-api.int.c
406
407if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200408test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
409test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
410test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
411test_integration_esys_audit_int_SOURCES = \
412 test/integration/esys-audit.int.c \
413 test/integration/main-esapi.c test/integration/test-esapi.h
414
Juergen Repp43966fc2018-04-12 10:44:53 +0200415test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
416test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
417test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
418test_integration_esys_certify_creation_int_SOURCES = \
419 test/integration/esys-certify-creation.int.c \
420 test/integration/main-esapi.c test/integration/test-esapi.h
421
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200422test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
423test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
424test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
425test_integration_esys_certify_int_SOURCES = \
426 test/integration/esys-certify.int.c \
427 test/integration/main-esapi.c test/integration/test-esapi.h
428
Juergen Repp16455702018-04-12 10:45:49 +0200429test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
430test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
431test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
432test_integration_esys_change_eps_int_SOURCES = \
433 test/integration/esys-change-eps.int.c \
434 test/integration/main-esapi.c test/integration/test-esapi.h
435
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800436test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100437test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
438test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
439test_integration_esys_clear_int_SOURCES = \
440 test/integration/esys-clear.int.c \
441 test/integration/main-esapi.c test/integration/test-esapi.h
442
Juergen Repp658cd7d2018-04-12 10:46:25 +0200443test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
444test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
445test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
446test_integration_esys_clear_control_int_SOURCES = \
447 test/integration/esys-clear-control.int.c \
448 test/integration/main-esapi.c test/integration/test-esapi.h
449
450test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100451test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
452test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
453test_integration_esys_clear_session_int_SOURCES = \
454 test/integration/esys-clear.int.c \
455 test/integration/main-esapi.c test/integration/test-esapi.h
456
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800457test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100458test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
459test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
460test_integration_esys_clockset_int_SOURCES = \
461 test/integration/esys-clockset.int.c \
462 test/integration/main-esapi.c test/integration/test-esapi.h
463
Juergen Repp0c2d8532018-04-12 10:46:57 +0200464test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
465test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
466test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
467test_integration_esys_commit_int_SOURCES = \
468 test/integration/esys-commit.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_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100472test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
473test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
474test_integration_esys_create_fail_int_SOURCES = \
475 test/integration/esys-create-fail.int.c \
476 test/integration/main-esapi.c test/integration/test-esapi.h
477
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800478test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100479test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
480test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
481test_integration_esys_createloaded_int_SOURCES = \
482 test/integration/esys-createloaded.int.c \
483 test/integration/main-esapi.c test/integration/test-esapi.h
484
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800485test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
486 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100487test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
488test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
489test_integration_esys_createloaded_session_int_SOURCES = \
490 test/integration/esys-createloaded.int.c \
491 test/integration/main-esapi.c test/integration/test-esapi.h
492
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800493test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100494test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
495test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
496test_integration_esys_create_password_auth_int_SOURCES = \
497 test/integration/esys-create-password-auth.int.c \
498 test/integration/main-esapi.c test/integration/test-esapi.h
499
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800500test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100501test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
502test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
503test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
504 test/integration/esys-create-primary-hmac.int.c \
505 test/integration/main-esapi.c test/integration/test-esapi.h
506
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800507test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100508test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
509test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
510test_integration_esys_create_primary_hmac_int_SOURCES = \
511 test/integration/esys-create-primary-hmac.int.c \
512 test/integration/main-esapi.c test/integration/test-esapi.h
513
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200514test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
515 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100516test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
517test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
518test_integration_esys_create_session_auth_int_SOURCES = \
519 test/integration/esys-create-session-auth.int.c \
520 test/integration/main-esapi.c test/integration/test-esapi.h
521
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200522test_integration_esys_create_session_auth_ecc_int_CFLAGS = $(TESTS_CFLAGS) \
523 -DTEST_AES_ENCRYPTION -DTEST_ECC
524test_integration_esys_create_session_auth_ecc_int_LDADD = $(TESTS_LDADD)
525test_integration_esys_create_session_auth_ecc_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
526test_integration_esys_create_session_auth_ecc_int_SOURCES = \
527 test/integration/esys-create-session-auth.int.c \
528 test/integration/main-esapi.c test/integration/test-esapi.h
529
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200530test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
531 -DTEST_XOR_OBFUSCATION
532test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
533test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
534test_integration_esys_create_session_auth_xor_int_SOURCES = \
535 test/integration/esys-create-session-auth.int.c \
536 test/integration/main-esapi.c test/integration/test-esapi.h
537
Juergen Reppf477ded2018-03-27 14:40:35 +0200538test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
539test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
540test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
541test_integration_esys_duplicate_int_SOURCES = \
542 test/integration/esys-duplicate.int.c \
543 test/integration/main-esapi.c test/integration/test-esapi.h
544
Juergen Repp0d884d52018-04-12 10:48:07 +0200545test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
546test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
547test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
548test_integration_esys_ecc_parameters_int_SOURCES = \
549 test/integration/esys-ecc-parameters.int.c \
550 test/integration/main-esapi.c test/integration/test-esapi.h
551
Juergen Repp472840f2018-04-12 10:48:38 +0200552test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
553test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
554test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
555test_integration_esys_ecdh_keygen_int_SOURCES = \
556 test/integration/esys-ecdh-keygen.int.c \
557 test/integration/main-esapi.c test/integration/test-esapi.h
558
Juergen Repp73461b42018-04-12 10:49:10 +0200559test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
560test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
561test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
562test_integration_esys_ecdh_zgen_int_SOURCES = \
563 test/integration/esys-ecdh-zgen.int.c \
564 test/integration/main-esapi.c test/integration/test-esapi.h
565
Juergen Reppcd101252018-04-12 10:50:21 +0200566test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
567test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
568test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
569test_integration_esys_encrypt_decrypt_int_SOURCES = \
570 test/integration/esys-encrypt-decrypt.int.c \
571 test/integration/main-esapi.c test/integration/test-esapi.h
572
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200573test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
574test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
575test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
576test_integration_esys_event_sequence_complete_int_SOURCES = \
577 test/integration/esys-event-sequence-complete.int.c \
578 test/integration/main-esapi.c test/integration/test-esapi.h
579
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800580test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100581test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
582test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
583test_integration_esys_evict_control_serialization_int_SOURCES = \
584 test/integration/esys-evict-control-serialization.int.c \
585 test/integration/main-esapi.c test/integration/test-esapi.h
586
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200587test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
588test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
589test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
590test_integration_esys_field_upgrade_int_SOURCES = \
591 test/integration/esys-field-upgrade.int.c \
592 test/integration/main-esapi.c test/integration/test-esapi.h
593
Juergen Repp841eeb42018-04-12 10:51:49 +0200594test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
595test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
596test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
597test_integration_esys_firmware_read_int_SOURCES = \
598 test/integration/esys-firmware-read.int.c \
599 test/integration/main-esapi.c test/integration/test-esapi.h
600
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800601test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100602test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
603test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
604test_integration_esys_get_capability_int_SOURCES = \
605 test/integration/esys-get-capability.int.c \
606 test/integration/main-esapi.c test/integration/test-esapi.h
607
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800608test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100609test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
610test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
611test_integration_esys_get_random_int_SOURCES = \
612 test/integration/esys-get-random.int.c \
613 test/integration/main-esapi.c test/integration/test-esapi.h
614
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200615test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
616test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
617test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
618test_integration_esys_get_time_int_SOURCES = \
619 test/integration/esys-get-time.int.c \
620 test/integration/main-esapi.c test/integration/test-esapi.h
621
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800622test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100623test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
624test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
625test_integration_esys_hashsequencestart_int_SOURCES = \
626 test/integration/esys-hashsequencestart.int.c \
627 test/integration/main-esapi.c test/integration/test-esapi.h
628
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800629test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
630 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100631test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
632test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
633test_integration_esys_hashsequencestart_session_int_SOURCES = \
634 test/integration/esys-hashsequencestart.int.c \
635 test/integration/main-esapi.c test/integration/test-esapi.h
636
Juergen Repp9f394f22018-04-12 10:52:35 +0200637test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
638test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
639test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
640test_integration_esys_hierarchy_control_int_SOURCES = \
641 test/integration/esys-hierarchy-control.int.c \
642 test/integration/main-esapi.c test/integration/test-esapi.h
643
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800644test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100645test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
646test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
647test_integration_esys_hmacsequencestart_int_SOURCES = \
648 test/integration/esys-hmacsequencestart.int.c \
649 test/integration/main-esapi.c test/integration/test-esapi.h
650
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800651test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
652 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100653test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
654test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
655test_integration_esys_hmacsequencestart_session_int_SOURCES = \
656 test/integration/esys-hmacsequencestart.int.c \
657 test/integration/main-esapi.c test/integration/test-esapi.h
658
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800659test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100660test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
661test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
662test_integration_esys_hierarchychangeauth_int_SOURCES = \
663 test/integration/esys-hierarchychangeauth.int.c \
664 test/integration/main-esapi.c test/integration/test-esapi.h
665
Juergen Reppefacad12018-04-12 10:53:12 +0200666test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
667test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
668test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
669test_integration_esys_import_int_SOURCES = \
670 test/integration/esys-import.int.c \
671 test/integration/main-esapi.c test/integration/test-esapi.h
672
Juergen Repp53028832018-04-12 10:53:30 +0200673test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
674test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
675test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
676test_integration_esys_lock_int_SOURCES = \
677 test/integration/esys-lock.int.c \
678 test/integration/main-esapi.c test/integration/test-esapi.h
679
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800680test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100681test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
682test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
683test_integration_esys_make_credential_int_SOURCES = \
684 test/integration/esys-make-credential.int.c \
685 test/integration/main-esapi.c test/integration/test-esapi.h
686
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800687test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
688 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100689test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
690test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
691test_integration_esys_make_credential_session_int_SOURCES = \
692 test/integration/esys-make-credential.int.c \
693 test/integration/main-esapi.c test/integration/test-esapi.h
694
Juergen Repp090bcef2018-04-12 10:53:49 +0200695test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
696test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
697test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
698test_integration_esys_nv_certify_int_SOURCES = \
699 test/integration/esys-nv-certify.int.c \
700 test/integration/main-esapi.c test/integration/test-esapi.h
701
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800702test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100703test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
704test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
705test_integration_esys_nv_ram_counter_int_SOURCES = \
706 test/integration/esys-nv-ram-counter.int.c \
707 test/integration/main-esapi.c test/integration/test-esapi.h
708
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800709test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
710 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100711test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
712test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
713test_integration_esys_nv_ram_counter_session_int_SOURCES = \
714 test/integration/esys-nv-ram-counter.int.c \
715 test/integration/main-esapi.c test/integration/test-esapi.h
716
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800717test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100718test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
719test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
720test_integration_esys_nv_ram_extend_index_int_SOURCES = \
721 test/integration/esys-nv-ram-extend-index.int.c \
722 test/integration/main-esapi.c test/integration/test-esapi.h
723
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800724test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
725 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100726test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
727test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
728test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
729 test/integration/esys-nv-ram-extend-index.int.c \
730 test/integration/main-esapi.c test/integration/test-esapi.h
731
Juergen Repp4f8ad602018-04-12 10:54:45 +0200732test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
733 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
734 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
735test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
736test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
737test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200738 test/integration/esys-nv-ram-ordinary-index.int.c \
739 test/integration/main-esapi.c test/integration/test-esapi.h
740
Juergen Repp4f8ad602018-04-12 10:54:45 +0200741test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
742 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
743 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
744test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
745test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
746test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
747 test/integration/esys-nv-ram-ordinary-index.int.c \
748 test/integration/main-esapi.c test/integration/test-esapi.h
749
750test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
751 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
752 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
753test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
754test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
755test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
756 test/integration/esys-nv-ram-ordinary-index.int.c \
757 test/integration/main-esapi.c test/integration/test-esapi.h
758
759test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
760 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
761 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
762test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
763test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
764test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200765 test/integration/esys-nv-ram-ordinary-index.int.c \
766 test/integration/main-esapi.c test/integration/test-esapi.h
767
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800768test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100769test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
770test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
771test_integration_esys_nv_ram_set_bits_int_SOURCES = \
772 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100773 test/integration/main-esapi.c test/integration/test-esapi.h
774
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800775test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
776 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100777test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
778test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
779test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
780 test/integration/esys-nv-ram-set-bits.int.c \
781 test/integration/main-esapi.c test/integration/test-esapi.h
782
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800783test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100784test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
785test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
786test_integration_esys_object_changeauth_int_SOURCES = \
787 test/integration/esys-object-changeauth.int.c \
788 test/integration/main-esapi.c test/integration/test-esapi.h
789
Juergen Repped818052018-04-12 10:56:38 +0200790test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
791test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
792test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
793test_integration_esys_policy_authorize_int_SOURCES = \
794 test/integration/esys-policy-authorize.int.c \
795 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200796 test/integration/main-esapi.c test/integration/test-esapi.h
797
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200798test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
799test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
800test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
801test_integration_esys_policy_regression_int_SOURCES = \
802 test/integration/esys-policy-regression.int.c \
803 test/integration/main-esapi.c test/integration/test-esapi.h
804
Juergen Repp897c75d2018-04-12 10:57:26 +0200805test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
806test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
807test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
808test_integration_esys_policy_ticket_int_SOURCES = \
809 test/integration/esys-policy-ticket.int.c \
810 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200811 test/integration/main-esapi.c test/integration/test-esapi.h
812
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800813test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100814test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
815test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
816test_integration_esys_policy_nv_changeauth_int_SOURCES = \
817 test/integration/esys-policy-nv-changeauth.int.c \
818 test/integration/main-esapi.c test/integration/test-esapi.h
819
Juergen Repp4cac2822018-04-12 10:58:39 +0200820test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
821test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
822test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
823test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
824 test/integration/esys-policy-nv-undefine-special.int.c \
825 test/integration/main-esapi.c test/integration/test-esapi.h
826
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800827test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100828test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
829test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
830test_integration_esys_policy_password_int_SOURCES = \
831 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100832 test/integration/main-esapi.c test/integration/test-esapi.h
833
Juergen Repped818052018-04-12 10:56:38 +0200834test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
835test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
836test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
837test_integration_esys_pcr_basic_int_SOURCES = \
838 test/integration/esys-pcr-basic.int.c \
839 test/integration/main-esapi.c test/integration/test-esapi.h
840
Juergen Repp897c75d2018-04-12 10:57:26 +0200841test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
842test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
843test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
844test_integration_esys_pcr_auth_value_int_SOURCES = \
845 test/integration/esys-pcr-auth-value.int.c \
846 test/integration/main-esapi.c test/integration/test-esapi.h
847
Juergen Repp91ed3de2018-04-12 11:01:30 +0200848test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
849test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
850test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
851test_integration_esys_pp_commands_int_SOURCES = \
852 test/integration/esys-pp-commands.int.c \
853 test/integration/main-esapi.c test/integration/test-esapi.h
854
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800855test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100856test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
857test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
858test_integration_esys_quote_int_SOURCES = \
859 test/integration/esys-quote.int.c \
860 test/integration/main-esapi.c test/integration/test-esapi.h
861
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800862test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100863test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
864test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
865test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
866 test/integration/esys-rsa-encrypt-decrypt.int.c \
867 test/integration/main-esapi.c test/integration/test-esapi.h
868
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800869test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100870test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
871test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
872test_integration_esys_save_and_load_context_int_SOURCES = \
873 test/integration/esys-save-and-load-context.int.c \
874 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200875
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200876test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
877test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
878test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
879test_integration_esys_set_algorithm_set_int_SOURCES = \
880 test/integration/esys-set-algorithm-set.int.c \
881 test/integration/main-esapi.c test/integration/test-esapi.h
882
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200883test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
884test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
885test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
886test_integration_esys_stir_random_int_SOURCES = \
887 test/integration/esys-stir-random.int.c \
888 test/integration/main-esapi.c test/integration/test-esapi.h
889
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200890test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
891test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
892test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
893test_integration_esys_testparms_int_SOURCES = \
894 test/integration/esys-testparms.int.c \
895 test/integration/main-esapi.c test/integration/test-esapi.h
896
Juergen Repp24f4acb2018-04-12 11:04:27 +0200897test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
898test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
899test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
900test_integration_esys_tpm_tests_int_SOURCES = \
901 test/integration/esys-tpm-tests.int.c \
902 test/integration/main-esapi.c test/integration/test-esapi.h
903
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200904test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
905test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
906test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
907test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
908 test/integration/esys-tr-fromTpmPublic-key.int.c \
909 test/integration/main-esapi.c test/integration/test-esapi.h
910
Andreas Fuchs95809e22018-04-12 12:21:06 +0200911test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
912test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
913test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
914test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
915 test/integration/esys-tr-fromTpmPublic-nv.int.c \
916 test/integration/main-esapi.c test/integration/test-esapi.h
917
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200918test_integration_esys_tr_getName_hierarchy_int_CFLAGS = $(TESTS_CFLAGS)
919test_integration_esys_tr_getName_hierarchy_int_LDADD = $(TESTS_LDADD)
920test_integration_esys_tr_getName_hierarchy_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
921test_integration_esys_tr_getName_hierarchy_int_SOURCES = \
922 test/integration/esys-tr-getName-hierarchy.int.c \
923 test/integration/main-esapi.c test/integration/test-esapi.h
924
Christian Plappert624423b2018-03-27 14:36:40 +0200925test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
926test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
927test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
928test_integration_esys_unseal_password_auth_int_SOURCES = \
929 test/integration/esys-unseal-password-auth.int.c \
930 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200931
932test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
933test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
934test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
935test_integration_esys_verify_signature_int_SOURCES = \
936 test/integration/esys-verify-signature.int.c \
937 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200938
939test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
940test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
941test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
942test_integration_esys_zgen_2phase_int_SOURCES = \
943 test/integration/esys-zgen-2phase.int.c \
944 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100945endif #ESAPI
946
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800947test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100948test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
949test_integration_policy_template_int_SOURCES = test/integration/main.c \
950 test/integration/policy-template.int.c
951
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800952test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100953test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
954test_integration_create_loaded_int_SOURCES = test/integration/main.c \
955 test/integration/create-loaded.int.c
956
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800957test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100958test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800959test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100960 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800961
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800962test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800963test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800964test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800965 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100966endif #SIMULATOR_BIN