blob: 7ffc37bf82e96e1559ec7d6cd6af86706718d8e2 [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 Reppcd6c1a12018-04-12 11:04:06 +0200175 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200176 test/integration/esys-tpm-tests.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200177 test/integration/esys-unseal-password-auth.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100178endif #ESAPI
179endif #SIMULATOR_BIN
180
181CLEANFILES += \
182 test/integration/*.log \
183 test/tpmclient/*.log \
184 test/unit/*.log
185
186if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800187test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800188test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100189test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800190test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700191 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
192 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100193
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800194test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800195test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800196test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700197test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
198 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
199 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100200
Philip Tricca88ced722018-03-14 15:24:20 -0700201test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700202test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
203test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700204test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800205
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800206test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100207test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800208test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100209test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
210
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800211test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800212test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100213test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
214
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800215test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100216test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800217test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100218test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
219
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800220test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800221test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100222test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
223
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800224test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800225test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100226test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
227
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800228test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800229test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100230test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
231
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800232test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800233test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100234test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
235
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800236test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800237test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100238test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
239
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800240test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800241test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100242test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
243
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800244test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800245test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100246test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
247
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800248test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800249test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100250test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
251
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800252test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800253test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100254test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
255
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800256test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800257test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100258test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100259
260if ESAPI
261test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
262test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
263test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100264test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
265
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100266test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
267test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
268test_unit_esys_default_tcti_LDFLAGS = \
269 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
270 -Wl,--wrap=Tss2_Tcti_Device_Init \
271 -Wl,--wrap=Tss2_Tcti_Mssim_Init
272test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
273 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
274
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100275test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
276test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
277test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
278test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100279
280test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
281test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
282test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
283test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Juergen Reppd947f132018-03-16 13:15:10 +0100284endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100285endif # UNIT
286
287if SIMULATOR_BIN
288test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
289test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
290test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Struk435467e2018-04-04 14:00:50 -0700291 test/tpmclient/DecryptEncrypt.c \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700292 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \
293 test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100294
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200295test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100296test_integration_libtest_utils_la_SOURCES = \
297 test/integration/context-util.c test/integration/context-util.h \
298 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700299 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100300 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700301 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100302
303test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
304test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
305test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
306 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
307
308test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
309test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
310test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
311 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
312 test/integration/main.c
313
314test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
315test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
316test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
317 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
318
319test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
320test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
321test_integration_encrypt_decrypt_int_SOURCES = \
322 test/integration/encrypt-decrypt.int.c test/integration/main.c
323
324test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
325test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
326test_integration_encrypt_decrypt_2_int_SOURCES = \
327 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
328
329test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
330test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
331test_integration_evict_ctrl_int_SOURCES = \
332 test/integration/evict-ctrl.int.c test/integration/main.c
333
334test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
335test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
336test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
337 test/integration/main.c
338
339test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
340test_integration_get_random_int_LDADD = $(TESTS_LDADD)
341test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
342 test/integration/main.c
343
344test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
345test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
346test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
347 test/integration/main.c
348
349test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
350test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
351test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
352 test/integration/main.c
353
354test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
355test_integration_self_test_int_LDADD = $(TESTS_LDADD)
356test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
357 test/integration/main.c
358
359test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
360test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
361test_integration_hierarchy_change_auth_int_SOURCES = \
362 test/integration/hierarchy-change-auth.int.c test/integration/main.c
363
364test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
365test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
366test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
367 test/integration/start-auth-session.int.c
368
369test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
370test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
371test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
372 test/integration/tpm-properties.int.c
373
374test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
375test_integration_system_api_int_LDADD = $(TESTS_LDADD)
376test_integration_system_api_int_SOURCES = test/integration/main.c \
377 test/integration/system-api.int.c
378
379if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200380test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
381test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
382test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
383test_integration_esys_audit_int_SOURCES = \
384 test/integration/esys-audit.int.c \
385 test/integration/main-esapi.c test/integration/test-esapi.h
386
Juergen Repp43966fc2018-04-12 10:44:53 +0200387test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
388test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
389test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
390test_integration_esys_certify_creation_int_SOURCES = \
391 test/integration/esys-certify-creation.int.c \
392 test/integration/main-esapi.c test/integration/test-esapi.h
393
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200394test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
395test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
396test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
397test_integration_esys_certify_int_SOURCES = \
398 test/integration/esys-certify.int.c \
399 test/integration/main-esapi.c test/integration/test-esapi.h
400
Juergen Repp16455702018-04-12 10:45:49 +0200401test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
402test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
403test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
404test_integration_esys_change_eps_int_SOURCES = \
405 test/integration/esys-change-eps.int.c \
406 test/integration/main-esapi.c test/integration/test-esapi.h
407
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800408test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100409test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
410test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
411test_integration_esys_clear_int_SOURCES = \
412 test/integration/esys-clear.int.c \
413 test/integration/main-esapi.c test/integration/test-esapi.h
414
Juergen Repp658cd7d2018-04-12 10:46:25 +0200415test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
416test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
417test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
418test_integration_esys_clear_control_int_SOURCES = \
419 test/integration/esys-clear-control.int.c \
420 test/integration/main-esapi.c test/integration/test-esapi.h
421
422test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100423test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
424test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
425test_integration_esys_clear_session_int_SOURCES = \
426 test/integration/esys-clear.int.c \
427 test/integration/main-esapi.c test/integration/test-esapi.h
428
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800429test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100430test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
431test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
432test_integration_esys_clockset_int_SOURCES = \
433 test/integration/esys-clockset.int.c \
434 test/integration/main-esapi.c test/integration/test-esapi.h
435
Juergen Repp0c2d8532018-04-12 10:46:57 +0200436test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
437test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
438test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
439test_integration_esys_commit_int_SOURCES = \
440 test/integration/esys-commit.int.c \
441 test/integration/main-esapi.c test/integration/test-esapi.h
442
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800443test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100444test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
445test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
446test_integration_esys_create_fail_int_SOURCES = \
447 test/integration/esys-create-fail.int.c \
448 test/integration/main-esapi.c test/integration/test-esapi.h
449
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800450test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100451test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
452test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
453test_integration_esys_createloaded_int_SOURCES = \
454 test/integration/esys-createloaded.int.c \
455 test/integration/main-esapi.c test/integration/test-esapi.h
456
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800457test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
458 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100459test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
460test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
461test_integration_esys_createloaded_session_int_SOURCES = \
462 test/integration/esys-createloaded.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_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100466test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
467test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
468test_integration_esys_create_password_auth_int_SOURCES = \
469 test/integration/esys-create-password-auth.int.c \
470 test/integration/main-esapi.c test/integration/test-esapi.h
471
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800472test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100473test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
474test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
475test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
476 test/integration/esys-create-primary-hmac.int.c \
477 test/integration/main-esapi.c test/integration/test-esapi.h
478
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800479test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100480test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
481test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
482test_integration_esys_create_primary_hmac_int_SOURCES = \
483 test/integration/esys-create-primary-hmac.int.c \
484 test/integration/main-esapi.c test/integration/test-esapi.h
485
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200486test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
487 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100488test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
489test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
490test_integration_esys_create_session_auth_int_SOURCES = \
491 test/integration/esys-create-session-auth.int.c \
492 test/integration/main-esapi.c test/integration/test-esapi.h
493
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200494test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
495 -DTEST_XOR_OBFUSCATION
496test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
497test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
498test_integration_esys_create_session_auth_xor_int_SOURCES = \
499 test/integration/esys-create-session-auth.int.c \
500 test/integration/main-esapi.c test/integration/test-esapi.h
501
Juergen Reppf477ded2018-03-27 14:40:35 +0200502test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
503test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
504test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
505test_integration_esys_duplicate_int_SOURCES = \
506 test/integration/esys-duplicate.int.c \
507 test/integration/main-esapi.c test/integration/test-esapi.h
508
Juergen Repp0d884d52018-04-12 10:48:07 +0200509test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
510test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
511test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
512test_integration_esys_ecc_parameters_int_SOURCES = \
513 test/integration/esys-ecc-parameters.int.c \
514 test/integration/main-esapi.c test/integration/test-esapi.h
515
Juergen Repp472840f2018-04-12 10:48:38 +0200516test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
517test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
518test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
519test_integration_esys_ecdh_keygen_int_SOURCES = \
520 test/integration/esys-ecdh-keygen.int.c \
521 test/integration/main-esapi.c test/integration/test-esapi.h
522
Juergen Repp73461b42018-04-12 10:49:10 +0200523test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
524test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
525test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
526test_integration_esys_ecdh_zgen_int_SOURCES = \
527 test/integration/esys-ecdh-zgen.int.c \
528 test/integration/main-esapi.c test/integration/test-esapi.h
529
Juergen Reppcd101252018-04-12 10:50:21 +0200530test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
531test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
532test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
533test_integration_esys_encrypt_decrypt_int_SOURCES = \
534 test/integration/esys-encrypt-decrypt.int.c \
535 test/integration/main-esapi.c test/integration/test-esapi.h
536
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200537test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
538test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
539test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
540test_integration_esys_event_sequence_complete_int_SOURCES = \
541 test/integration/esys-event-sequence-complete.int.c \
542 test/integration/main-esapi.c test/integration/test-esapi.h
543
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800544test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100545test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
546test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
547test_integration_esys_evict_control_serialization_int_SOURCES = \
548 test/integration/esys-evict-control-serialization.int.c \
549 test/integration/main-esapi.c test/integration/test-esapi.h
550
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200551test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
552test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
553test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
554test_integration_esys_field_upgrade_int_SOURCES = \
555 test/integration/esys-field-upgrade.int.c \
556 test/integration/main-esapi.c test/integration/test-esapi.h
557
Juergen Repp841eeb42018-04-12 10:51:49 +0200558test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
559test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
560test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
561test_integration_esys_firmware_read_int_SOURCES = \
562 test/integration/esys-firmware-read.int.c \
563 test/integration/main-esapi.c test/integration/test-esapi.h
564
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800565test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100566test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
567test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
568test_integration_esys_get_capability_int_SOURCES = \
569 test/integration/esys-get-capability.int.c \
570 test/integration/main-esapi.c test/integration/test-esapi.h
571
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800572test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100573test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
574test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
575test_integration_esys_get_random_int_SOURCES = \
576 test/integration/esys-get-random.int.c \
577 test/integration/main-esapi.c test/integration/test-esapi.h
578
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200579test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
580test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
581test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
582test_integration_esys_get_time_int_SOURCES = \
583 test/integration/esys-get-time.int.c \
584 test/integration/main-esapi.c test/integration/test-esapi.h
585
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800586test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100587test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
588test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
589test_integration_esys_hashsequencestart_int_SOURCES = \
590 test/integration/esys-hashsequencestart.int.c \
591 test/integration/main-esapi.c test/integration/test-esapi.h
592
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800593test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
594 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100595test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
596test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
597test_integration_esys_hashsequencestart_session_int_SOURCES = \
598 test/integration/esys-hashsequencestart.int.c \
599 test/integration/main-esapi.c test/integration/test-esapi.h
600
Juergen Repp9f394f22018-04-12 10:52:35 +0200601test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
602test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
603test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
604test_integration_esys_hierarchy_control_int_SOURCES = \
605 test/integration/esys-hierarchy-control.int.c \
606 test/integration/main-esapi.c test/integration/test-esapi.h
607
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800608test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100609test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
610test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
611test_integration_esys_hmacsequencestart_int_SOURCES = \
612 test/integration/esys-hmacsequencestart.int.c \
613 test/integration/main-esapi.c test/integration/test-esapi.h
614
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800615test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
616 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100617test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
618test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
619test_integration_esys_hmacsequencestart_session_int_SOURCES = \
620 test/integration/esys-hmacsequencestart.int.c \
621 test/integration/main-esapi.c test/integration/test-esapi.h
622
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800623test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100624test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
625test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
626test_integration_esys_hierarchychangeauth_int_SOURCES = \
627 test/integration/esys-hierarchychangeauth.int.c \
628 test/integration/main-esapi.c test/integration/test-esapi.h
629
Juergen Reppefacad12018-04-12 10:53:12 +0200630test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
631test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
632test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
633test_integration_esys_import_int_SOURCES = \
634 test/integration/esys-import.int.c \
635 test/integration/main-esapi.c test/integration/test-esapi.h
636
Juergen Repp53028832018-04-12 10:53:30 +0200637test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
638test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
639test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
640test_integration_esys_lock_int_SOURCES = \
641 test/integration/esys-lock.int.c \
642 test/integration/main-esapi.c test/integration/test-esapi.h
643
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800644test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100645test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
646test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
647test_integration_esys_make_credential_int_SOURCES = \
648 test/integration/esys-make-credential.int.c \
649 test/integration/main-esapi.c test/integration/test-esapi.h
650
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800651test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
652 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100653test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
654test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
655test_integration_esys_make_credential_session_int_SOURCES = \
656 test/integration/esys-make-credential.int.c \
657 test/integration/main-esapi.c test/integration/test-esapi.h
658
Juergen Repp090bcef2018-04-12 10:53:49 +0200659test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
660test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
661test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
662test_integration_esys_nv_certify_int_SOURCES = \
663 test/integration/esys-nv-certify.int.c \
664 test/integration/main-esapi.c test/integration/test-esapi.h
665
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800666test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100667test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
668test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
669test_integration_esys_nv_ram_counter_int_SOURCES = \
670 test/integration/esys-nv-ram-counter.int.c \
671 test/integration/main-esapi.c test/integration/test-esapi.h
672
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800673test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
674 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100675test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
676test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
677test_integration_esys_nv_ram_counter_session_int_SOURCES = \
678 test/integration/esys-nv-ram-counter.int.c \
679 test/integration/main-esapi.c test/integration/test-esapi.h
680
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800681test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100682test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
683test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
684test_integration_esys_nv_ram_extend_index_int_SOURCES = \
685 test/integration/esys-nv-ram-extend-index.int.c \
686 test/integration/main-esapi.c test/integration/test-esapi.h
687
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800688test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
689 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100690test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
691test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
692test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
693 test/integration/esys-nv-ram-extend-index.int.c \
694 test/integration/main-esapi.c test/integration/test-esapi.h
695
Juergen Repp4f8ad602018-04-12 10:54:45 +0200696test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
697 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
698 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
699test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
700test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
701test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200702 test/integration/esys-nv-ram-ordinary-index.int.c \
703 test/integration/main-esapi.c test/integration/test-esapi.h
704
Juergen Repp4f8ad602018-04-12 10:54:45 +0200705test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
706 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
707 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
708test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
709test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
710test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
711 test/integration/esys-nv-ram-ordinary-index.int.c \
712 test/integration/main-esapi.c test/integration/test-esapi.h
713
714test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
715 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
716 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
717test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
718test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
719test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
720 test/integration/esys-nv-ram-ordinary-index.int.c \
721 test/integration/main-esapi.c test/integration/test-esapi.h
722
723test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
724 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
725 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
726test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
727test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
728test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200729 test/integration/esys-nv-ram-ordinary-index.int.c \
730 test/integration/main-esapi.c test/integration/test-esapi.h
731
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800732test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100733test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
734test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
735test_integration_esys_nv_ram_set_bits_int_SOURCES = \
736 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100737 test/integration/main-esapi.c test/integration/test-esapi.h
738
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800739test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
740 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100741test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
742test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
743test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
744 test/integration/esys-nv-ram-set-bits.int.c \
745 test/integration/main-esapi.c test/integration/test-esapi.h
746
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800747test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100748test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
749test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
750test_integration_esys_object_changeauth_int_SOURCES = \
751 test/integration/esys-object-changeauth.int.c \
752 test/integration/main-esapi.c test/integration/test-esapi.h
753
Juergen Repped818052018-04-12 10:56:38 +0200754test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
755test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
756test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
757test_integration_esys_policy_authorize_int_SOURCES = \
758 test/integration/esys-policy-authorize.int.c \
759 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200760 test/integration/main-esapi.c test/integration/test-esapi.h
761
Juergen Repp897c75d2018-04-12 10:57:26 +0200762test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
763test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
764test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
765test_integration_esys_policy_ticket_int_SOURCES = \
766 test/integration/esys-policy-ticket.int.c \
767 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200768 test/integration/main-esapi.c test/integration/test-esapi.h
769
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800770test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100771test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
772test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
773test_integration_esys_policy_nv_changeauth_int_SOURCES = \
774 test/integration/esys-policy-nv-changeauth.int.c \
775 test/integration/main-esapi.c test/integration/test-esapi.h
776
Juergen Repp4cac2822018-04-12 10:58:39 +0200777test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
778test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
779test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
780test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
781 test/integration/esys-policy-nv-undefine-special.int.c \
782 test/integration/main-esapi.c test/integration/test-esapi.h
783
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800784test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100785test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
786test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
787test_integration_esys_policy_password_int_SOURCES = \
788 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100789 test/integration/main-esapi.c test/integration/test-esapi.h
790
Juergen Repped818052018-04-12 10:56:38 +0200791test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
792test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
793test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
794test_integration_esys_pcr_basic_int_SOURCES = \
795 test/integration/esys-pcr-basic.int.c \
796 test/integration/main-esapi.c test/integration/test-esapi.h
797
Juergen Repp897c75d2018-04-12 10:57:26 +0200798test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
799test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
800test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
801test_integration_esys_pcr_auth_value_int_SOURCES = \
802 test/integration/esys-pcr-auth-value.int.c \
803 test/integration/main-esapi.c test/integration/test-esapi.h
804
Juergen Repp91ed3de2018-04-12 11:01:30 +0200805test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
806test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
807test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
808test_integration_esys_pp_commands_int_SOURCES = \
809 test/integration/esys-pp-commands.int.c \
810 test/integration/main-esapi.c test/integration/test-esapi.h
811
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800812test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100813test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
814test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
815test_integration_esys_quote_int_SOURCES = \
816 test/integration/esys-quote.int.c \
817 test/integration/main-esapi.c test/integration/test-esapi.h
818
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800819test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100820test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
821test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
822test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
823 test/integration/esys-rsa-encrypt-decrypt.int.c \
824 test/integration/main-esapi.c test/integration/test-esapi.h
825
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800826test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100827test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
828test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
829test_integration_esys_save_and_load_context_int_SOURCES = \
830 test/integration/esys-save-and-load-context.int.c \
831 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200832
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200833test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
834test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
835test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
836test_integration_esys_set_algorithm_set_int_SOURCES = \
837 test/integration/esys-set-algorithm-set.int.c \
838 test/integration/main-esapi.c test/integration/test-esapi.h
839
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200840test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
841test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
842test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
843test_integration_esys_stir_random_int_SOURCES = \
844 test/integration/esys-stir-random.int.c \
845 test/integration/main-esapi.c test/integration/test-esapi.h
846
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200847test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
848test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
849test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
850test_integration_esys_testparms_int_SOURCES = \
851 test/integration/esys-testparms.int.c \
852 test/integration/main-esapi.c test/integration/test-esapi.h
853
Juergen Repp24f4acb2018-04-12 11:04:27 +0200854test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
855test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
856test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
857test_integration_esys_tpm_tests_int_SOURCES = \
858 test/integration/esys-tpm-tests.int.c \
859 test/integration/main-esapi.c test/integration/test-esapi.h
860
Christian Plappert624423b2018-03-27 14:36:40 +0200861test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
862test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
863test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
864test_integration_esys_unseal_password_auth_int_SOURCES = \
865 test/integration/esys-unseal-password-auth.int.c \
866 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100867endif #ESAPI
868
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800869test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100870test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
871test_integration_policy_template_int_SOURCES = test/integration/main.c \
872 test/integration/policy-template.int.c
873
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800874test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100875test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
876test_integration_create_loaded_int_SOURCES = test/integration/main.c \
877 test/integration/create-loaded.int.c
878
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800879test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100880test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800881test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100882 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800883
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800884test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800885test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800886test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800887 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100888endif #SIMULATOR_BIN