blob: 7c05990ee226cfffc1a918b5c6c3083c8faa0438 [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 \
85 test/unit/esys-tpm-rcs
Juergen Reppd947f132018-03-16 13:15:10 +010086endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010087endif #UNIT
88
89if SIMULATOR_BIN
90noinst_LTLIBRARIES += test/integration/libtest_utils.la
91TESTS_INTEGRATION = \
92 test/integration/asymmetric-encrypt-decrypt.int \
93 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
94 test/integration/create-keyedhash-sha1-hmac.int \
95 test/integration/encrypt-decrypt.int \
96 test/integration/encrypt-decrypt-2.int \
97 test/integration/evict-ctrl.int \
98 test/integration/get-random.int \
99 test/integration/hierarchy-change-auth.int \
100 test/integration/abi-version.int \
101 test/integration/pcr-extension.int \
102 test/integration/self-test.int \
103 test/integration/start-auth-session.int \
104 test/integration/sys-initialize.int \
105 test/integration/tpm-properties.int \
106 test/integration/system-api.int \
107 test/integration/policy-template.int \
108 test/integration/create-loaded.int \
109 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800110 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100111 test/tpmclient/tpmclient.int
112if ESAPI
113TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200114 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200115 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200116 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200117 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100118 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200119 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100120 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100121 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200122 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100124 test/integration/esys-createloaded.int \
125 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100126 test/integration/esys-create-password-auth.int \
127 test/integration/esys-create-primary-ecc-hmac.int \
128 test/integration/esys-create-primary-hmac.int \
129 test/integration/esys-create-session-auth.int \
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200130 test/integration/esys-create-session-auth-ecc.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200131 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200132 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200133 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200134 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200135 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200136 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200137 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100138 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200139 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200140 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100141 test/integration/esys-get-capability.int \
142 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200143 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100144 test/integration/esys-hashsequencestart.int \
145 test/integration/esys-hashsequencestart-session.int \
146 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200147 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100148 test/integration/esys-hmacsequencestart.int \
149 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200150 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200151 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100152 test/integration/esys-make-credential.int \
153 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200154 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100155 test/integration/esys-nv-ram-counter.int \
156 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100157 test/integration/esys-nv-ram-extend-index.int \
158 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200159 test/integration/esys-nv-ram-ordinary-index-rlock.int \
160 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
161 test/integration/esys-nv-ram-ordinary-index-wlock.int \
162 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100163 test/integration/esys-nv-ram-set-bits.int \
164 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100165 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200166 test/integration/esys-pcr-basic.int \
167 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200168 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200169 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200170 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100171 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200172 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100173 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200174 test/integration/esys-pp-commands.int \
175 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100176 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200177 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200178 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200179 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200180 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200181 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200182 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200183 test/integration/esys-tr-fromTpmPublic-nv.int \
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200184 test/integration/esys-tr-getName-hierarchy.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200185 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200186 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200187 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100188endif #ESAPI
189endif #SIMULATOR_BIN
190
191CLEANFILES += \
192 test/integration/*.log \
193 test/tpmclient/*.log \
194 test/unit/*.log
195
196if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800197test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800198test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100199test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800200test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700201 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
202 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100203
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800204test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800205test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800206test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700207test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
208 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
209 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100210
Philip Tricca88ced722018-03-14 15:24:20 -0700211test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700212test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
213test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700214test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800215
Philip Triccae394cff2018-04-18 08:36:06 -0700216test_unit_key_value_parse_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
217test_unit_key_value_parse_LDADD = $(CMOCKA_LIBS) $(libutil)
218test_unit_key_value_parse_SOURCES = test/unit/key-value-parse.c
219
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800220test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100221test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800222test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100223test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
224
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800225test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800226test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100227test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
228
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800229test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100230test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800231test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100232test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
233
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800234test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800235test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100236test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
237
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800238test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800239test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100240test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
241
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800242test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800243test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100244test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
245
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800246test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800247test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100248test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
249
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800250test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800251test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100252test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
253
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800254test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800255test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100256test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
257
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800258test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800259test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100260test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
261
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800262test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800263test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100264test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
265
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800266test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800267test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100268test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
269
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800270test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800271test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100272test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100273
274if ESAPI
275test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
276test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
277test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100278test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
279
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100280test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
281test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
282test_unit_esys_default_tcti_LDFLAGS = \
283 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
284 -Wl,--wrap=Tss2_Tcti_Device_Init \
285 -Wl,--wrap=Tss2_Tcti_Mssim_Init
286test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
287 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
288
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100289test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
290test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
291test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
292test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100293
294test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
295test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
296test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
297test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Andreas Fuchs4879ad32018-04-12 14:48:06 +0200298
299test_unit_esys_tcti_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
300test_unit_esys_tcti_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
301test_unit_esys_tcti_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
302test_unit_esys_tcti_rcs_SOURCES = test/unit/esys-tcti-rcs.c
Andreas Fuchs72227dc2018-04-12 14:54:07 +0200303
304test_unit_esys_tpm_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
305test_unit_esys_tpm_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
306test_unit_esys_tpm_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
307test_unit_esys_tpm_rcs_SOURCES = test/unit/esys-tpm-rcs.c
Juergen Reppd947f132018-03-16 13:15:10 +0100308endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100309endif # UNIT
310
311if SIMULATOR_BIN
312test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
313test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
314test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Strukf517ee52018-04-23 19:00:10 -0700315 test/tpmclient/tpmclient.int.c test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100316
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200317test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100318test_integration_libtest_utils_la_SOURCES = \
319 test/integration/context-util.c test/integration/context-util.h \
320 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700321 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100322 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700323 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100324
325test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
326test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
327test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
328 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
329
330test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
331test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
332test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
333 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
334 test/integration/main.c
335
336test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
337test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
338test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
339 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
340
341test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
342test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
343test_integration_encrypt_decrypt_int_SOURCES = \
344 test/integration/encrypt-decrypt.int.c test/integration/main.c
345
346test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
347test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
348test_integration_encrypt_decrypt_2_int_SOURCES = \
349 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
350
351test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
352test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
353test_integration_evict_ctrl_int_SOURCES = \
354 test/integration/evict-ctrl.int.c test/integration/main.c
355
356test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
357test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
358test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
359 test/integration/main.c
360
361test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
362test_integration_get_random_int_LDADD = $(TESTS_LDADD)
363test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
364 test/integration/main.c
365
366test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
367test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
368test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
369 test/integration/main.c
370
371test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
372test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
373test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
374 test/integration/main.c
375
376test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
377test_integration_self_test_int_LDADD = $(TESTS_LDADD)
378test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
379 test/integration/main.c
380
381test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
382test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
383test_integration_hierarchy_change_auth_int_SOURCES = \
384 test/integration/hierarchy-change-auth.int.c test/integration/main.c
385
386test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
387test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
388test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
389 test/integration/start-auth-session.int.c
390
391test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
392test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
393test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
394 test/integration/tpm-properties.int.c
395
396test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
397test_integration_system_api_int_LDADD = $(TESTS_LDADD)
398test_integration_system_api_int_SOURCES = test/integration/main.c \
399 test/integration/system-api.int.c
400
401if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200402test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
403test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
404test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
405test_integration_esys_audit_int_SOURCES = \
406 test/integration/esys-audit.int.c \
407 test/integration/main-esapi.c test/integration/test-esapi.h
408
Juergen Repp43966fc2018-04-12 10:44:53 +0200409test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
410test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
411test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
412test_integration_esys_certify_creation_int_SOURCES = \
413 test/integration/esys-certify-creation.int.c \
414 test/integration/main-esapi.c test/integration/test-esapi.h
415
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200416test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
417test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
418test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
419test_integration_esys_certify_int_SOURCES = \
420 test/integration/esys-certify.int.c \
421 test/integration/main-esapi.c test/integration/test-esapi.h
422
Juergen Repp16455702018-04-12 10:45:49 +0200423test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
424test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
425test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
426test_integration_esys_change_eps_int_SOURCES = \
427 test/integration/esys-change-eps.int.c \
428 test/integration/main-esapi.c test/integration/test-esapi.h
429
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800430test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100431test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
432test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
433test_integration_esys_clear_int_SOURCES = \
434 test/integration/esys-clear.int.c \
435 test/integration/main-esapi.c test/integration/test-esapi.h
436
Juergen Repp658cd7d2018-04-12 10:46:25 +0200437test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
438test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
439test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
440test_integration_esys_clear_control_int_SOURCES = \
441 test/integration/esys-clear-control.int.c \
442 test/integration/main-esapi.c test/integration/test-esapi.h
443
444test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100445test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
446test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
447test_integration_esys_clear_session_int_SOURCES = \
448 test/integration/esys-clear.int.c \
449 test/integration/main-esapi.c test/integration/test-esapi.h
450
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800451test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100452test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
453test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
454test_integration_esys_clockset_int_SOURCES = \
455 test/integration/esys-clockset.int.c \
456 test/integration/main-esapi.c test/integration/test-esapi.h
457
Juergen Repp0c2d8532018-04-12 10:46:57 +0200458test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
459test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
460test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
461test_integration_esys_commit_int_SOURCES = \
462 test/integration/esys-commit.int.c \
463 test/integration/main-esapi.c test/integration/test-esapi.h
464
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800465test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100466test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
467test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
468test_integration_esys_create_fail_int_SOURCES = \
469 test/integration/esys-create-fail.int.c \
470 test/integration/main-esapi.c test/integration/test-esapi.h
471
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800472test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100473test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
474test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
475test_integration_esys_createloaded_int_SOURCES = \
476 test/integration/esys-createloaded.int.c \
477 test/integration/main-esapi.c test/integration/test-esapi.h
478
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800479test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
480 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100481test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
482test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
483test_integration_esys_createloaded_session_int_SOURCES = \
484 test/integration/esys-createloaded.int.c \
485 test/integration/main-esapi.c test/integration/test-esapi.h
486
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800487test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100488test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
489test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
490test_integration_esys_create_password_auth_int_SOURCES = \
491 test/integration/esys-create-password-auth.int.c \
492 test/integration/main-esapi.c test/integration/test-esapi.h
493
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800494test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100495test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
496test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
497test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
498 test/integration/esys-create-primary-hmac.int.c \
499 test/integration/main-esapi.c test/integration/test-esapi.h
500
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800501test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100502test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
503test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
504test_integration_esys_create_primary_hmac_int_SOURCES = \
505 test/integration/esys-create-primary-hmac.int.c \
506 test/integration/main-esapi.c test/integration/test-esapi.h
507
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200508test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
509 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100510test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
511test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
512test_integration_esys_create_session_auth_int_SOURCES = \
513 test/integration/esys-create-session-auth.int.c \
514 test/integration/main-esapi.c test/integration/test-esapi.h
515
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200516test_integration_esys_create_session_auth_ecc_int_CFLAGS = $(TESTS_CFLAGS) \
517 -DTEST_AES_ENCRYPTION -DTEST_ECC
518test_integration_esys_create_session_auth_ecc_int_LDADD = $(TESTS_LDADD)
519test_integration_esys_create_session_auth_ecc_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
520test_integration_esys_create_session_auth_ecc_int_SOURCES = \
521 test/integration/esys-create-session-auth.int.c \
522 test/integration/main-esapi.c test/integration/test-esapi.h
523
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200524test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
525 -DTEST_XOR_OBFUSCATION
526test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
527test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
528test_integration_esys_create_session_auth_xor_int_SOURCES = \
529 test/integration/esys-create-session-auth.int.c \
530 test/integration/main-esapi.c test/integration/test-esapi.h
531
Juergen Reppf477ded2018-03-27 14:40:35 +0200532test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
533test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
534test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
535test_integration_esys_duplicate_int_SOURCES = \
536 test/integration/esys-duplicate.int.c \
537 test/integration/main-esapi.c test/integration/test-esapi.h
538
Juergen Repp0d884d52018-04-12 10:48:07 +0200539test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
540test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
541test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
542test_integration_esys_ecc_parameters_int_SOURCES = \
543 test/integration/esys-ecc-parameters.int.c \
544 test/integration/main-esapi.c test/integration/test-esapi.h
545
Juergen Repp472840f2018-04-12 10:48:38 +0200546test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
547test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
548test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
549test_integration_esys_ecdh_keygen_int_SOURCES = \
550 test/integration/esys-ecdh-keygen.int.c \
551 test/integration/main-esapi.c test/integration/test-esapi.h
552
Juergen Repp73461b42018-04-12 10:49:10 +0200553test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
554test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
555test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
556test_integration_esys_ecdh_zgen_int_SOURCES = \
557 test/integration/esys-ecdh-zgen.int.c \
558 test/integration/main-esapi.c test/integration/test-esapi.h
559
Juergen Reppcd101252018-04-12 10:50:21 +0200560test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
561test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
562test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
563test_integration_esys_encrypt_decrypt_int_SOURCES = \
564 test/integration/esys-encrypt-decrypt.int.c \
565 test/integration/main-esapi.c test/integration/test-esapi.h
566
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200567test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
568test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
569test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
570test_integration_esys_event_sequence_complete_int_SOURCES = \
571 test/integration/esys-event-sequence-complete.int.c \
572 test/integration/main-esapi.c test/integration/test-esapi.h
573
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800574test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100575test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
576test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
577test_integration_esys_evict_control_serialization_int_SOURCES = \
578 test/integration/esys-evict-control-serialization.int.c \
579 test/integration/main-esapi.c test/integration/test-esapi.h
580
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200581test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
582test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
583test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
584test_integration_esys_field_upgrade_int_SOURCES = \
585 test/integration/esys-field-upgrade.int.c \
586 test/integration/main-esapi.c test/integration/test-esapi.h
587
Juergen Repp841eeb42018-04-12 10:51:49 +0200588test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
589test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
590test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
591test_integration_esys_firmware_read_int_SOURCES = \
592 test/integration/esys-firmware-read.int.c \
593 test/integration/main-esapi.c test/integration/test-esapi.h
594
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800595test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100596test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
597test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
598test_integration_esys_get_capability_int_SOURCES = \
599 test/integration/esys-get-capability.int.c \
600 test/integration/main-esapi.c test/integration/test-esapi.h
601
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800602test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100603test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
604test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
605test_integration_esys_get_random_int_SOURCES = \
606 test/integration/esys-get-random.int.c \
607 test/integration/main-esapi.c test/integration/test-esapi.h
608
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200609test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
610test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
611test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
612test_integration_esys_get_time_int_SOURCES = \
613 test/integration/esys-get-time.int.c \
614 test/integration/main-esapi.c test/integration/test-esapi.h
615
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800616test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100617test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
618test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
619test_integration_esys_hashsequencestart_int_SOURCES = \
620 test/integration/esys-hashsequencestart.int.c \
621 test/integration/main-esapi.c test/integration/test-esapi.h
622
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800623test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
624 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100625test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
626test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
627test_integration_esys_hashsequencestart_session_int_SOURCES = \
628 test/integration/esys-hashsequencestart.int.c \
629 test/integration/main-esapi.c test/integration/test-esapi.h
630
Juergen Repp9f394f22018-04-12 10:52:35 +0200631test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
632test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
633test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
634test_integration_esys_hierarchy_control_int_SOURCES = \
635 test/integration/esys-hierarchy-control.int.c \
636 test/integration/main-esapi.c test/integration/test-esapi.h
637
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800638test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100639test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
640test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
641test_integration_esys_hmacsequencestart_int_SOURCES = \
642 test/integration/esys-hmacsequencestart.int.c \
643 test/integration/main-esapi.c test/integration/test-esapi.h
644
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800645test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
646 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100647test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
648test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
649test_integration_esys_hmacsequencestart_session_int_SOURCES = \
650 test/integration/esys-hmacsequencestart.int.c \
651 test/integration/main-esapi.c test/integration/test-esapi.h
652
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800653test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100654test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
655test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
656test_integration_esys_hierarchychangeauth_int_SOURCES = \
657 test/integration/esys-hierarchychangeauth.int.c \
658 test/integration/main-esapi.c test/integration/test-esapi.h
659
Juergen Reppefacad12018-04-12 10:53:12 +0200660test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
661test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
662test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
663test_integration_esys_import_int_SOURCES = \
664 test/integration/esys-import.int.c \
665 test/integration/main-esapi.c test/integration/test-esapi.h
666
Juergen Repp53028832018-04-12 10:53:30 +0200667test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
668test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
669test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
670test_integration_esys_lock_int_SOURCES = \
671 test/integration/esys-lock.int.c \
672 test/integration/main-esapi.c test/integration/test-esapi.h
673
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800674test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100675test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
676test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
677test_integration_esys_make_credential_int_SOURCES = \
678 test/integration/esys-make-credential.int.c \
679 test/integration/main-esapi.c test/integration/test-esapi.h
680
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800681test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
682 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100683test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
684test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
685test_integration_esys_make_credential_session_int_SOURCES = \
686 test/integration/esys-make-credential.int.c \
687 test/integration/main-esapi.c test/integration/test-esapi.h
688
Juergen Repp090bcef2018-04-12 10:53:49 +0200689test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
690test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
691test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
692test_integration_esys_nv_certify_int_SOURCES = \
693 test/integration/esys-nv-certify.int.c \
694 test/integration/main-esapi.c test/integration/test-esapi.h
695
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800696test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100697test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
698test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
699test_integration_esys_nv_ram_counter_int_SOURCES = \
700 test/integration/esys-nv-ram-counter.int.c \
701 test/integration/main-esapi.c test/integration/test-esapi.h
702
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800703test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
704 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100705test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
706test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
707test_integration_esys_nv_ram_counter_session_int_SOURCES = \
708 test/integration/esys-nv-ram-counter.int.c \
709 test/integration/main-esapi.c test/integration/test-esapi.h
710
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800711test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100712test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
713test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
714test_integration_esys_nv_ram_extend_index_int_SOURCES = \
715 test/integration/esys-nv-ram-extend-index.int.c \
716 test/integration/main-esapi.c test/integration/test-esapi.h
717
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800718test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
719 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100720test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
721test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
722test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
723 test/integration/esys-nv-ram-extend-index.int.c \
724 test/integration/main-esapi.c test/integration/test-esapi.h
725
Juergen Repp4f8ad602018-04-12 10:54:45 +0200726test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
727 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
728 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
729test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
730test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
731test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200732 test/integration/esys-nv-ram-ordinary-index.int.c \
733 test/integration/main-esapi.c test/integration/test-esapi.h
734
Juergen Repp4f8ad602018-04-12 10:54:45 +0200735test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
736 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
737 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
738test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
739test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
740test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
741 test/integration/esys-nv-ram-ordinary-index.int.c \
742 test/integration/main-esapi.c test/integration/test-esapi.h
743
744test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
745 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
746 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
747test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
748test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
749test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
750 test/integration/esys-nv-ram-ordinary-index.int.c \
751 test/integration/main-esapi.c test/integration/test-esapi.h
752
753test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
754 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
755 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
756test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
757test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
758test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200759 test/integration/esys-nv-ram-ordinary-index.int.c \
760 test/integration/main-esapi.c test/integration/test-esapi.h
761
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800762test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100763test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
764test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
765test_integration_esys_nv_ram_set_bits_int_SOURCES = \
766 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100767 test/integration/main-esapi.c test/integration/test-esapi.h
768
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800769test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
770 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100771test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
772test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
773test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
774 test/integration/esys-nv-ram-set-bits.int.c \
775 test/integration/main-esapi.c test/integration/test-esapi.h
776
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800777test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100778test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
779test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
780test_integration_esys_object_changeauth_int_SOURCES = \
781 test/integration/esys-object-changeauth.int.c \
782 test/integration/main-esapi.c test/integration/test-esapi.h
783
Juergen Repped818052018-04-12 10:56:38 +0200784test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
785test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
786test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
787test_integration_esys_policy_authorize_int_SOURCES = \
788 test/integration/esys-policy-authorize.int.c \
789 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200790 test/integration/main-esapi.c test/integration/test-esapi.h
791
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200792test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
793test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
794test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
795test_integration_esys_policy_regression_int_SOURCES = \
796 test/integration/esys-policy-regression.int.c \
797 test/integration/main-esapi.c test/integration/test-esapi.h
798
Juergen Repp897c75d2018-04-12 10:57:26 +0200799test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
800test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
801test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
802test_integration_esys_policy_ticket_int_SOURCES = \
803 test/integration/esys-policy-ticket.int.c \
804 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200805 test/integration/main-esapi.c test/integration/test-esapi.h
806
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800807test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100808test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
809test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
810test_integration_esys_policy_nv_changeauth_int_SOURCES = \
811 test/integration/esys-policy-nv-changeauth.int.c \
812 test/integration/main-esapi.c test/integration/test-esapi.h
813
Juergen Repp4cac2822018-04-12 10:58:39 +0200814test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
815test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
816test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
817test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
818 test/integration/esys-policy-nv-undefine-special.int.c \
819 test/integration/main-esapi.c test/integration/test-esapi.h
820
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800821test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100822test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
823test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
824test_integration_esys_policy_password_int_SOURCES = \
825 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100826 test/integration/main-esapi.c test/integration/test-esapi.h
827
Juergen Repped818052018-04-12 10:56:38 +0200828test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
829test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
830test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
831test_integration_esys_pcr_basic_int_SOURCES = \
832 test/integration/esys-pcr-basic.int.c \
833 test/integration/main-esapi.c test/integration/test-esapi.h
834
Juergen Repp897c75d2018-04-12 10:57:26 +0200835test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
836test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
837test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
838test_integration_esys_pcr_auth_value_int_SOURCES = \
839 test/integration/esys-pcr-auth-value.int.c \
840 test/integration/main-esapi.c test/integration/test-esapi.h
841
Juergen Repp91ed3de2018-04-12 11:01:30 +0200842test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
843test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
844test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
845test_integration_esys_pp_commands_int_SOURCES = \
846 test/integration/esys-pp-commands.int.c \
847 test/integration/main-esapi.c test/integration/test-esapi.h
848
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800849test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100850test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
851test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
852test_integration_esys_quote_int_SOURCES = \
853 test/integration/esys-quote.int.c \
854 test/integration/main-esapi.c test/integration/test-esapi.h
855
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800856test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100857test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
858test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
859test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
860 test/integration/esys-rsa-encrypt-decrypt.int.c \
861 test/integration/main-esapi.c test/integration/test-esapi.h
862
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800863test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100864test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
865test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
866test_integration_esys_save_and_load_context_int_SOURCES = \
867 test/integration/esys-save-and-load-context.int.c \
868 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200869
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200870test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
871test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
872test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
873test_integration_esys_set_algorithm_set_int_SOURCES = \
874 test/integration/esys-set-algorithm-set.int.c \
875 test/integration/main-esapi.c test/integration/test-esapi.h
876
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200877test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
878test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
879test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
880test_integration_esys_stir_random_int_SOURCES = \
881 test/integration/esys-stir-random.int.c \
882 test/integration/main-esapi.c test/integration/test-esapi.h
883
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200884test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
885test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
886test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
887test_integration_esys_testparms_int_SOURCES = \
888 test/integration/esys-testparms.int.c \
889 test/integration/main-esapi.c test/integration/test-esapi.h
890
Juergen Repp24f4acb2018-04-12 11:04:27 +0200891test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
892test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
893test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
894test_integration_esys_tpm_tests_int_SOURCES = \
895 test/integration/esys-tpm-tests.int.c \
896 test/integration/main-esapi.c test/integration/test-esapi.h
897
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200898test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
899test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
900test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
901test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
902 test/integration/esys-tr-fromTpmPublic-key.int.c \
903 test/integration/main-esapi.c test/integration/test-esapi.h
904
Andreas Fuchs95809e22018-04-12 12:21:06 +0200905test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
906test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
907test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
908test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
909 test/integration/esys-tr-fromTpmPublic-nv.int.c \
910 test/integration/main-esapi.c test/integration/test-esapi.h
911
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200912test_integration_esys_tr_getName_hierarchy_int_CFLAGS = $(TESTS_CFLAGS)
913test_integration_esys_tr_getName_hierarchy_int_LDADD = $(TESTS_LDADD)
914test_integration_esys_tr_getName_hierarchy_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
915test_integration_esys_tr_getName_hierarchy_int_SOURCES = \
916 test/integration/esys-tr-getName-hierarchy.int.c \
917 test/integration/main-esapi.c test/integration/test-esapi.h
918
Christian Plappert624423b2018-03-27 14:36:40 +0200919test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
920test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
921test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
922test_integration_esys_unseal_password_auth_int_SOURCES = \
923 test/integration/esys-unseal-password-auth.int.c \
924 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200925
926test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
927test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
928test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
929test_integration_esys_verify_signature_int_SOURCES = \
930 test/integration/esys-verify-signature.int.c \
931 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200932
933test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
934test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
935test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
936test_integration_esys_zgen_2phase_int_SOURCES = \
937 test/integration/esys-zgen-2phase.int.c \
938 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100939endif #ESAPI
940
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800941test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100942test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
943test_integration_policy_template_int_SOURCES = test/integration/main.c \
944 test/integration/policy-template.int.c
945
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800946test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100947test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
948test_integration_create_loaded_int_SOURCES = test/integration/main.c \
949 test/integration/create-loaded.int.c
950
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800951test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100952test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800953test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100954 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800955
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800956test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800957test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800958test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800959 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100960endif #SIMULATOR_BIN