blob: 2d719dfb5246f5827a9bceff669e6fb13c1735a5 [file] [log] [blame]
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01001#;**********************************************************************;
Philip Tricca49635f42018-03-10 19:19:58 -08002# Copyright (c) 2015 - 2018 Intel Corporation
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01003# Copyright (c) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#
9# 1. Redistributions of source code must retain the above copyright notice,
10# this list of conditions and the following disclaimer.
11#
12# 2. Redistributions in binary form must reproduce the above copyright notice,
13# this list of conditions and the following disclaimer in the documentation
14# and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26# THE POSSIBILITY OF SUCH DAMAGE.
27#;**********************************************************************;
28
Philip Triccaee730622018-03-10 16:40:41 -080029TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/src/tss2-mu \
Andreas Fuchsbaeb2be2018-03-29 15:39:50 +020030 -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys \
Andreas Fuchs1c4a8112018-03-29 16:58:07 +020031 -Wno-unused-parameter -Wno-missing-field-initializers
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010032TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil)
33
34# test harness configuration
35TEST_EXTENSIONS = .int
36INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh
37INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN)
38EXTRA_DIST += $(INT_LOG_COMPILER)
39
40check-programs: $(check_PROGRAMS)
41
42check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
43TESTS = $(check_PROGRAMS)
44
Andreas Fuchsa0eda362018-03-28 11:56:42 +020045if SIMULATOR_BIN
46noinst_PROGRAMS += test/helper/tpm_startup
47test_helper_tpm_startup_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
48test_helper_tpm_startup_LDFLAGS = $(TESTS_LDFLAGS)
49test_helper_tpm_startup_LDADD = $(TESTS_LDADD)
50test_helper_tpm_startup_SOURCES = test/helper/tpm_startup.c
Andreas Fuchsa0eda362018-03-28 11:56:42 +020051
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020052noinst_PROGRAMS += test/helper/tpm_transientempty
53test_helper_tpm_transientempty_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
54test_helper_tpm_transientempty_LDFLAGS = $(TESTS_LDFLAGS)
55test_helper_tpm_transientempty_LDADD = $(TESTS_LDADD)
56test_helper_tpm_transientempty_SOURCES = test/helper/tpm_transientempty.c
Philip Tricca216ac492018-03-30 09:21:24 -070057endif #SIMULATOR_BIN
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020058
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010059if UNIT
60TESTS_UNIT = \
61 test/unit/CommonPreparePrologue \
62 test/unit/CopyCommandHeader \
63 test/unit/GetNumHandles \
Philip Tricca88ced722018-03-14 15:24:20 -070064 test/unit/io \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010065 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080066 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010067 test/unit/UINT8-marshal \
68 test/unit/UINT16-marshal \
69 test/unit/UINT32-marshal \
70 test/unit/UINT64-marshal \
71 test/unit/TPMA-marshal \
72 test/unit/TPM2B-marshal \
73 test/unit/TPMS-marshal \
74 test/unit/TPML-marshal \
75 test/unit/TPMT-marshal \
76 test/unit/TPMU-marshal
Juergen Reppd947f132018-03-16 13:15:10 +010077if ESAPI
78TESTS_UNIT += \
Andreas Fuchs88ac7d72018-03-16 13:20:54 +010079 test/unit/esys-context-null \
Andreas Fuchs5d9ce582018-03-21 19:05:47 +010080 test/unit/esys-default-tcti \
Juergen Repp20181512018-03-20 16:14:28 +010081 test/unit/esys-resubmissions \
82 test/unit/esys-sequence-finish
Juergen Reppd947f132018-03-16 13:15:10 +010083endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010084endif #UNIT
85
86if SIMULATOR_BIN
87noinst_LTLIBRARIES += test/integration/libtest_utils.la
88TESTS_INTEGRATION = \
89 test/integration/asymmetric-encrypt-decrypt.int \
90 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
91 test/integration/create-keyedhash-sha1-hmac.int \
92 test/integration/encrypt-decrypt.int \
93 test/integration/encrypt-decrypt-2.int \
94 test/integration/evict-ctrl.int \
95 test/integration/get-random.int \
96 test/integration/hierarchy-change-auth.int \
97 test/integration/abi-version.int \
98 test/integration/pcr-extension.int \
99 test/integration/self-test.int \
100 test/integration/start-auth-session.int \
101 test/integration/sys-initialize.int \
102 test/integration/tpm-properties.int \
103 test/integration/system-api.int \
104 test/integration/policy-template.int \
105 test/integration/create-loaded.int \
106 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800107 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100108 test/tpmclient/tpmclient.int
109if ESAPI
110TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200111 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200112 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200113 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200114 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100115 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200116 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100117 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100118 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200119 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100120 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100121 test/integration/esys-createloaded.int \
122 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-create-password-auth.int \
124 test/integration/esys-create-primary-ecc-hmac.int \
125 test/integration/esys-create-primary-hmac.int \
126 test/integration/esys-create-session-auth.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200127 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200128 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200129 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200130 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200131 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200132 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200133 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100134 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200135 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200136 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100137 test/integration/esys-get-capability.int \
138 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200139 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100140 test/integration/esys-hashsequencestart.int \
141 test/integration/esys-hashsequencestart-session.int \
142 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200143 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100144 test/integration/esys-hmacsequencestart.int \
145 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200146 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200147 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100148 test/integration/esys-make-credential.int \
149 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200150 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100151 test/integration/esys-nv-ram-counter.int \
152 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100153 test/integration/esys-nv-ram-extend-index.int \
154 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200155 test/integration/esys-nv-ram-ordinary-index-rlock.int \
156 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
157 test/integration/esys-nv-ram-ordinary-index-wlock.int \
158 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100159 test/integration/esys-nv-ram-set-bits.int \
160 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100161 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200162 test/integration/esys-pcr-basic.int \
163 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200164 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200165 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200166 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100167 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200168 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100169 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200170 test/integration/esys-pp-commands.int \
171 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100172 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200173 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200174 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200175 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200176 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200177 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200178 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200179 test/integration/esys-tr-fromTpmPublic-nv.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200180 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200181 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200182 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100183endif #ESAPI
184endif #SIMULATOR_BIN
185
186CLEANFILES += \
187 test/integration/*.log \
188 test/tpmclient/*.log \
189 test/unit/*.log
190
191if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800192test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800193test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100194test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800195test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700196 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
197 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100198
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800199test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800200test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800201test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700202test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
203 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
204 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100205
Philip Tricca88ced722018-03-14 15:24:20 -0700206test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700207test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
208test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700209test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800210
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800211test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100212test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800213test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100214test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
215
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800216test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800217test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100218test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
219
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800220test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100221test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800222test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100223test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
224
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800225test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800226test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100227test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
228
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800229test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800230test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100231test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
232
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800233test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800234test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100235test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
236
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800237test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800238test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100239test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
240
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800241test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800242test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100243test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
244
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800245test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800246test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100247test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
248
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800249test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800250test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100251test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
252
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800253test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800254test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100255test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
256
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800257test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800258test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100259test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
260
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800261test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800262test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100263test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100264
265if ESAPI
266test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
267test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
268test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100269test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
270
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100271test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
272test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
273test_unit_esys_default_tcti_LDFLAGS = \
274 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
275 -Wl,--wrap=Tss2_Tcti_Device_Init \
276 -Wl,--wrap=Tss2_Tcti_Mssim_Init
277test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
278 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
279
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100280test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
281test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
282test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
283test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100284
285test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
286test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
287test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
288test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Juergen Reppd947f132018-03-16 13:15:10 +0100289endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100290endif # UNIT
291
292if SIMULATOR_BIN
293test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
294test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
295test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Struk435467e2018-04-04 14:00:50 -0700296 test/tpmclient/DecryptEncrypt.c \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700297 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \
298 test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100299
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200300test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100301test_integration_libtest_utils_la_SOURCES = \
302 test/integration/context-util.c test/integration/context-util.h \
303 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700304 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100305 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700306 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100307
308test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
309test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
310test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
311 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
312
313test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
314test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
315test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
316 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
317 test/integration/main.c
318
319test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
320test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
321test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
322 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
323
324test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
325test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
326test_integration_encrypt_decrypt_int_SOURCES = \
327 test/integration/encrypt-decrypt.int.c test/integration/main.c
328
329test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
330test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
331test_integration_encrypt_decrypt_2_int_SOURCES = \
332 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
333
334test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
335test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
336test_integration_evict_ctrl_int_SOURCES = \
337 test/integration/evict-ctrl.int.c test/integration/main.c
338
339test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
340test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
341test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
342 test/integration/main.c
343
344test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
345test_integration_get_random_int_LDADD = $(TESTS_LDADD)
346test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
347 test/integration/main.c
348
349test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
350test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
351test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
352 test/integration/main.c
353
354test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
355test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
356test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
357 test/integration/main.c
358
359test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
360test_integration_self_test_int_LDADD = $(TESTS_LDADD)
361test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
362 test/integration/main.c
363
364test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
365test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
366test_integration_hierarchy_change_auth_int_SOURCES = \
367 test/integration/hierarchy-change-auth.int.c test/integration/main.c
368
369test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
370test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
371test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
372 test/integration/start-auth-session.int.c
373
374test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
375test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
376test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
377 test/integration/tpm-properties.int.c
378
379test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
380test_integration_system_api_int_LDADD = $(TESTS_LDADD)
381test_integration_system_api_int_SOURCES = test/integration/main.c \
382 test/integration/system-api.int.c
383
384if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200385test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
386test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
387test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
388test_integration_esys_audit_int_SOURCES = \
389 test/integration/esys-audit.int.c \
390 test/integration/main-esapi.c test/integration/test-esapi.h
391
Juergen Repp43966fc2018-04-12 10:44:53 +0200392test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
393test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
394test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
395test_integration_esys_certify_creation_int_SOURCES = \
396 test/integration/esys-certify-creation.int.c \
397 test/integration/main-esapi.c test/integration/test-esapi.h
398
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200399test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
400test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
401test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
402test_integration_esys_certify_int_SOURCES = \
403 test/integration/esys-certify.int.c \
404 test/integration/main-esapi.c test/integration/test-esapi.h
405
Juergen Repp16455702018-04-12 10:45:49 +0200406test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
407test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
408test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
409test_integration_esys_change_eps_int_SOURCES = \
410 test/integration/esys-change-eps.int.c \
411 test/integration/main-esapi.c test/integration/test-esapi.h
412
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800413test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100414test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
415test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
416test_integration_esys_clear_int_SOURCES = \
417 test/integration/esys-clear.int.c \
418 test/integration/main-esapi.c test/integration/test-esapi.h
419
Juergen Repp658cd7d2018-04-12 10:46:25 +0200420test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
421test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
422test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
423test_integration_esys_clear_control_int_SOURCES = \
424 test/integration/esys-clear-control.int.c \
425 test/integration/main-esapi.c test/integration/test-esapi.h
426
427test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100428test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
429test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
430test_integration_esys_clear_session_int_SOURCES = \
431 test/integration/esys-clear.int.c \
432 test/integration/main-esapi.c test/integration/test-esapi.h
433
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800434test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100435test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
436test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
437test_integration_esys_clockset_int_SOURCES = \
438 test/integration/esys-clockset.int.c \
439 test/integration/main-esapi.c test/integration/test-esapi.h
440
Juergen Repp0c2d8532018-04-12 10:46:57 +0200441test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
442test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
443test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
444test_integration_esys_commit_int_SOURCES = \
445 test/integration/esys-commit.int.c \
446 test/integration/main-esapi.c test/integration/test-esapi.h
447
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800448test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100449test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
450test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
451test_integration_esys_create_fail_int_SOURCES = \
452 test/integration/esys-create-fail.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_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100456test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
457test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
458test_integration_esys_createloaded_int_SOURCES = \
459 test/integration/esys-createloaded.int.c \
460 test/integration/main-esapi.c test/integration/test-esapi.h
461
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800462test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
463 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100464test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
465test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
466test_integration_esys_createloaded_session_int_SOURCES = \
467 test/integration/esys-createloaded.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_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100471test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
472test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
473test_integration_esys_create_password_auth_int_SOURCES = \
474 test/integration/esys-create-password-auth.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_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100478test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
479test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
480test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
481 test/integration/esys-create-primary-hmac.int.c \
482 test/integration/main-esapi.c test/integration/test-esapi.h
483
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800484test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100485test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
486test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
487test_integration_esys_create_primary_hmac_int_SOURCES = \
488 test/integration/esys-create-primary-hmac.int.c \
489 test/integration/main-esapi.c test/integration/test-esapi.h
490
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200491test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
492 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100493test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
494test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
495test_integration_esys_create_session_auth_int_SOURCES = \
496 test/integration/esys-create-session-auth.int.c \
497 test/integration/main-esapi.c test/integration/test-esapi.h
498
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200499test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
500 -DTEST_XOR_OBFUSCATION
501test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
502test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
503test_integration_esys_create_session_auth_xor_int_SOURCES = \
504 test/integration/esys-create-session-auth.int.c \
505 test/integration/main-esapi.c test/integration/test-esapi.h
506
Juergen Reppf477ded2018-03-27 14:40:35 +0200507test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
508test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
509test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
510test_integration_esys_duplicate_int_SOURCES = \
511 test/integration/esys-duplicate.int.c \
512 test/integration/main-esapi.c test/integration/test-esapi.h
513
Juergen Repp0d884d52018-04-12 10:48:07 +0200514test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
515test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
516test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
517test_integration_esys_ecc_parameters_int_SOURCES = \
518 test/integration/esys-ecc-parameters.int.c \
519 test/integration/main-esapi.c test/integration/test-esapi.h
520
Juergen Repp472840f2018-04-12 10:48:38 +0200521test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
522test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
523test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
524test_integration_esys_ecdh_keygen_int_SOURCES = \
525 test/integration/esys-ecdh-keygen.int.c \
526 test/integration/main-esapi.c test/integration/test-esapi.h
527
Juergen Repp73461b42018-04-12 10:49:10 +0200528test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
529test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
530test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
531test_integration_esys_ecdh_zgen_int_SOURCES = \
532 test/integration/esys-ecdh-zgen.int.c \
533 test/integration/main-esapi.c test/integration/test-esapi.h
534
Juergen Reppcd101252018-04-12 10:50:21 +0200535test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
536test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
537test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
538test_integration_esys_encrypt_decrypt_int_SOURCES = \
539 test/integration/esys-encrypt-decrypt.int.c \
540 test/integration/main-esapi.c test/integration/test-esapi.h
541
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200542test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
543test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
544test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
545test_integration_esys_event_sequence_complete_int_SOURCES = \
546 test/integration/esys-event-sequence-complete.int.c \
547 test/integration/main-esapi.c test/integration/test-esapi.h
548
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800549test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100550test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
551test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
552test_integration_esys_evict_control_serialization_int_SOURCES = \
553 test/integration/esys-evict-control-serialization.int.c \
554 test/integration/main-esapi.c test/integration/test-esapi.h
555
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200556test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
557test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
558test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
559test_integration_esys_field_upgrade_int_SOURCES = \
560 test/integration/esys-field-upgrade.int.c \
561 test/integration/main-esapi.c test/integration/test-esapi.h
562
Juergen Repp841eeb42018-04-12 10:51:49 +0200563test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
564test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
565test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
566test_integration_esys_firmware_read_int_SOURCES = \
567 test/integration/esys-firmware-read.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_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100571test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
572test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
573test_integration_esys_get_capability_int_SOURCES = \
574 test/integration/esys-get-capability.int.c \
575 test/integration/main-esapi.c test/integration/test-esapi.h
576
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800577test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100578test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
579test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
580test_integration_esys_get_random_int_SOURCES = \
581 test/integration/esys-get-random.int.c \
582 test/integration/main-esapi.c test/integration/test-esapi.h
583
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200584test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
585test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
586test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
587test_integration_esys_get_time_int_SOURCES = \
588 test/integration/esys-get-time.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_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100592test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
593test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
594test_integration_esys_hashsequencestart_int_SOURCES = \
595 test/integration/esys-hashsequencestart.int.c \
596 test/integration/main-esapi.c test/integration/test-esapi.h
597
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800598test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
599 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100600test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
601test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
602test_integration_esys_hashsequencestart_session_int_SOURCES = \
603 test/integration/esys-hashsequencestart.int.c \
604 test/integration/main-esapi.c test/integration/test-esapi.h
605
Juergen Repp9f394f22018-04-12 10:52:35 +0200606test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
607test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
608test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
609test_integration_esys_hierarchy_control_int_SOURCES = \
610 test/integration/esys-hierarchy-control.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_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100614test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
615test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
616test_integration_esys_hmacsequencestart_int_SOURCES = \
617 test/integration/esys-hmacsequencestart.int.c \
618 test/integration/main-esapi.c test/integration/test-esapi.h
619
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800620test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
621 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100622test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
623test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
624test_integration_esys_hmacsequencestart_session_int_SOURCES = \
625 test/integration/esys-hmacsequencestart.int.c \
626 test/integration/main-esapi.c test/integration/test-esapi.h
627
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800628test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100629test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
630test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
631test_integration_esys_hierarchychangeauth_int_SOURCES = \
632 test/integration/esys-hierarchychangeauth.int.c \
633 test/integration/main-esapi.c test/integration/test-esapi.h
634
Juergen Reppefacad12018-04-12 10:53:12 +0200635test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
636test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
637test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
638test_integration_esys_import_int_SOURCES = \
639 test/integration/esys-import.int.c \
640 test/integration/main-esapi.c test/integration/test-esapi.h
641
Juergen Repp53028832018-04-12 10:53:30 +0200642test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
643test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
644test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
645test_integration_esys_lock_int_SOURCES = \
646 test/integration/esys-lock.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_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100650test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
651test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
652test_integration_esys_make_credential_int_SOURCES = \
653 test/integration/esys-make-credential.int.c \
654 test/integration/main-esapi.c test/integration/test-esapi.h
655
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800656test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
657 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100658test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
659test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
660test_integration_esys_make_credential_session_int_SOURCES = \
661 test/integration/esys-make-credential.int.c \
662 test/integration/main-esapi.c test/integration/test-esapi.h
663
Juergen Repp090bcef2018-04-12 10:53:49 +0200664test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
665test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
666test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
667test_integration_esys_nv_certify_int_SOURCES = \
668 test/integration/esys-nv-certify.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_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100672test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
673test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
674test_integration_esys_nv_ram_counter_int_SOURCES = \
675 test/integration/esys-nv-ram-counter.int.c \
676 test/integration/main-esapi.c test/integration/test-esapi.h
677
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800678test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
679 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100680test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
681test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
682test_integration_esys_nv_ram_counter_session_int_SOURCES = \
683 test/integration/esys-nv-ram-counter.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_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100687test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
688test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
689test_integration_esys_nv_ram_extend_index_int_SOURCES = \
690 test/integration/esys-nv-ram-extend-index.int.c \
691 test/integration/main-esapi.c test/integration/test-esapi.h
692
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800693test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
694 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100695test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
696test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
697test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
698 test/integration/esys-nv-ram-extend-index.int.c \
699 test/integration/main-esapi.c test/integration/test-esapi.h
700
Juergen Repp4f8ad602018-04-12 10:54:45 +0200701test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
702 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
703 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
704test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
705test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
706test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200707 test/integration/esys-nv-ram-ordinary-index.int.c \
708 test/integration/main-esapi.c test/integration/test-esapi.h
709
Juergen Repp4f8ad602018-04-12 10:54:45 +0200710test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
711 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
712 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
713test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
714test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
715test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
716 test/integration/esys-nv-ram-ordinary-index.int.c \
717 test/integration/main-esapi.c test/integration/test-esapi.h
718
719test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
720 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
721 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
722test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
723test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
724test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
725 test/integration/esys-nv-ram-ordinary-index.int.c \
726 test/integration/main-esapi.c test/integration/test-esapi.h
727
728test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
729 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
730 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
731test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
732test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
733test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200734 test/integration/esys-nv-ram-ordinary-index.int.c \
735 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_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100738test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
739test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
740test_integration_esys_nv_ram_set_bits_int_SOURCES = \
741 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100742 test/integration/main-esapi.c test/integration/test-esapi.h
743
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800744test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
745 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100746test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
747test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
748test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
749 test/integration/esys-nv-ram-set-bits.int.c \
750 test/integration/main-esapi.c test/integration/test-esapi.h
751
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800752test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100753test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
754test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
755test_integration_esys_object_changeauth_int_SOURCES = \
756 test/integration/esys-object-changeauth.int.c \
757 test/integration/main-esapi.c test/integration/test-esapi.h
758
Juergen Repped818052018-04-12 10:56:38 +0200759test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
760test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
761test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
762test_integration_esys_policy_authorize_int_SOURCES = \
763 test/integration/esys-policy-authorize.int.c \
764 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200765 test/integration/main-esapi.c test/integration/test-esapi.h
766
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200767test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
768test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
769test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
770test_integration_esys_policy_regression_int_SOURCES = \
771 test/integration/esys-policy-regression.int.c \
772 test/integration/main-esapi.c test/integration/test-esapi.h
773
Juergen Repp897c75d2018-04-12 10:57:26 +0200774test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
775test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
776test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
777test_integration_esys_policy_ticket_int_SOURCES = \
778 test/integration/esys-policy-ticket.int.c \
779 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200780 test/integration/main-esapi.c test/integration/test-esapi.h
781
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800782test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100783test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
784test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
785test_integration_esys_policy_nv_changeauth_int_SOURCES = \
786 test/integration/esys-policy-nv-changeauth.int.c \
787 test/integration/main-esapi.c test/integration/test-esapi.h
788
Juergen Repp4cac2822018-04-12 10:58:39 +0200789test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
790test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
791test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
792test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
793 test/integration/esys-policy-nv-undefine-special.int.c \
794 test/integration/main-esapi.c test/integration/test-esapi.h
795
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800796test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100797test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
798test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
799test_integration_esys_policy_password_int_SOURCES = \
800 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100801 test/integration/main-esapi.c test/integration/test-esapi.h
802
Juergen Repped818052018-04-12 10:56:38 +0200803test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
804test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
805test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
806test_integration_esys_pcr_basic_int_SOURCES = \
807 test/integration/esys-pcr-basic.int.c \
808 test/integration/main-esapi.c test/integration/test-esapi.h
809
Juergen Repp897c75d2018-04-12 10:57:26 +0200810test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
811test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
812test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
813test_integration_esys_pcr_auth_value_int_SOURCES = \
814 test/integration/esys-pcr-auth-value.int.c \
815 test/integration/main-esapi.c test/integration/test-esapi.h
816
Juergen Repp91ed3de2018-04-12 11:01:30 +0200817test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
818test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
819test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
820test_integration_esys_pp_commands_int_SOURCES = \
821 test/integration/esys-pp-commands.int.c \
822 test/integration/main-esapi.c test/integration/test-esapi.h
823
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800824test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100825test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
826test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
827test_integration_esys_quote_int_SOURCES = \
828 test/integration/esys-quote.int.c \
829 test/integration/main-esapi.c test/integration/test-esapi.h
830
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800831test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100832test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
833test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
834test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
835 test/integration/esys-rsa-encrypt-decrypt.int.c \
836 test/integration/main-esapi.c test/integration/test-esapi.h
837
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800838test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100839test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
840test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
841test_integration_esys_save_and_load_context_int_SOURCES = \
842 test/integration/esys-save-and-load-context.int.c \
843 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200844
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200845test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
846test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
847test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
848test_integration_esys_set_algorithm_set_int_SOURCES = \
849 test/integration/esys-set-algorithm-set.int.c \
850 test/integration/main-esapi.c test/integration/test-esapi.h
851
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200852test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
853test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
854test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
855test_integration_esys_stir_random_int_SOURCES = \
856 test/integration/esys-stir-random.int.c \
857 test/integration/main-esapi.c test/integration/test-esapi.h
858
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200859test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
860test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
861test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
862test_integration_esys_testparms_int_SOURCES = \
863 test/integration/esys-testparms.int.c \
864 test/integration/main-esapi.c test/integration/test-esapi.h
865
Juergen Repp24f4acb2018-04-12 11:04:27 +0200866test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
867test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
868test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
869test_integration_esys_tpm_tests_int_SOURCES = \
870 test/integration/esys-tpm-tests.int.c \
871 test/integration/main-esapi.c test/integration/test-esapi.h
872
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200873test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
874test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
875test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
876test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
877 test/integration/esys-tr-fromTpmPublic-key.int.c \
878 test/integration/main-esapi.c test/integration/test-esapi.h
879
Andreas Fuchs95809e22018-04-12 12:21:06 +0200880test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
881test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
882test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
883test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
884 test/integration/esys-tr-fromTpmPublic-nv.int.c \
885 test/integration/main-esapi.c test/integration/test-esapi.h
886
Christian Plappert624423b2018-03-27 14:36:40 +0200887test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
888test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
889test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
890test_integration_esys_unseal_password_auth_int_SOURCES = \
891 test/integration/esys-unseal-password-auth.int.c \
892 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200893
894test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
895test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
896test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
897test_integration_esys_verify_signature_int_SOURCES = \
898 test/integration/esys-verify-signature.int.c \
899 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200900
901test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
902test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
903test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
904test_integration_esys_zgen_2phase_int_SOURCES = \
905 test/integration/esys-zgen-2phase.int.c \
906 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100907endif #ESAPI
908
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800909test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100910test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
911test_integration_policy_template_int_SOURCES = test/integration/main.c \
912 test/integration/policy-template.int.c
913
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800914test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100915test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
916test_integration_create_loaded_int_SOURCES = test/integration/main.c \
917 test/integration/create-loaded.int.c
918
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800919test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100920test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800921test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100922 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800923
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800924test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800925test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800926test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800927 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100928endif #SIMULATOR_BIN