blob: 8298c9434a21b4aa7e7cecf723de5221ea53255a [file] [log] [blame]
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01001#;**********************************************************************;
Philip Tricca49635f42018-03-10 19:19:58 -08002# Copyright (c) 2015 - 2018 Intel Corporation
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01003# Copyright (c) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#
9# 1. Redistributions of source code must retain the above copyright notice,
10# this list of conditions and the following disclaimer.
11#
12# 2. Redistributions in binary form must reproduce the above copyright notice,
13# this list of conditions and the following disclaimer in the documentation
14# and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26# THE POSSIBILITY OF SUCH DAMAGE.
27#;**********************************************************************;
28
Philip Triccaee730622018-03-10 16:40:41 -080029TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/src/tss2-mu \
Andreas Fuchsbaeb2be2018-03-29 15:39:50 +020030 -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys \
Andreas Fuchs1c4a8112018-03-29 16:58:07 +020031 -Wno-unused-parameter -Wno-missing-field-initializers
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010032TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil)
33
34# test harness configuration
35TEST_EXTENSIONS = .int
36INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh
37INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN)
38EXTRA_DIST += $(INT_LOG_COMPILER)
39
40check-programs: $(check_PROGRAMS)
41
42check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
43TESTS = $(check_PROGRAMS)
44
Andreas Fuchsa0eda362018-03-28 11:56:42 +020045if SIMULATOR_BIN
46noinst_PROGRAMS += test/helper/tpm_startup
47test_helper_tpm_startup_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
48test_helper_tpm_startup_LDFLAGS = $(TESTS_LDFLAGS)
49test_helper_tpm_startup_LDADD = $(TESTS_LDADD)
50test_helper_tpm_startup_SOURCES = test/helper/tpm_startup.c
Andreas Fuchsa0eda362018-03-28 11:56:42 +020051
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020052noinst_PROGRAMS += test/helper/tpm_transientempty
53test_helper_tpm_transientempty_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
54test_helper_tpm_transientempty_LDFLAGS = $(TESTS_LDFLAGS)
55test_helper_tpm_transientempty_LDADD = $(TESTS_LDADD)
56test_helper_tpm_transientempty_SOURCES = test/helper/tpm_transientempty.c
Philip Tricca216ac492018-03-30 09:21:24 -070057endif #SIMULATOR_BIN
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020058
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010059if UNIT
60TESTS_UNIT = \
61 test/unit/CommonPreparePrologue \
62 test/unit/CopyCommandHeader \
63 test/unit/GetNumHandles \
Philip Tricca88ced722018-03-14 15:24:20 -070064 test/unit/io \
Philip Triccae394cff2018-04-18 08:36:06 -070065 test/unit/key-value-parse \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010066 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080067 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010068 test/unit/UINT8-marshal \
69 test/unit/UINT16-marshal \
70 test/unit/UINT32-marshal \
71 test/unit/UINT64-marshal \
72 test/unit/TPMA-marshal \
73 test/unit/TPM2B-marshal \
74 test/unit/TPMS-marshal \
75 test/unit/TPML-marshal \
76 test/unit/TPMT-marshal \
77 test/unit/TPMU-marshal
Juergen Reppd947f132018-03-16 13:15:10 +010078if ESAPI
79TESTS_UNIT += \
Andreas Fuchs88ac7d72018-03-16 13:20:54 +010080 test/unit/esys-context-null \
Andreas Fuchs5d9ce582018-03-21 19:05:47 +010081 test/unit/esys-default-tcti \
Juergen Repp20181512018-03-20 16:14:28 +010082 test/unit/esys-resubmissions \
Andreas Fuchs4879ad32018-04-12 14:48:06 +020083 test/unit/esys-sequence-finish \
Andreas Fuchs72227dc2018-04-12 14:54:07 +020084 test/unit/esys-tcti-rcs \
85 test/unit/esys-tpm-rcs
Juergen Reppd947f132018-03-16 13:15:10 +010086endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010087endif #UNIT
88
89if SIMULATOR_BIN
90noinst_LTLIBRARIES += test/integration/libtest_utils.la
91TESTS_INTEGRATION = \
92 test/integration/asymmetric-encrypt-decrypt.int \
93 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
94 test/integration/create-keyedhash-sha1-hmac.int \
95 test/integration/encrypt-decrypt.int \
96 test/integration/encrypt-decrypt-2.int \
97 test/integration/evict-ctrl.int \
98 test/integration/get-random.int \
99 test/integration/hierarchy-change-auth.int \
100 test/integration/abi-version.int \
101 test/integration/pcr-extension.int \
102 test/integration/self-test.int \
103 test/integration/start-auth-session.int \
104 test/integration/sys-initialize.int \
105 test/integration/tpm-properties.int \
106 test/integration/system-api.int \
107 test/integration/policy-template.int \
108 test/integration/create-loaded.int \
109 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800110 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100111 test/tpmclient/tpmclient.int
112if ESAPI
113TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200114 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200115 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200116 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200117 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100118 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200119 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100120 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100121 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200122 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100124 test/integration/esys-createloaded.int \
125 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100126 test/integration/esys-create-password-auth.int \
127 test/integration/esys-create-primary-ecc-hmac.int \
128 test/integration/esys-create-primary-hmac.int \
129 test/integration/esys-create-session-auth.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200130 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200131 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200132 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200133 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200134 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200135 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200136 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100137 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200138 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200139 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100140 test/integration/esys-get-capability.int \
141 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200142 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100143 test/integration/esys-hashsequencestart.int \
144 test/integration/esys-hashsequencestart-session.int \
145 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200146 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100147 test/integration/esys-hmacsequencestart.int \
148 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200149 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200150 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100151 test/integration/esys-make-credential.int \
152 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200153 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100154 test/integration/esys-nv-ram-counter.int \
155 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100156 test/integration/esys-nv-ram-extend-index.int \
157 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200158 test/integration/esys-nv-ram-ordinary-index-rlock.int \
159 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
160 test/integration/esys-nv-ram-ordinary-index-wlock.int \
161 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100162 test/integration/esys-nv-ram-set-bits.int \
163 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100164 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200165 test/integration/esys-pcr-basic.int \
166 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200167 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200168 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200169 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100170 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200171 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100172 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200173 test/integration/esys-pp-commands.int \
174 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100175 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200176 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200177 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200178 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200179 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200180 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200181 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200182 test/integration/esys-tr-fromTpmPublic-nv.int \
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200183 test/integration/esys-tr-getName-hierarchy.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200184 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200185 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200186 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100187endif #ESAPI
188endif #SIMULATOR_BIN
189
190CLEANFILES += \
191 test/integration/*.log \
192 test/tpmclient/*.log \
193 test/unit/*.log
194
195if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800196test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800197test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100198test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800199test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700200 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
201 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100202
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800203test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800204test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800205test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700206test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
207 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
208 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100209
Philip Tricca88ced722018-03-14 15:24:20 -0700210test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700211test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
212test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700213test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800214
Philip Triccae394cff2018-04-18 08:36:06 -0700215test_unit_key_value_parse_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
216test_unit_key_value_parse_LDADD = $(CMOCKA_LIBS) $(libutil)
217test_unit_key_value_parse_SOURCES = test/unit/key-value-parse.c
218
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800219test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100220test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800221test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100222test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
223
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800224test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800225test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100226test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
227
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800228test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100229test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800230test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100231test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
232
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800233test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800234test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100235test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
236
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800237test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800238test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100239test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
240
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800241test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800242test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100243test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
244
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800245test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800246test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100247test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
248
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800249test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800250test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100251test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
252
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800253test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800254test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100255test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
256
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800257test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800258test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100259test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
260
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800261test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800262test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100263test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
264
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800265test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800266test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100267test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
268
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800269test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800270test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100271test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100272
273if ESAPI
274test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
275test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
276test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100277test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
278
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100279test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
280test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
281test_unit_esys_default_tcti_LDFLAGS = \
282 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
283 -Wl,--wrap=Tss2_Tcti_Device_Init \
284 -Wl,--wrap=Tss2_Tcti_Mssim_Init
285test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
286 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
287
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100288test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
289test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
290test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
291test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100292
293test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
294test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
295test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
296test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Andreas Fuchs4879ad32018-04-12 14:48:06 +0200297
298test_unit_esys_tcti_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
299test_unit_esys_tcti_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
300test_unit_esys_tcti_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
301test_unit_esys_tcti_rcs_SOURCES = test/unit/esys-tcti-rcs.c
Andreas Fuchs72227dc2018-04-12 14:54:07 +0200302
303test_unit_esys_tpm_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
304test_unit_esys_tpm_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
305test_unit_esys_tpm_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
306test_unit_esys_tpm_rcs_SOURCES = test/unit/esys-tpm-rcs.c
Juergen Reppd947f132018-03-16 13:15:10 +0100307endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100308endif # UNIT
309
310if SIMULATOR_BIN
311test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
312test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
313test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Strukf517ee52018-04-23 19:00:10 -0700314 test/tpmclient/tpmclient.int.c test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100315
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200316test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100317test_integration_libtest_utils_la_SOURCES = \
318 test/integration/context-util.c test/integration/context-util.h \
319 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700320 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100321 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700322 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100323
324test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
325test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
326test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
327 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
328
329test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
330test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
331test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
332 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
333 test/integration/main.c
334
335test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
336test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
337test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
338 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
339
340test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
341test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
342test_integration_encrypt_decrypt_int_SOURCES = \
343 test/integration/encrypt-decrypt.int.c test/integration/main.c
344
345test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
346test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
347test_integration_encrypt_decrypt_2_int_SOURCES = \
348 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
349
350test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
351test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
352test_integration_evict_ctrl_int_SOURCES = \
353 test/integration/evict-ctrl.int.c test/integration/main.c
354
355test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
356test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
357test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
358 test/integration/main.c
359
360test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
361test_integration_get_random_int_LDADD = $(TESTS_LDADD)
362test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
363 test/integration/main.c
364
365test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
366test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
367test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
368 test/integration/main.c
369
370test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
371test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
372test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
373 test/integration/main.c
374
375test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
376test_integration_self_test_int_LDADD = $(TESTS_LDADD)
377test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
378 test/integration/main.c
379
380test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
381test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
382test_integration_hierarchy_change_auth_int_SOURCES = \
383 test/integration/hierarchy-change-auth.int.c test/integration/main.c
384
385test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
386test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
387test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
388 test/integration/start-auth-session.int.c
389
390test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
391test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
392test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
393 test/integration/tpm-properties.int.c
394
395test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
396test_integration_system_api_int_LDADD = $(TESTS_LDADD)
397test_integration_system_api_int_SOURCES = test/integration/main.c \
398 test/integration/system-api.int.c
399
400if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200401test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
402test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
403test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
404test_integration_esys_audit_int_SOURCES = \
405 test/integration/esys-audit.int.c \
406 test/integration/main-esapi.c test/integration/test-esapi.h
407
Juergen Repp43966fc2018-04-12 10:44:53 +0200408test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
409test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
410test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
411test_integration_esys_certify_creation_int_SOURCES = \
412 test/integration/esys-certify-creation.int.c \
413 test/integration/main-esapi.c test/integration/test-esapi.h
414
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200415test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
416test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
417test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
418test_integration_esys_certify_int_SOURCES = \
419 test/integration/esys-certify.int.c \
420 test/integration/main-esapi.c test/integration/test-esapi.h
421
Juergen Repp16455702018-04-12 10:45:49 +0200422test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
423test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
424test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
425test_integration_esys_change_eps_int_SOURCES = \
426 test/integration/esys-change-eps.int.c \
427 test/integration/main-esapi.c test/integration/test-esapi.h
428
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800429test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100430test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
431test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
432test_integration_esys_clear_int_SOURCES = \
433 test/integration/esys-clear.int.c \
434 test/integration/main-esapi.c test/integration/test-esapi.h
435
Juergen Repp658cd7d2018-04-12 10:46:25 +0200436test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
437test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
438test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
439test_integration_esys_clear_control_int_SOURCES = \
440 test/integration/esys-clear-control.int.c \
441 test/integration/main-esapi.c test/integration/test-esapi.h
442
443test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100444test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
445test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
446test_integration_esys_clear_session_int_SOURCES = \
447 test/integration/esys-clear.int.c \
448 test/integration/main-esapi.c test/integration/test-esapi.h
449
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800450test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100451test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
452test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
453test_integration_esys_clockset_int_SOURCES = \
454 test/integration/esys-clockset.int.c \
455 test/integration/main-esapi.c test/integration/test-esapi.h
456
Juergen Repp0c2d8532018-04-12 10:46:57 +0200457test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
458test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
459test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
460test_integration_esys_commit_int_SOURCES = \
461 test/integration/esys-commit.int.c \
462 test/integration/main-esapi.c test/integration/test-esapi.h
463
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800464test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100465test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
466test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
467test_integration_esys_create_fail_int_SOURCES = \
468 test/integration/esys-create-fail.int.c \
469 test/integration/main-esapi.c test/integration/test-esapi.h
470
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800471test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100472test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
473test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
474test_integration_esys_createloaded_int_SOURCES = \
475 test/integration/esys-createloaded.int.c \
476 test/integration/main-esapi.c test/integration/test-esapi.h
477
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800478test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
479 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100480test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
481test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
482test_integration_esys_createloaded_session_int_SOURCES = \
483 test/integration/esys-createloaded.int.c \
484 test/integration/main-esapi.c test/integration/test-esapi.h
485
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800486test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100487test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
488test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
489test_integration_esys_create_password_auth_int_SOURCES = \
490 test/integration/esys-create-password-auth.int.c \
491 test/integration/main-esapi.c test/integration/test-esapi.h
492
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800493test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100494test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
495test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
496test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
497 test/integration/esys-create-primary-hmac.int.c \
498 test/integration/main-esapi.c test/integration/test-esapi.h
499
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800500test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100501test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
502test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
503test_integration_esys_create_primary_hmac_int_SOURCES = \
504 test/integration/esys-create-primary-hmac.int.c \
505 test/integration/main-esapi.c test/integration/test-esapi.h
506
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200507test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
508 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100509test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
510test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
511test_integration_esys_create_session_auth_int_SOURCES = \
512 test/integration/esys-create-session-auth.int.c \
513 test/integration/main-esapi.c test/integration/test-esapi.h
514
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200515test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
516 -DTEST_XOR_OBFUSCATION
517test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
518test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
519test_integration_esys_create_session_auth_xor_int_SOURCES = \
520 test/integration/esys-create-session-auth.int.c \
521 test/integration/main-esapi.c test/integration/test-esapi.h
522
Juergen Reppf477ded2018-03-27 14:40:35 +0200523test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
524test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
525test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
526test_integration_esys_duplicate_int_SOURCES = \
527 test/integration/esys-duplicate.int.c \
528 test/integration/main-esapi.c test/integration/test-esapi.h
529
Juergen Repp0d884d52018-04-12 10:48:07 +0200530test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
531test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
532test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
533test_integration_esys_ecc_parameters_int_SOURCES = \
534 test/integration/esys-ecc-parameters.int.c \
535 test/integration/main-esapi.c test/integration/test-esapi.h
536
Juergen Repp472840f2018-04-12 10:48:38 +0200537test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
538test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
539test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
540test_integration_esys_ecdh_keygen_int_SOURCES = \
541 test/integration/esys-ecdh-keygen.int.c \
542 test/integration/main-esapi.c test/integration/test-esapi.h
543
Juergen Repp73461b42018-04-12 10:49:10 +0200544test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
545test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
546test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
547test_integration_esys_ecdh_zgen_int_SOURCES = \
548 test/integration/esys-ecdh-zgen.int.c \
549 test/integration/main-esapi.c test/integration/test-esapi.h
550
Juergen Reppcd101252018-04-12 10:50:21 +0200551test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
552test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
553test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
554test_integration_esys_encrypt_decrypt_int_SOURCES = \
555 test/integration/esys-encrypt-decrypt.int.c \
556 test/integration/main-esapi.c test/integration/test-esapi.h
557
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200558test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
559test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
560test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
561test_integration_esys_event_sequence_complete_int_SOURCES = \
562 test/integration/esys-event-sequence-complete.int.c \
563 test/integration/main-esapi.c test/integration/test-esapi.h
564
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800565test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100566test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
567test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
568test_integration_esys_evict_control_serialization_int_SOURCES = \
569 test/integration/esys-evict-control-serialization.int.c \
570 test/integration/main-esapi.c test/integration/test-esapi.h
571
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200572test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
573test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
574test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
575test_integration_esys_field_upgrade_int_SOURCES = \
576 test/integration/esys-field-upgrade.int.c \
577 test/integration/main-esapi.c test/integration/test-esapi.h
578
Juergen Repp841eeb42018-04-12 10:51:49 +0200579test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
580test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
581test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
582test_integration_esys_firmware_read_int_SOURCES = \
583 test/integration/esys-firmware-read.int.c \
584 test/integration/main-esapi.c test/integration/test-esapi.h
585
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800586test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100587test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
588test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
589test_integration_esys_get_capability_int_SOURCES = \
590 test/integration/esys-get-capability.int.c \
591 test/integration/main-esapi.c test/integration/test-esapi.h
592
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800593test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100594test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
595test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
596test_integration_esys_get_random_int_SOURCES = \
597 test/integration/esys-get-random.int.c \
598 test/integration/main-esapi.c test/integration/test-esapi.h
599
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200600test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
601test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
602test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
603test_integration_esys_get_time_int_SOURCES = \
604 test/integration/esys-get-time.int.c \
605 test/integration/main-esapi.c test/integration/test-esapi.h
606
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800607test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100608test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
609test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
610test_integration_esys_hashsequencestart_int_SOURCES = \
611 test/integration/esys-hashsequencestart.int.c \
612 test/integration/main-esapi.c test/integration/test-esapi.h
613
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800614test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
615 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100616test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
617test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
618test_integration_esys_hashsequencestart_session_int_SOURCES = \
619 test/integration/esys-hashsequencestart.int.c \
620 test/integration/main-esapi.c test/integration/test-esapi.h
621
Juergen Repp9f394f22018-04-12 10:52:35 +0200622test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
623test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
624test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
625test_integration_esys_hierarchy_control_int_SOURCES = \
626 test/integration/esys-hierarchy-control.int.c \
627 test/integration/main-esapi.c test/integration/test-esapi.h
628
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800629test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100630test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
631test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
632test_integration_esys_hmacsequencestart_int_SOURCES = \
633 test/integration/esys-hmacsequencestart.int.c \
634 test/integration/main-esapi.c test/integration/test-esapi.h
635
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800636test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
637 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100638test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
639test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
640test_integration_esys_hmacsequencestart_session_int_SOURCES = \
641 test/integration/esys-hmacsequencestart.int.c \
642 test/integration/main-esapi.c test/integration/test-esapi.h
643
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800644test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100645test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
646test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
647test_integration_esys_hierarchychangeauth_int_SOURCES = \
648 test/integration/esys-hierarchychangeauth.int.c \
649 test/integration/main-esapi.c test/integration/test-esapi.h
650
Juergen Reppefacad12018-04-12 10:53:12 +0200651test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
652test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
653test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
654test_integration_esys_import_int_SOURCES = \
655 test/integration/esys-import.int.c \
656 test/integration/main-esapi.c test/integration/test-esapi.h
657
Juergen Repp53028832018-04-12 10:53:30 +0200658test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
659test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
660test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
661test_integration_esys_lock_int_SOURCES = \
662 test/integration/esys-lock.int.c \
663 test/integration/main-esapi.c test/integration/test-esapi.h
664
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800665test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100666test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
667test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
668test_integration_esys_make_credential_int_SOURCES = \
669 test/integration/esys-make-credential.int.c \
670 test/integration/main-esapi.c test/integration/test-esapi.h
671
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800672test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
673 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100674test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
675test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
676test_integration_esys_make_credential_session_int_SOURCES = \
677 test/integration/esys-make-credential.int.c \
678 test/integration/main-esapi.c test/integration/test-esapi.h
679
Juergen Repp090bcef2018-04-12 10:53:49 +0200680test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
681test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
682test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
683test_integration_esys_nv_certify_int_SOURCES = \
684 test/integration/esys-nv-certify.int.c \
685 test/integration/main-esapi.c test/integration/test-esapi.h
686
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800687test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100688test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
689test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
690test_integration_esys_nv_ram_counter_int_SOURCES = \
691 test/integration/esys-nv-ram-counter.int.c \
692 test/integration/main-esapi.c test/integration/test-esapi.h
693
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800694test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
695 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100696test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
697test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
698test_integration_esys_nv_ram_counter_session_int_SOURCES = \
699 test/integration/esys-nv-ram-counter.int.c \
700 test/integration/main-esapi.c test/integration/test-esapi.h
701
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800702test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100703test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
704test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
705test_integration_esys_nv_ram_extend_index_int_SOURCES = \
706 test/integration/esys-nv-ram-extend-index.int.c \
707 test/integration/main-esapi.c test/integration/test-esapi.h
708
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800709test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
710 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100711test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
712test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
713test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
714 test/integration/esys-nv-ram-extend-index.int.c \
715 test/integration/main-esapi.c test/integration/test-esapi.h
716
Juergen Repp4f8ad602018-04-12 10:54:45 +0200717test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
718 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
719 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
720test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
721test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
722test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200723 test/integration/esys-nv-ram-ordinary-index.int.c \
724 test/integration/main-esapi.c test/integration/test-esapi.h
725
Juergen Repp4f8ad602018-04-12 10:54:45 +0200726test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
727 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
728 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
729test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
730test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
731test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
732 test/integration/esys-nv-ram-ordinary-index.int.c \
733 test/integration/main-esapi.c test/integration/test-esapi.h
734
735test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
736 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
737 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
738test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
739test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
740test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
741 test/integration/esys-nv-ram-ordinary-index.int.c \
742 test/integration/main-esapi.c test/integration/test-esapi.h
743
744test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
745 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
746 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
747test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
748test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
749test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200750 test/integration/esys-nv-ram-ordinary-index.int.c \
751 test/integration/main-esapi.c test/integration/test-esapi.h
752
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800753test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100754test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
755test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
756test_integration_esys_nv_ram_set_bits_int_SOURCES = \
757 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100758 test/integration/main-esapi.c test/integration/test-esapi.h
759
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800760test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
761 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100762test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
763test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
764test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
765 test/integration/esys-nv-ram-set-bits.int.c \
766 test/integration/main-esapi.c test/integration/test-esapi.h
767
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800768test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100769test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
770test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
771test_integration_esys_object_changeauth_int_SOURCES = \
772 test/integration/esys-object-changeauth.int.c \
773 test/integration/main-esapi.c test/integration/test-esapi.h
774
Juergen Repped818052018-04-12 10:56:38 +0200775test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
776test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
777test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
778test_integration_esys_policy_authorize_int_SOURCES = \
779 test/integration/esys-policy-authorize.int.c \
780 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200781 test/integration/main-esapi.c test/integration/test-esapi.h
782
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200783test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
784test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
785test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
786test_integration_esys_policy_regression_int_SOURCES = \
787 test/integration/esys-policy-regression.int.c \
788 test/integration/main-esapi.c test/integration/test-esapi.h
789
Juergen Repp897c75d2018-04-12 10:57:26 +0200790test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
791test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
792test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
793test_integration_esys_policy_ticket_int_SOURCES = \
794 test/integration/esys-policy-ticket.int.c \
795 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200796 test/integration/main-esapi.c test/integration/test-esapi.h
797
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800798test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100799test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
800test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
801test_integration_esys_policy_nv_changeauth_int_SOURCES = \
802 test/integration/esys-policy-nv-changeauth.int.c \
803 test/integration/main-esapi.c test/integration/test-esapi.h
804
Juergen Repp4cac2822018-04-12 10:58:39 +0200805test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
806test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
807test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
808test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
809 test/integration/esys-policy-nv-undefine-special.int.c \
810 test/integration/main-esapi.c test/integration/test-esapi.h
811
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800812test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100813test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
814test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
815test_integration_esys_policy_password_int_SOURCES = \
816 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100817 test/integration/main-esapi.c test/integration/test-esapi.h
818
Juergen Repped818052018-04-12 10:56:38 +0200819test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
820test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
821test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
822test_integration_esys_pcr_basic_int_SOURCES = \
823 test/integration/esys-pcr-basic.int.c \
824 test/integration/main-esapi.c test/integration/test-esapi.h
825
Juergen Repp897c75d2018-04-12 10:57:26 +0200826test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
827test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
828test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
829test_integration_esys_pcr_auth_value_int_SOURCES = \
830 test/integration/esys-pcr-auth-value.int.c \
831 test/integration/main-esapi.c test/integration/test-esapi.h
832
Juergen Repp91ed3de2018-04-12 11:01:30 +0200833test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
834test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
835test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
836test_integration_esys_pp_commands_int_SOURCES = \
837 test/integration/esys-pp-commands.int.c \
838 test/integration/main-esapi.c test/integration/test-esapi.h
839
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800840test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100841test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
842test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
843test_integration_esys_quote_int_SOURCES = \
844 test/integration/esys-quote.int.c \
845 test/integration/main-esapi.c test/integration/test-esapi.h
846
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800847test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100848test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
849test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
850test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
851 test/integration/esys-rsa-encrypt-decrypt.int.c \
852 test/integration/main-esapi.c test/integration/test-esapi.h
853
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800854test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100855test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
856test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
857test_integration_esys_save_and_load_context_int_SOURCES = \
858 test/integration/esys-save-and-load-context.int.c \
859 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200860
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200861test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
862test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
863test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
864test_integration_esys_set_algorithm_set_int_SOURCES = \
865 test/integration/esys-set-algorithm-set.int.c \
866 test/integration/main-esapi.c test/integration/test-esapi.h
867
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200868test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
869test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
870test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
871test_integration_esys_stir_random_int_SOURCES = \
872 test/integration/esys-stir-random.int.c \
873 test/integration/main-esapi.c test/integration/test-esapi.h
874
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200875test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
876test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
877test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
878test_integration_esys_testparms_int_SOURCES = \
879 test/integration/esys-testparms.int.c \
880 test/integration/main-esapi.c test/integration/test-esapi.h
881
Juergen Repp24f4acb2018-04-12 11:04:27 +0200882test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
883test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
884test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
885test_integration_esys_tpm_tests_int_SOURCES = \
886 test/integration/esys-tpm-tests.int.c \
887 test/integration/main-esapi.c test/integration/test-esapi.h
888
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200889test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
890test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
891test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
892test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
893 test/integration/esys-tr-fromTpmPublic-key.int.c \
894 test/integration/main-esapi.c test/integration/test-esapi.h
895
Andreas Fuchs95809e22018-04-12 12:21:06 +0200896test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
897test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
898test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
899test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
900 test/integration/esys-tr-fromTpmPublic-nv.int.c \
901 test/integration/main-esapi.c test/integration/test-esapi.h
902
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200903test_integration_esys_tr_getName_hierarchy_int_CFLAGS = $(TESTS_CFLAGS)
904test_integration_esys_tr_getName_hierarchy_int_LDADD = $(TESTS_LDADD)
905test_integration_esys_tr_getName_hierarchy_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
906test_integration_esys_tr_getName_hierarchy_int_SOURCES = \
907 test/integration/esys-tr-getName-hierarchy.int.c \
908 test/integration/main-esapi.c test/integration/test-esapi.h
909
Christian Plappert624423b2018-03-27 14:36:40 +0200910test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
911test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
912test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
913test_integration_esys_unseal_password_auth_int_SOURCES = \
914 test/integration/esys-unseal-password-auth.int.c \
915 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200916
917test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
918test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
919test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
920test_integration_esys_verify_signature_int_SOURCES = \
921 test/integration/esys-verify-signature.int.c \
922 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200923
924test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
925test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
926test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
927test_integration_esys_zgen_2phase_int_SOURCES = \
928 test/integration/esys-zgen-2phase.int.c \
929 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100930endif #ESAPI
931
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800932test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100933test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
934test_integration_policy_template_int_SOURCES = test/integration/main.c \
935 test/integration/policy-template.int.c
936
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800937test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100938test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
939test_integration_create_loaded_int_SOURCES = test/integration/main.c \
940 test/integration/create-loaded.int.c
941
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800942test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100943test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800944test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100945 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800946
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800947test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800948test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800949test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800950 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100951endif #SIMULATOR_BIN