blob: df3c9ac76e8106c539658fe613887f9b2e0ed19f [file] [log] [blame]
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01001#;**********************************************************************;
Philip Tricca49635f42018-03-10 19:19:58 -08002# Copyright (c) 2015 - 2018 Intel Corporation
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01003# Copyright (c) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#
9# 1. Redistributions of source code must retain the above copyright notice,
10# this list of conditions and the following disclaimer.
11#
12# 2. Redistributions in binary form must reproduce the above copyright notice,
13# this list of conditions and the following disclaimer in the documentation
14# and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26# THE POSSIBILITY OF SUCH DAMAGE.
27#;**********************************************************************;
28
Philip Triccaee730622018-03-10 16:40:41 -080029TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/src/tss2-mu \
Andreas Fuchsbaeb2be2018-03-29 15:39:50 +020030 -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys \
Andreas Fuchs1c4a8112018-03-29 16:58:07 +020031 -Wno-unused-parameter -Wno-missing-field-initializers
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010032TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil)
33
34# test harness configuration
35TEST_EXTENSIONS = .int
36INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh
37INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN)
38EXTRA_DIST += $(INT_LOG_COMPILER)
39
40check-programs: $(check_PROGRAMS)
41
42check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
43TESTS = $(check_PROGRAMS)
44
Andreas Fuchsa0eda362018-03-28 11:56:42 +020045if SIMULATOR_BIN
46noinst_PROGRAMS += test/helper/tpm_startup
47test_helper_tpm_startup_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
48test_helper_tpm_startup_LDFLAGS = $(TESTS_LDFLAGS)
49test_helper_tpm_startup_LDADD = $(TESTS_LDADD)
50test_helper_tpm_startup_SOURCES = test/helper/tpm_startup.c
Andreas Fuchsa0eda362018-03-28 11:56:42 +020051
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020052noinst_PROGRAMS += test/helper/tpm_transientempty
53test_helper_tpm_transientempty_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
54test_helper_tpm_transientempty_LDFLAGS = $(TESTS_LDFLAGS)
55test_helper_tpm_transientempty_LDADD = $(TESTS_LDADD)
56test_helper_tpm_transientempty_SOURCES = test/helper/tpm_transientempty.c
Philip Tricca216ac492018-03-30 09:21:24 -070057endif #SIMULATOR_BIN
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020058
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010059if UNIT
60TESTS_UNIT = \
61 test/unit/CommonPreparePrologue \
62 test/unit/CopyCommandHeader \
63 test/unit/GetNumHandles \
Philip Tricca88ced722018-03-14 15:24:20 -070064 test/unit/io \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010065 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080066 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010067 test/unit/UINT8-marshal \
68 test/unit/UINT16-marshal \
69 test/unit/UINT32-marshal \
70 test/unit/UINT64-marshal \
71 test/unit/TPMA-marshal \
72 test/unit/TPM2B-marshal \
73 test/unit/TPMS-marshal \
74 test/unit/TPML-marshal \
75 test/unit/TPMT-marshal \
76 test/unit/TPMU-marshal
Juergen Reppd947f132018-03-16 13:15:10 +010077if ESAPI
78TESTS_UNIT += \
Andreas Fuchs88ac7d72018-03-16 13:20:54 +010079 test/unit/esys-context-null \
Andreas Fuchs5d9ce582018-03-21 19:05:47 +010080 test/unit/esys-default-tcti \
Juergen Repp20181512018-03-20 16:14:28 +010081 test/unit/esys-resubmissions \
82 test/unit/esys-sequence-finish
Juergen Reppd947f132018-03-16 13:15:10 +010083endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010084endif #UNIT
85
86if SIMULATOR_BIN
87noinst_LTLIBRARIES += test/integration/libtest_utils.la
88TESTS_INTEGRATION = \
89 test/integration/asymmetric-encrypt-decrypt.int \
90 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
91 test/integration/create-keyedhash-sha1-hmac.int \
92 test/integration/encrypt-decrypt.int \
93 test/integration/encrypt-decrypt-2.int \
94 test/integration/evict-ctrl.int \
95 test/integration/get-random.int \
96 test/integration/hierarchy-change-auth.int \
97 test/integration/abi-version.int \
98 test/integration/pcr-extension.int \
99 test/integration/self-test.int \
100 test/integration/start-auth-session.int \
101 test/integration/sys-initialize.int \
102 test/integration/tpm-properties.int \
103 test/integration/system-api.int \
104 test/integration/policy-template.int \
105 test/integration/create-loaded.int \
106 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800107 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100108 test/tpmclient/tpmclient.int
109if ESAPI
110TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200111 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200112 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200113 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200114 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100115 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200116 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100117 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100118 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200119 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100120 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100121 test/integration/esys-createloaded.int \
122 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-create-password-auth.int \
124 test/integration/esys-create-primary-ecc-hmac.int \
125 test/integration/esys-create-primary-hmac.int \
126 test/integration/esys-create-session-auth.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200127 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200128 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200129 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200130 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200131 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200132 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200133 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100134 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200135 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200136 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100137 test/integration/esys-get-capability.int \
138 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200139 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100140 test/integration/esys-hashsequencestart.int \
141 test/integration/esys-hashsequencestart-session.int \
142 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200143 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100144 test/integration/esys-hmacsequencestart.int \
145 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200146 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200147 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100148 test/integration/esys-make-credential.int \
149 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200150 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100151 test/integration/esys-nv-ram-counter.int \
152 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100153 test/integration/esys-nv-ram-extend-index.int \
154 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200155 test/integration/esys-nv-ram-ordinary-index-rlock.int \
156 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
157 test/integration/esys-nv-ram-ordinary-index-wlock.int \
158 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100159 test/integration/esys-nv-ram-set-bits.int \
160 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100161 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200162 test/integration/esys-pcr-basic.int \
163 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200164 test/integration/esys-policy-authorize.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200165 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100166 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200167 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100168 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200169 test/integration/esys-pp-commands.int \
170 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100171 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200172 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200173 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200174 test/integration/esys-stir-random.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200175 test/integration/esys-unseal-password-auth.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100176endif #ESAPI
177endif #SIMULATOR_BIN
178
179CLEANFILES += \
180 test/integration/*.log \
181 test/tpmclient/*.log \
182 test/unit/*.log
183
184if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800185test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800186test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100187test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800188test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700189 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
190 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100191
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800192test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800193test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800194test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700195test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
196 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
197 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100198
Philip Tricca88ced722018-03-14 15:24:20 -0700199test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700200test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
201test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700202test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800203
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800204test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100205test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800206test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100207test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
208
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800209test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800210test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100211test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
212
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800213test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100214test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800215test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100216test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
217
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800218test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800219test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100220test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
221
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800222test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800223test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100224test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
225
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800226test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800227test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100228test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
229
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800230test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800231test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100232test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
233
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800234test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800235test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100236test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
237
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800238test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800239test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100240test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
241
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800242test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800243test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100244test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
245
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800246test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800247test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100248test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
249
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800250test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800251test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100252test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
253
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800254test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800255test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100256test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100257
258if ESAPI
259test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
260test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
261test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100262test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
263
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100264test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
265test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
266test_unit_esys_default_tcti_LDFLAGS = \
267 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
268 -Wl,--wrap=Tss2_Tcti_Device_Init \
269 -Wl,--wrap=Tss2_Tcti_Mssim_Init
270test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
271 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
272
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100273test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
274test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
275test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
276test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100277
278test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
279test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
280test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
281test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Juergen Reppd947f132018-03-16 13:15:10 +0100282endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100283endif # UNIT
284
285if SIMULATOR_BIN
286test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
287test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
288test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Struk435467e2018-04-04 14:00:50 -0700289 test/tpmclient/DecryptEncrypt.c \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700290 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \
291 test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100292
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200293test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100294test_integration_libtest_utils_la_SOURCES = \
295 test/integration/context-util.c test/integration/context-util.h \
296 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700297 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100298 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700299 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100300
301test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
302test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
303test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
304 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
305
306test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
307test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
308test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
309 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
310 test/integration/main.c
311
312test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
313test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
314test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
315 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
316
317test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
318test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
319test_integration_encrypt_decrypt_int_SOURCES = \
320 test/integration/encrypt-decrypt.int.c test/integration/main.c
321
322test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
323test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
324test_integration_encrypt_decrypt_2_int_SOURCES = \
325 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
326
327test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
328test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
329test_integration_evict_ctrl_int_SOURCES = \
330 test/integration/evict-ctrl.int.c test/integration/main.c
331
332test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
333test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
334test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
335 test/integration/main.c
336
337test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
338test_integration_get_random_int_LDADD = $(TESTS_LDADD)
339test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
340 test/integration/main.c
341
342test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
343test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
344test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
345 test/integration/main.c
346
347test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
348test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
349test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
350 test/integration/main.c
351
352test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
353test_integration_self_test_int_LDADD = $(TESTS_LDADD)
354test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
355 test/integration/main.c
356
357test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
358test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
359test_integration_hierarchy_change_auth_int_SOURCES = \
360 test/integration/hierarchy-change-auth.int.c test/integration/main.c
361
362test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
363test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
364test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
365 test/integration/start-auth-session.int.c
366
367test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
368test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
369test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
370 test/integration/tpm-properties.int.c
371
372test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
373test_integration_system_api_int_LDADD = $(TESTS_LDADD)
374test_integration_system_api_int_SOURCES = test/integration/main.c \
375 test/integration/system-api.int.c
376
377if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200378test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
379test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
380test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
381test_integration_esys_audit_int_SOURCES = \
382 test/integration/esys-audit.int.c \
383 test/integration/main-esapi.c test/integration/test-esapi.h
384
Juergen Repp43966fc2018-04-12 10:44:53 +0200385test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
386test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
387test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
388test_integration_esys_certify_creation_int_SOURCES = \
389 test/integration/esys-certify-creation.int.c \
390 test/integration/main-esapi.c test/integration/test-esapi.h
391
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200392test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
393test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
394test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
395test_integration_esys_certify_int_SOURCES = \
396 test/integration/esys-certify.int.c \
397 test/integration/main-esapi.c test/integration/test-esapi.h
398
Juergen Repp16455702018-04-12 10:45:49 +0200399test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
400test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
401test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
402test_integration_esys_change_eps_int_SOURCES = \
403 test/integration/esys-change-eps.int.c \
404 test/integration/main-esapi.c test/integration/test-esapi.h
405
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800406test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100407test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
408test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
409test_integration_esys_clear_int_SOURCES = \
410 test/integration/esys-clear.int.c \
411 test/integration/main-esapi.c test/integration/test-esapi.h
412
Juergen Repp658cd7d2018-04-12 10:46:25 +0200413test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
414test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
415test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
416test_integration_esys_clear_control_int_SOURCES = \
417 test/integration/esys-clear-control.int.c \
418 test/integration/main-esapi.c test/integration/test-esapi.h
419
420test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100421test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
422test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
423test_integration_esys_clear_session_int_SOURCES = \
424 test/integration/esys-clear.int.c \
425 test/integration/main-esapi.c test/integration/test-esapi.h
426
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800427test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100428test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
429test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
430test_integration_esys_clockset_int_SOURCES = \
431 test/integration/esys-clockset.int.c \
432 test/integration/main-esapi.c test/integration/test-esapi.h
433
Juergen Repp0c2d8532018-04-12 10:46:57 +0200434test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
435test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
436test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
437test_integration_esys_commit_int_SOURCES = \
438 test/integration/esys-commit.int.c \
439 test/integration/main-esapi.c test/integration/test-esapi.h
440
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800441test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100442test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
443test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
444test_integration_esys_create_fail_int_SOURCES = \
445 test/integration/esys-create-fail.int.c \
446 test/integration/main-esapi.c test/integration/test-esapi.h
447
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800448test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100449test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
450test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
451test_integration_esys_createloaded_int_SOURCES = \
452 test/integration/esys-createloaded.int.c \
453 test/integration/main-esapi.c test/integration/test-esapi.h
454
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800455test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
456 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100457test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
458test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
459test_integration_esys_createloaded_session_int_SOURCES = \
460 test/integration/esys-createloaded.int.c \
461 test/integration/main-esapi.c test/integration/test-esapi.h
462
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800463test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100464test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
465test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
466test_integration_esys_create_password_auth_int_SOURCES = \
467 test/integration/esys-create-password-auth.int.c \
468 test/integration/main-esapi.c test/integration/test-esapi.h
469
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800470test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100471test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
472test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
473test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
474 test/integration/esys-create-primary-hmac.int.c \
475 test/integration/main-esapi.c test/integration/test-esapi.h
476
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800477test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100478test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
479test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
480test_integration_esys_create_primary_hmac_int_SOURCES = \
481 test/integration/esys-create-primary-hmac.int.c \
482 test/integration/main-esapi.c test/integration/test-esapi.h
483
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200484test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
485 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100486test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
487test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
488test_integration_esys_create_session_auth_int_SOURCES = \
489 test/integration/esys-create-session-auth.int.c \
490 test/integration/main-esapi.c test/integration/test-esapi.h
491
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200492test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
493 -DTEST_XOR_OBFUSCATION
494test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
495test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
496test_integration_esys_create_session_auth_xor_int_SOURCES = \
497 test/integration/esys-create-session-auth.int.c \
498 test/integration/main-esapi.c test/integration/test-esapi.h
499
Juergen Reppf477ded2018-03-27 14:40:35 +0200500test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
501test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
502test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
503test_integration_esys_duplicate_int_SOURCES = \
504 test/integration/esys-duplicate.int.c \
505 test/integration/main-esapi.c test/integration/test-esapi.h
506
Juergen Repp0d884d52018-04-12 10:48:07 +0200507test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
508test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
509test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
510test_integration_esys_ecc_parameters_int_SOURCES = \
511 test/integration/esys-ecc-parameters.int.c \
512 test/integration/main-esapi.c test/integration/test-esapi.h
513
Juergen Repp472840f2018-04-12 10:48:38 +0200514test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
515test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
516test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
517test_integration_esys_ecdh_keygen_int_SOURCES = \
518 test/integration/esys-ecdh-keygen.int.c \
519 test/integration/main-esapi.c test/integration/test-esapi.h
520
Juergen Repp73461b42018-04-12 10:49:10 +0200521test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
522test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
523test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
524test_integration_esys_ecdh_zgen_int_SOURCES = \
525 test/integration/esys-ecdh-zgen.int.c \
526 test/integration/main-esapi.c test/integration/test-esapi.h
527
Juergen Reppcd101252018-04-12 10:50:21 +0200528test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
529test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
530test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
531test_integration_esys_encrypt_decrypt_int_SOURCES = \
532 test/integration/esys-encrypt-decrypt.int.c \
533 test/integration/main-esapi.c test/integration/test-esapi.h
534
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200535test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
536test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
537test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
538test_integration_esys_event_sequence_complete_int_SOURCES = \
539 test/integration/esys-event-sequence-complete.int.c \
540 test/integration/main-esapi.c test/integration/test-esapi.h
541
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800542test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100543test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
544test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
545test_integration_esys_evict_control_serialization_int_SOURCES = \
546 test/integration/esys-evict-control-serialization.int.c \
547 test/integration/main-esapi.c test/integration/test-esapi.h
548
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200549test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
550test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
551test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
552test_integration_esys_field_upgrade_int_SOURCES = \
553 test/integration/esys-field-upgrade.int.c \
554 test/integration/main-esapi.c test/integration/test-esapi.h
555
Juergen Repp841eeb42018-04-12 10:51:49 +0200556test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
557test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
558test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
559test_integration_esys_firmware_read_int_SOURCES = \
560 test/integration/esys-firmware-read.int.c \
561 test/integration/main-esapi.c test/integration/test-esapi.h
562
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800563test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100564test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
565test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
566test_integration_esys_get_capability_int_SOURCES = \
567 test/integration/esys-get-capability.int.c \
568 test/integration/main-esapi.c test/integration/test-esapi.h
569
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800570test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100571test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
572test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
573test_integration_esys_get_random_int_SOURCES = \
574 test/integration/esys-get-random.int.c \
575 test/integration/main-esapi.c test/integration/test-esapi.h
576
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200577test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
578test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
579test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
580test_integration_esys_get_time_int_SOURCES = \
581 test/integration/esys-get-time.int.c \
582 test/integration/main-esapi.c test/integration/test-esapi.h
583
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800584test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100585test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
586test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
587test_integration_esys_hashsequencestart_int_SOURCES = \
588 test/integration/esys-hashsequencestart.int.c \
589 test/integration/main-esapi.c test/integration/test-esapi.h
590
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800591test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
592 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100593test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
594test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
595test_integration_esys_hashsequencestart_session_int_SOURCES = \
596 test/integration/esys-hashsequencestart.int.c \
597 test/integration/main-esapi.c test/integration/test-esapi.h
598
Juergen Repp9f394f22018-04-12 10:52:35 +0200599test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
600test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
601test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
602test_integration_esys_hierarchy_control_int_SOURCES = \
603 test/integration/esys-hierarchy-control.int.c \
604 test/integration/main-esapi.c test/integration/test-esapi.h
605
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800606test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100607test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
608test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
609test_integration_esys_hmacsequencestart_int_SOURCES = \
610 test/integration/esys-hmacsequencestart.int.c \
611 test/integration/main-esapi.c test/integration/test-esapi.h
612
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800613test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
614 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100615test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
616test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
617test_integration_esys_hmacsequencestart_session_int_SOURCES = \
618 test/integration/esys-hmacsequencestart.int.c \
619 test/integration/main-esapi.c test/integration/test-esapi.h
620
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800621test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100622test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
623test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
624test_integration_esys_hierarchychangeauth_int_SOURCES = \
625 test/integration/esys-hierarchychangeauth.int.c \
626 test/integration/main-esapi.c test/integration/test-esapi.h
627
Juergen Reppefacad12018-04-12 10:53:12 +0200628test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
629test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
630test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
631test_integration_esys_import_int_SOURCES = \
632 test/integration/esys-import.int.c \
633 test/integration/main-esapi.c test/integration/test-esapi.h
634
Juergen Repp53028832018-04-12 10:53:30 +0200635test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
636test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
637test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
638test_integration_esys_lock_int_SOURCES = \
639 test/integration/esys-lock.int.c \
640 test/integration/main-esapi.c test/integration/test-esapi.h
641
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800642test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100643test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
644test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
645test_integration_esys_make_credential_int_SOURCES = \
646 test/integration/esys-make-credential.int.c \
647 test/integration/main-esapi.c test/integration/test-esapi.h
648
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800649test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
650 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100651test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
652test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
653test_integration_esys_make_credential_session_int_SOURCES = \
654 test/integration/esys-make-credential.int.c \
655 test/integration/main-esapi.c test/integration/test-esapi.h
656
Juergen Repp090bcef2018-04-12 10:53:49 +0200657test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
658test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
659test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
660test_integration_esys_nv_certify_int_SOURCES = \
661 test/integration/esys-nv-certify.int.c \
662 test/integration/main-esapi.c test/integration/test-esapi.h
663
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800664test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100665test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
666test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
667test_integration_esys_nv_ram_counter_int_SOURCES = \
668 test/integration/esys-nv-ram-counter.int.c \
669 test/integration/main-esapi.c test/integration/test-esapi.h
670
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800671test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
672 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100673test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
674test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
675test_integration_esys_nv_ram_counter_session_int_SOURCES = \
676 test/integration/esys-nv-ram-counter.int.c \
677 test/integration/main-esapi.c test/integration/test-esapi.h
678
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800679test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100680test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
681test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
682test_integration_esys_nv_ram_extend_index_int_SOURCES = \
683 test/integration/esys-nv-ram-extend-index.int.c \
684 test/integration/main-esapi.c test/integration/test-esapi.h
685
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800686test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
687 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100688test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
689test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
690test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
691 test/integration/esys-nv-ram-extend-index.int.c \
692 test/integration/main-esapi.c test/integration/test-esapi.h
693
Juergen Repp4f8ad602018-04-12 10:54:45 +0200694test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
695 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
696 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
697test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
698test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
699test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200700 test/integration/esys-nv-ram-ordinary-index.int.c \
701 test/integration/main-esapi.c test/integration/test-esapi.h
702
Juergen Repp4f8ad602018-04-12 10:54:45 +0200703test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
704 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
705 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
706test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
707test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
708test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
709 test/integration/esys-nv-ram-ordinary-index.int.c \
710 test/integration/main-esapi.c test/integration/test-esapi.h
711
712test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
713 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
714 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
715test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
716test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
717test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
718 test/integration/esys-nv-ram-ordinary-index.int.c \
719 test/integration/main-esapi.c test/integration/test-esapi.h
720
721test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
722 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
723 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
724test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
725test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
726test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200727 test/integration/esys-nv-ram-ordinary-index.int.c \
728 test/integration/main-esapi.c test/integration/test-esapi.h
729
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800730test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100731test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
732test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
733test_integration_esys_nv_ram_set_bits_int_SOURCES = \
734 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100735 test/integration/main-esapi.c test/integration/test-esapi.h
736
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800737test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
738 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100739test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
740test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
741test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
742 test/integration/esys-nv-ram-set-bits.int.c \
743 test/integration/main-esapi.c test/integration/test-esapi.h
744
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800745test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100746test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
747test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
748test_integration_esys_object_changeauth_int_SOURCES = \
749 test/integration/esys-object-changeauth.int.c \
750 test/integration/main-esapi.c test/integration/test-esapi.h
751
Juergen Repped818052018-04-12 10:56:38 +0200752test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
753test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
754test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
755test_integration_esys_policy_authorize_int_SOURCES = \
756 test/integration/esys-policy-authorize.int.c \
757 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200758 test/integration/main-esapi.c test/integration/test-esapi.h
759
Juergen Repp897c75d2018-04-12 10:57:26 +0200760test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
761test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
762test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
763test_integration_esys_policy_ticket_int_SOURCES = \
764 test/integration/esys-policy-ticket.int.c \
765 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200766 test/integration/main-esapi.c test/integration/test-esapi.h
767
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800768test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100769test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
770test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
771test_integration_esys_policy_nv_changeauth_int_SOURCES = \
772 test/integration/esys-policy-nv-changeauth.int.c \
773 test/integration/main-esapi.c test/integration/test-esapi.h
774
Juergen Repp4cac2822018-04-12 10:58:39 +0200775test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
776test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
777test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
778test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
779 test/integration/esys-policy-nv-undefine-special.int.c \
780 test/integration/main-esapi.c test/integration/test-esapi.h
781
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800782test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100783test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
784test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
785test_integration_esys_policy_password_int_SOURCES = \
786 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100787 test/integration/main-esapi.c test/integration/test-esapi.h
788
Juergen Repped818052018-04-12 10:56:38 +0200789test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
790test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
791test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
792test_integration_esys_pcr_basic_int_SOURCES = \
793 test/integration/esys-pcr-basic.int.c \
794 test/integration/main-esapi.c test/integration/test-esapi.h
795
Juergen Repp897c75d2018-04-12 10:57:26 +0200796test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
797test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
798test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
799test_integration_esys_pcr_auth_value_int_SOURCES = \
800 test/integration/esys-pcr-auth-value.int.c \
801 test/integration/main-esapi.c test/integration/test-esapi.h
802
Juergen Repp91ed3de2018-04-12 11:01:30 +0200803test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
804test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
805test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
806test_integration_esys_pp_commands_int_SOURCES = \
807 test/integration/esys-pp-commands.int.c \
808 test/integration/main-esapi.c test/integration/test-esapi.h
809
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800810test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100811test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
812test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
813test_integration_esys_quote_int_SOURCES = \
814 test/integration/esys-quote.int.c \
815 test/integration/main-esapi.c test/integration/test-esapi.h
816
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800817test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100818test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
819test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
820test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
821 test/integration/esys-rsa-encrypt-decrypt.int.c \
822 test/integration/main-esapi.c test/integration/test-esapi.h
823
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800824test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100825test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
826test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
827test_integration_esys_save_and_load_context_int_SOURCES = \
828 test/integration/esys-save-and-load-context.int.c \
829 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200830
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200831test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
832test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
833test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
834test_integration_esys_set_algorithm_set_int_SOURCES = \
835 test/integration/esys-set-algorithm-set.int.c \
836 test/integration/main-esapi.c test/integration/test-esapi.h
837
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200838test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
839test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
840test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
841test_integration_esys_stir_random_int_SOURCES = \
842 test/integration/esys-stir-random.int.c \
843 test/integration/main-esapi.c test/integration/test-esapi.h
844
Christian Plappert624423b2018-03-27 14:36:40 +0200845test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
846test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
847test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
848test_integration_esys_unseal_password_auth_int_SOURCES = \
849 test/integration/esys-unseal-password-auth.int.c \
850 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100851endif #ESAPI
852
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800853test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100854test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
855test_integration_policy_template_int_SOURCES = test/integration/main.c \
856 test/integration/policy-template.int.c
857
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800858test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100859test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
860test_integration_create_loaded_int_SOURCES = test/integration/main.c \
861 test/integration/create-loaded.int.c
862
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800863test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100864test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800865test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100866 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800867
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800868test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800869test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800870test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800871 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100872endif #SIMULATOR_BIN