blob: 31e7f0ca108caca6c2680f5e6dbba4be35b91f24 [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
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010037EXTRA_DIST += $(INT_LOG_COMPILER)
Philip Tricca99075432018-04-25 19:02:05 -070038AM_TESTS_ENVIRONMENT = PATH="$(PATH)"
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010039
40check-programs: $(check_PROGRAMS)
41
42check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
43TESTS = $(check_PROGRAMS)
44
Philip Tricca99075432018-04-25 19:02:05 -070045if ENABLE_INTEGRATION
Andreas Fuchsa0eda362018-03-28 11:56:42 +020046noinst_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 Tricca99075432018-04-25 19:02:05 -070057endif #ENABLE_INTEGRATION
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 \
Andreas Fuchsc3cc36e2018-04-26 19:22:02 +020085 test/unit/esys-tpm-rcs \
Andreas Fuchs296c2812018-05-02 11:43:11 +020086 test/unit/esys-getpollhandles \
87 test/unit/esys-nulltcti
Juergen Reppd947f132018-03-16 13:15:10 +010088endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010089endif #UNIT
90
Philip Tricca99075432018-04-25 19:02:05 -070091if ENABLE_INTEGRATION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010092noinst_LTLIBRARIES += test/integration/libtest_utils.la
93TESTS_INTEGRATION = \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -070094 test/integration/sapi-asymmetric-encrypt-decrypt.int \
Tadeusz Struk6c45cbd2018-05-01 11:10:45 -070095 test/integration/sapi-primary-rsa-2K-aes128cfb.int \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -070096 test/integration/sapi-create-keyedhash-sha1-hmac.int \
97 test/integration/sapi-encrypt-decrypt.int \
98 test/integration/sapi-encrypt-decrypt-2.int \
99 test/integration/sapi-evict-ctrl.int \
100 test/integration/sapi-get-random.int \
101 test/integration/sapi-hierarchy-change-auth.int \
102 test/integration/sapi-abi-version.int \
103 test/integration/sapi-pcr-extension.int \
104 test/integration/sapi-self-test.int \
105 test/integration/sapi-start-auth-session.int \
106 test/integration/sapi-sys-initialize.int \
107 test/integration/sapi-tpm-properties.int \
108 test/integration/sapi-system-api.int \
109 test/integration/sapi-policy-template.int \
110 test/integration/sapi-create-loaded.int \
111 test/integration/sapi-policy-authorizeNV.int \
112 test/integration/sapi-command-cancel.int \
Tadeusz Struk5c9c1922018-05-01 09:52:46 -0700113 test/integration/sapi-param-encrypt-decrypt.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100114 test/tpmclient/tpmclient.int
115if ESAPI
116TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200117 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200118 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200119 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200120 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100121 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200122 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100123 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100124 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200125 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100126 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100127 test/integration/esys-createloaded.int \
128 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100129 test/integration/esys-create-password-auth.int \
130 test/integration/esys-create-primary-ecc-hmac.int \
131 test/integration/esys-create-primary-hmac.int \
132 test/integration/esys-create-session-auth.int \
Juergen Repp84db3992018-05-02 11:14:22 +0200133 test/integration/esys-create-session-auth-bound.int \
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200134 test/integration/esys-create-session-auth-ecc.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200135 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200136 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200137 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200138 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200139 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200140 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200141 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100142 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200143 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200144 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100145 test/integration/esys-get-capability.int \
146 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200147 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100148 test/integration/esys-hashsequencestart.int \
149 test/integration/esys-hashsequencestart-session.int \
150 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200151 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100152 test/integration/esys-hmacsequencestart.int \
153 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200154 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200155 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100156 test/integration/esys-make-credential.int \
157 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200158 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100159 test/integration/esys-nv-ram-counter.int \
160 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100161 test/integration/esys-nv-ram-extend-index.int \
162 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200163 test/integration/esys-nv-ram-ordinary-index-rlock.int \
164 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
165 test/integration/esys-nv-ram-ordinary-index-wlock.int \
166 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100167 test/integration/esys-nv-ram-set-bits.int \
168 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100169 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200170 test/integration/esys-pcr-basic.int \
171 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200172 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200173 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200174 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100175 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200176 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100177 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200178 test/integration/esys-pp-commands.int \
179 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100180 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200181 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200182 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200183 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200184 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200185 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200186 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200187 test/integration/esys-tr-fromTpmPublic-nv.int \
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200188 test/integration/esys-tr-getName-hierarchy.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200189 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200190 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200191 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100192endif #ESAPI
Philip Tricca99075432018-04-25 19:02:05 -0700193endif #ENABLE_INTEGRATION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100194
195CLEANFILES += \
196 test/integration/*.log \
197 test/tpmclient/*.log \
198 test/unit/*.log
199
200if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800201test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800202test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100203test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800204test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700205 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
206 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100207
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800208test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800209test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800210test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700211test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
212 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
213 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100214
Philip Tricca88ced722018-03-14 15:24:20 -0700215test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700216test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
217test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700218test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800219
Philip Triccae394cff2018-04-18 08:36:06 -0700220test_unit_key_value_parse_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
221test_unit_key_value_parse_LDADD = $(CMOCKA_LIBS) $(libutil)
222test_unit_key_value_parse_SOURCES = test/unit/key-value-parse.c
223
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800224test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100225test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800226test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100227test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
228
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800229test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800230test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100231test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
232
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800233test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100234test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800235test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100236test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
237
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800238test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800239test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100240test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
241
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800242test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800243test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100244test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
245
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800246test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800247test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100248test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
249
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800250test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800251test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100252test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
253
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800254test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800255test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100256test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
257
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800258test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800259test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100260test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
261
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800262test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800263test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100264test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
265
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800266test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800267test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100268test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
269
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800270test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800271test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100272test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
273
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800274test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800275test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100276test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100277
278if ESAPI
279test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
280test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
281test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100282test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
283
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100284test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
285test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
286test_unit_esys_default_tcti_LDFLAGS = \
287 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
288 -Wl,--wrap=Tss2_Tcti_Device_Init \
289 -Wl,--wrap=Tss2_Tcti_Mssim_Init
290test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
291 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
292
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100293test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
294test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
295test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
296test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100297
298test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
299test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
300test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
301test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Andreas Fuchs4879ad32018-04-12 14:48:06 +0200302
303test_unit_esys_tcti_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
304test_unit_esys_tcti_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
305test_unit_esys_tcti_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
306test_unit_esys_tcti_rcs_SOURCES = test/unit/esys-tcti-rcs.c
Andreas Fuchs72227dc2018-04-12 14:54:07 +0200307
308test_unit_esys_tpm_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
309test_unit_esys_tpm_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
310test_unit_esys_tpm_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
311test_unit_esys_tpm_rcs_SOURCES = test/unit/esys-tpm-rcs.c
Andreas Fuchsc3cc36e2018-04-26 19:22:02 +0200312
313test_unit_esys_getpollhandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
314test_unit_esys_getpollhandles_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
315test_unit_esys_getpollhandles_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
316test_unit_esys_getpollhandles_SOURCES = test/unit/esys-getpollhandles.c
Andreas Fuchs296c2812018-05-02 11:43:11 +0200317
318test_unit_esys_nulltcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
319test_unit_esys_nulltcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
320test_unit_esys_nulltcti_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
321test_unit_esys_nulltcti_SOURCES = test/unit/esys-nulltcti.c \
322 src/tss2-esys/esys_context.c
Juergen Reppd947f132018-03-16 13:15:10 +0100323endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100324endif # UNIT
325
Philip Tricca99075432018-04-25 19:02:05 -0700326if ENABLE_INTEGRATION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100327test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
328test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
329test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700330 test/tpmclient/tpmclient.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100331
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200332test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100333test_integration_libtest_utils_la_SOURCES = \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700334 test/integration/sapi-context-util.c test/integration/context-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100335 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700336 test/integration/sapi-session-util.c test/integration/session-util.h \
337 test/integration/sapi-test-options.c test/integration/test-options.h \
338 test/integration/sapi-entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100339
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700340test_integration_sapi_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
341test_integration_sapi_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
342test_integration_sapi_asymmetric_encrypt_decrypt_int_SOURCES = \
343 test/integration/sapi-asymmetric-encrypt-decrypt.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100344
Tadeusz Struk6c45cbd2018-05-01 11:10:45 -0700345test_integration_sapi_primary_rsa_2K_aes128cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
346test_integration_sapi_primary_rsa_2K_aes128cfb_int_LDADD = $(TESTS_LDADD)
347test_integration_sapi_primary_rsa_2K_aes128cfb_int_SOURCES = \
348 test/integration/sapi-primary-rsa-2K-aes128cfb.int.c \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700349 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100350
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700351test_integration_sapi_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
352test_integration_sapi_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
353test_integration_sapi_create_keyedhash_sha1_hmac_int_SOURCES = \
354 test/integration/sapi-create-keyedhash-sha1-hmac.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100355
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700356test_integration_sapi_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
357test_integration_sapi_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
358test_integration_sapi_encrypt_decrypt_int_SOURCES = \
359 test/integration/sapi-encrypt-decrypt.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100360
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700361test_integration_sapi_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
362test_integration_sapi_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
363test_integration_sapi_encrypt_decrypt_2_int_SOURCES = \
364 test/integration/sapi-encrypt-decrypt-2.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100365
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700366test_integration_sapi_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
367test_integration_sapi_evict_ctrl_int_LDADD = $(TESTS_LDADD)
368test_integration_sapi_evict_ctrl_int_SOURCES = \
369 test/integration/sapi-evict-ctrl.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100370
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700371test_integration_sapi_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
372test_integration_sapi_sys_initialize_int_LDADD = $(TESTS_LDADD)
373test_integration_sapi_sys_initialize_int_SOURCES = test/integration/sapi-sys-initialize.int.c \
374 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100375
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700376test_integration_sapi_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
377test_integration_sapi_get_random_int_LDADD = $(TESTS_LDADD)
378test_integration_sapi_get_random_int_SOURCES = test/integration/sapi-get-random.int.c \
379 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100380
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700381test_integration_sapi_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
382test_integration_sapi_abi_version_int_LDADD = $(TESTS_LDADD)
383test_integration_sapi_abi_version_int_SOURCES = test/integration/sapi-abi-version.int.c \
384 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100385
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700386test_integration_sapi_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
387test_integration_sapi_pcr_extension_int_LDADD = $(TESTS_LDADD)
388test_integration_sapi_pcr_extension_int_SOURCES = test/integration/sapi-pcr-extension.int.c \
389 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100390
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700391test_integration_sapi_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
392test_integration_sapi_self_test_int_LDADD = $(TESTS_LDADD)
393test_integration_sapi_self_test_int_SOURCES = test/integration/sapi-self-test.int.c \
394 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100395
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700396test_integration_sapi_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
397test_integration_sapi_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
398test_integration_sapi_hierarchy_change_auth_int_SOURCES = \
399 test/integration/sapi-hierarchy-change-auth.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100400
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700401test_integration_sapi_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
402test_integration_sapi_start_auth_session_int_LDADD = $(TESTS_LDADD)
403test_integration_sapi_start_auth_session_int_SOURCES = test/integration/main-sapi.c \
404 test/integration/sapi-start-auth-session.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100405
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700406test_integration_sapi_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
407test_integration_sapi_tpm_properties_int_LDADD = $(TESTS_LDADD)
408test_integration_sapi_tpm_properties_int_SOURCES = test/integration/main-sapi.c \
409 test/integration/sapi-tpm-properties.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100410
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700411test_integration_sapi_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
412test_integration_sapi_system_api_int_LDADD = $(TESTS_LDADD)
413test_integration_sapi_system_api_int_SOURCES = test/integration/main-sapi.c \
414 test/integration/sapi-system-api.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100415
Tadeusz Struk5c9c1922018-05-01 09:52:46 -0700416test_integration_sapi_aram_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
417test_integration_sapi_param_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
418test_integration_sapi_param_encrypt_decrypt_int_SOURCES = \
419 test/integration/sapi-param-encrypt-decrypt.int.c test/integration/main-sapi.c
420
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100421if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200422test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
423test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
424test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
425test_integration_esys_audit_int_SOURCES = \
426 test/integration/esys-audit.int.c \
427 test/integration/main-esapi.c test/integration/test-esapi.h
428
Juergen Repp43966fc2018-04-12 10:44:53 +0200429test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
430test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
431test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
432test_integration_esys_certify_creation_int_SOURCES = \
433 test/integration/esys-certify-creation.int.c \
434 test/integration/main-esapi.c test/integration/test-esapi.h
435
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200436test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
437test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
438test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
439test_integration_esys_certify_int_SOURCES = \
440 test/integration/esys-certify.int.c \
441 test/integration/main-esapi.c test/integration/test-esapi.h
442
Juergen Repp16455702018-04-12 10:45:49 +0200443test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
444test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
445test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
446test_integration_esys_change_eps_int_SOURCES = \
447 test/integration/esys-change-eps.int.c \
448 test/integration/main-esapi.c test/integration/test-esapi.h
449
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800450test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100451test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
452test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
453test_integration_esys_clear_int_SOURCES = \
454 test/integration/esys-clear.int.c \
455 test/integration/main-esapi.c test/integration/test-esapi.h
456
Juergen Repp658cd7d2018-04-12 10:46:25 +0200457test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
458test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
459test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
460test_integration_esys_clear_control_int_SOURCES = \
461 test/integration/esys-clear-control.int.c \
462 test/integration/main-esapi.c test/integration/test-esapi.h
463
464test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100465test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
466test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
467test_integration_esys_clear_session_int_SOURCES = \
468 test/integration/esys-clear.int.c \
469 test/integration/main-esapi.c test/integration/test-esapi.h
470
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800471test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100472test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
473test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
474test_integration_esys_clockset_int_SOURCES = \
475 test/integration/esys-clockset.int.c \
476 test/integration/main-esapi.c test/integration/test-esapi.h
477
Juergen Repp0c2d8532018-04-12 10:46:57 +0200478test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
479test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
480test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
481test_integration_esys_commit_int_SOURCES = \
482 test/integration/esys-commit.int.c \
483 test/integration/main-esapi.c test/integration/test-esapi.h
484
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800485test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100486test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
487test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
488test_integration_esys_create_fail_int_SOURCES = \
489 test/integration/esys-create-fail.int.c \
490 test/integration/main-esapi.c test/integration/test-esapi.h
491
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800492test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100493test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
494test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
495test_integration_esys_createloaded_int_SOURCES = \
496 test/integration/esys-createloaded.int.c \
497 test/integration/main-esapi.c test/integration/test-esapi.h
498
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800499test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
500 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100501test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
502test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
503test_integration_esys_createloaded_session_int_SOURCES = \
504 test/integration/esys-createloaded.int.c \
505 test/integration/main-esapi.c test/integration/test-esapi.h
506
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800507test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100508test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
509test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
510test_integration_esys_create_password_auth_int_SOURCES = \
511 test/integration/esys-create-password-auth.int.c \
512 test/integration/main-esapi.c test/integration/test-esapi.h
513
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800514test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100515test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
516test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
517test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
518 test/integration/esys-create-primary-hmac.int.c \
519 test/integration/main-esapi.c test/integration/test-esapi.h
520
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800521test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100522test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
523test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
524test_integration_esys_create_primary_hmac_int_SOURCES = \
525 test/integration/esys-create-primary-hmac.int.c \
526 test/integration/main-esapi.c test/integration/test-esapi.h
527
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200528test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
529 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100530test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
531test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
532test_integration_esys_create_session_auth_int_SOURCES = \
533 test/integration/esys-create-session-auth.int.c \
534 test/integration/main-esapi.c test/integration/test-esapi.h
535
Juergen Repp84db3992018-05-02 11:14:22 +0200536test_integration_esys_create_session_auth_bound_int_CFLAGS = $(TESTS_CFLAGS) \
537 -DTEST_AES_ENCRYPTION -DTEST_BOUND_SESSIION
538test_integration_esys_create_session_auth_bound_int_LDADD = $(TESTS_LDADD)
539test_integration_esys_create_session_auth_bound_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
540test_integration_esys_create_session_auth_bound_int_SOURCES = \
541 test/integration/esys-create-session-auth.int.c \
542 test/integration/main-esapi.c test/integration/test-esapi.h
543
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200544test_integration_esys_create_session_auth_ecc_int_CFLAGS = $(TESTS_CFLAGS) \
545 -DTEST_AES_ENCRYPTION -DTEST_ECC
546test_integration_esys_create_session_auth_ecc_int_LDADD = $(TESTS_LDADD)
547test_integration_esys_create_session_auth_ecc_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
548test_integration_esys_create_session_auth_ecc_int_SOURCES = \
549 test/integration/esys-create-session-auth.int.c \
550 test/integration/main-esapi.c test/integration/test-esapi.h
551
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200552test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
553 -DTEST_XOR_OBFUSCATION
554test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
555test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
556test_integration_esys_create_session_auth_xor_int_SOURCES = \
557 test/integration/esys-create-session-auth.int.c \
558 test/integration/main-esapi.c test/integration/test-esapi.h
559
Juergen Reppf477ded2018-03-27 14:40:35 +0200560test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
561test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
562test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
563test_integration_esys_duplicate_int_SOURCES = \
564 test/integration/esys-duplicate.int.c \
565 test/integration/main-esapi.c test/integration/test-esapi.h
566
Juergen Repp0d884d52018-04-12 10:48:07 +0200567test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
568test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
569test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
570test_integration_esys_ecc_parameters_int_SOURCES = \
571 test/integration/esys-ecc-parameters.int.c \
572 test/integration/main-esapi.c test/integration/test-esapi.h
573
Juergen Repp472840f2018-04-12 10:48:38 +0200574test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
575test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
576test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
577test_integration_esys_ecdh_keygen_int_SOURCES = \
578 test/integration/esys-ecdh-keygen.int.c \
579 test/integration/main-esapi.c test/integration/test-esapi.h
580
Juergen Repp73461b42018-04-12 10:49:10 +0200581test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
582test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
583test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
584test_integration_esys_ecdh_zgen_int_SOURCES = \
585 test/integration/esys-ecdh-zgen.int.c \
586 test/integration/main-esapi.c test/integration/test-esapi.h
587
Juergen Reppcd101252018-04-12 10:50:21 +0200588test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
589test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
590test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
591test_integration_esys_encrypt_decrypt_int_SOURCES = \
592 test/integration/esys-encrypt-decrypt.int.c \
593 test/integration/main-esapi.c test/integration/test-esapi.h
594
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200595test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
596test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
597test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
598test_integration_esys_event_sequence_complete_int_SOURCES = \
599 test/integration/esys-event-sequence-complete.int.c \
600 test/integration/main-esapi.c test/integration/test-esapi.h
601
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800602test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100603test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
604test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
605test_integration_esys_evict_control_serialization_int_SOURCES = \
606 test/integration/esys-evict-control-serialization.int.c \
607 test/integration/main-esapi.c test/integration/test-esapi.h
608
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200609test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
610test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
611test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
612test_integration_esys_field_upgrade_int_SOURCES = \
613 test/integration/esys-field-upgrade.int.c \
614 test/integration/main-esapi.c test/integration/test-esapi.h
615
Juergen Repp841eeb42018-04-12 10:51:49 +0200616test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
617test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
618test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
619test_integration_esys_firmware_read_int_SOURCES = \
620 test/integration/esys-firmware-read.int.c \
621 test/integration/main-esapi.c test/integration/test-esapi.h
622
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800623test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100624test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
625test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
626test_integration_esys_get_capability_int_SOURCES = \
627 test/integration/esys-get-capability.int.c \
628 test/integration/main-esapi.c test/integration/test-esapi.h
629
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800630test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100631test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
632test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
633test_integration_esys_get_random_int_SOURCES = \
634 test/integration/esys-get-random.int.c \
635 test/integration/main-esapi.c test/integration/test-esapi.h
636
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200637test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
638test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
639test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
640test_integration_esys_get_time_int_SOURCES = \
641 test/integration/esys-get-time.int.c \
642 test/integration/main-esapi.c test/integration/test-esapi.h
643
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800644test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100645test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
646test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
647test_integration_esys_hashsequencestart_int_SOURCES = \
648 test/integration/esys-hashsequencestart.int.c \
649 test/integration/main-esapi.c test/integration/test-esapi.h
650
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800651test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
652 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100653test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
654test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
655test_integration_esys_hashsequencestart_session_int_SOURCES = \
656 test/integration/esys-hashsequencestart.int.c \
657 test/integration/main-esapi.c test/integration/test-esapi.h
658
Juergen Repp9f394f22018-04-12 10:52:35 +0200659test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
660test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
661test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
662test_integration_esys_hierarchy_control_int_SOURCES = \
663 test/integration/esys-hierarchy-control.int.c \
664 test/integration/main-esapi.c test/integration/test-esapi.h
665
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800666test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100667test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
668test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
669test_integration_esys_hmacsequencestart_int_SOURCES = \
670 test/integration/esys-hmacsequencestart.int.c \
671 test/integration/main-esapi.c test/integration/test-esapi.h
672
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800673test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
674 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100675test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
676test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
677test_integration_esys_hmacsequencestart_session_int_SOURCES = \
678 test/integration/esys-hmacsequencestart.int.c \
679 test/integration/main-esapi.c test/integration/test-esapi.h
680
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800681test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100682test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
683test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
684test_integration_esys_hierarchychangeauth_int_SOURCES = \
685 test/integration/esys-hierarchychangeauth.int.c \
686 test/integration/main-esapi.c test/integration/test-esapi.h
687
Juergen Reppefacad12018-04-12 10:53:12 +0200688test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
689test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
690test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
691test_integration_esys_import_int_SOURCES = \
692 test/integration/esys-import.int.c \
693 test/integration/main-esapi.c test/integration/test-esapi.h
694
Juergen Repp53028832018-04-12 10:53:30 +0200695test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
696test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
697test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
698test_integration_esys_lock_int_SOURCES = \
699 test/integration/esys-lock.int.c \
700 test/integration/main-esapi.c test/integration/test-esapi.h
701
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800702test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100703test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
704test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
705test_integration_esys_make_credential_int_SOURCES = \
706 test/integration/esys-make-credential.int.c \
707 test/integration/main-esapi.c test/integration/test-esapi.h
708
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800709test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
710 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100711test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
712test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
713test_integration_esys_make_credential_session_int_SOURCES = \
714 test/integration/esys-make-credential.int.c \
715 test/integration/main-esapi.c test/integration/test-esapi.h
716
Juergen Repp090bcef2018-04-12 10:53:49 +0200717test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
718test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
719test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
720test_integration_esys_nv_certify_int_SOURCES = \
721 test/integration/esys-nv-certify.int.c \
722 test/integration/main-esapi.c test/integration/test-esapi.h
723
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800724test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100725test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
726test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
727test_integration_esys_nv_ram_counter_int_SOURCES = \
728 test/integration/esys-nv-ram-counter.int.c \
729 test/integration/main-esapi.c test/integration/test-esapi.h
730
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800731test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
732 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100733test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
734test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
735test_integration_esys_nv_ram_counter_session_int_SOURCES = \
736 test/integration/esys-nv-ram-counter.int.c \
737 test/integration/main-esapi.c test/integration/test-esapi.h
738
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800739test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100740test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
741test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
742test_integration_esys_nv_ram_extend_index_int_SOURCES = \
743 test/integration/esys-nv-ram-extend-index.int.c \
744 test/integration/main-esapi.c test/integration/test-esapi.h
745
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800746test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
747 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100748test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
749test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
750test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
751 test/integration/esys-nv-ram-extend-index.int.c \
752 test/integration/main-esapi.c test/integration/test-esapi.h
753
Juergen Repp4f8ad602018-04-12 10:54:45 +0200754test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
755 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
756 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
757test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
758test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
759test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200760 test/integration/esys-nv-ram-ordinary-index.int.c \
761 test/integration/main-esapi.c test/integration/test-esapi.h
762
Juergen Repp4f8ad602018-04-12 10:54:45 +0200763test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
764 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
765 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
766test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
767test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
768test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
769 test/integration/esys-nv-ram-ordinary-index.int.c \
770 test/integration/main-esapi.c test/integration/test-esapi.h
771
772test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
773 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
774 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
775test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
776test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
777test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
778 test/integration/esys-nv-ram-ordinary-index.int.c \
779 test/integration/main-esapi.c test/integration/test-esapi.h
780
781test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
782 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
783 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
784test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
785test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
786test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200787 test/integration/esys-nv-ram-ordinary-index.int.c \
788 test/integration/main-esapi.c test/integration/test-esapi.h
789
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800790test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100791test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
792test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
793test_integration_esys_nv_ram_set_bits_int_SOURCES = \
794 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100795 test/integration/main-esapi.c test/integration/test-esapi.h
796
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800797test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
798 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100799test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
800test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
801test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
802 test/integration/esys-nv-ram-set-bits.int.c \
803 test/integration/main-esapi.c test/integration/test-esapi.h
804
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800805test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100806test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
807test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
808test_integration_esys_object_changeauth_int_SOURCES = \
809 test/integration/esys-object-changeauth.int.c \
810 test/integration/main-esapi.c test/integration/test-esapi.h
811
Juergen Repped818052018-04-12 10:56:38 +0200812test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
813test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
814test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
815test_integration_esys_policy_authorize_int_SOURCES = \
816 test/integration/esys-policy-authorize.int.c \
817 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200818 test/integration/main-esapi.c test/integration/test-esapi.h
819
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200820test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
821test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
822test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
823test_integration_esys_policy_regression_int_SOURCES = \
824 test/integration/esys-policy-regression.int.c \
825 test/integration/main-esapi.c test/integration/test-esapi.h
826
Juergen Repp897c75d2018-04-12 10:57:26 +0200827test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
828test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
829test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
830test_integration_esys_policy_ticket_int_SOURCES = \
831 test/integration/esys-policy-ticket.int.c \
832 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200833 test/integration/main-esapi.c test/integration/test-esapi.h
834
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800835test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100836test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
837test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
838test_integration_esys_policy_nv_changeauth_int_SOURCES = \
839 test/integration/esys-policy-nv-changeauth.int.c \
840 test/integration/main-esapi.c test/integration/test-esapi.h
841
Juergen Repp4cac2822018-04-12 10:58:39 +0200842test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
843test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
844test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
845test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
846 test/integration/esys-policy-nv-undefine-special.int.c \
847 test/integration/main-esapi.c test/integration/test-esapi.h
848
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800849test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100850test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
851test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
852test_integration_esys_policy_password_int_SOURCES = \
853 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100854 test/integration/main-esapi.c test/integration/test-esapi.h
855
Juergen Repped818052018-04-12 10:56:38 +0200856test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
857test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
858test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
859test_integration_esys_pcr_basic_int_SOURCES = \
860 test/integration/esys-pcr-basic.int.c \
861 test/integration/main-esapi.c test/integration/test-esapi.h
862
Juergen Repp897c75d2018-04-12 10:57:26 +0200863test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
864test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
865test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
866test_integration_esys_pcr_auth_value_int_SOURCES = \
867 test/integration/esys-pcr-auth-value.int.c \
868 test/integration/main-esapi.c test/integration/test-esapi.h
869
Juergen Repp91ed3de2018-04-12 11:01:30 +0200870test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
871test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
872test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
873test_integration_esys_pp_commands_int_SOURCES = \
874 test/integration/esys-pp-commands.int.c \
875 test/integration/main-esapi.c test/integration/test-esapi.h
876
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800877test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100878test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
879test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
880test_integration_esys_quote_int_SOURCES = \
881 test/integration/esys-quote.int.c \
882 test/integration/main-esapi.c test/integration/test-esapi.h
883
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800884test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100885test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
886test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
887test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
888 test/integration/esys-rsa-encrypt-decrypt.int.c \
889 test/integration/main-esapi.c test/integration/test-esapi.h
890
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800891test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100892test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
893test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
894test_integration_esys_save_and_load_context_int_SOURCES = \
895 test/integration/esys-save-and-load-context.int.c \
896 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200897
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200898test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
899test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
900test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
901test_integration_esys_set_algorithm_set_int_SOURCES = \
902 test/integration/esys-set-algorithm-set.int.c \
903 test/integration/main-esapi.c test/integration/test-esapi.h
904
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200905test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
906test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
907test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
908test_integration_esys_stir_random_int_SOURCES = \
909 test/integration/esys-stir-random.int.c \
910 test/integration/main-esapi.c test/integration/test-esapi.h
911
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200912test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
913test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
914test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
915test_integration_esys_testparms_int_SOURCES = \
916 test/integration/esys-testparms.int.c \
917 test/integration/main-esapi.c test/integration/test-esapi.h
918
Juergen Repp24f4acb2018-04-12 11:04:27 +0200919test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
920test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
921test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
922test_integration_esys_tpm_tests_int_SOURCES = \
923 test/integration/esys-tpm-tests.int.c \
924 test/integration/main-esapi.c test/integration/test-esapi.h
925
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200926test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
927test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
928test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
929test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
930 test/integration/esys-tr-fromTpmPublic-key.int.c \
931 test/integration/main-esapi.c test/integration/test-esapi.h
932
Andreas Fuchs95809e22018-04-12 12:21:06 +0200933test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
934test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
935test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
936test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
937 test/integration/esys-tr-fromTpmPublic-nv.int.c \
938 test/integration/main-esapi.c test/integration/test-esapi.h
939
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200940test_integration_esys_tr_getName_hierarchy_int_CFLAGS = $(TESTS_CFLAGS)
941test_integration_esys_tr_getName_hierarchy_int_LDADD = $(TESTS_LDADD)
942test_integration_esys_tr_getName_hierarchy_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
943test_integration_esys_tr_getName_hierarchy_int_SOURCES = \
944 test/integration/esys-tr-getName-hierarchy.int.c \
945 test/integration/main-esapi.c test/integration/test-esapi.h
946
Christian Plappert624423b2018-03-27 14:36:40 +0200947test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
948test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
949test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
950test_integration_esys_unseal_password_auth_int_SOURCES = \
951 test/integration/esys-unseal-password-auth.int.c \
952 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200953
954test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
955test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
956test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
957test_integration_esys_verify_signature_int_SOURCES = \
958 test/integration/esys-verify-signature.int.c \
959 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200960
961test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
962test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
963test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
964test_integration_esys_zgen_2phase_int_SOURCES = \
965 test/integration/esys-zgen-2phase.int.c \
966 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100967endif #ESAPI
968
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700969test_integration_sapi_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
970test_integration_sapi_policy_template_int_LDADD = $(TESTS_LDADD)
971test_integration_sapi_policy_template_int_SOURCES = test/integration/main-sapi.c \
972 test/integration/sapi-policy-template.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100973
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700974test_integration_sapi_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
975test_integration_sapi_create_loaded_int_LDADD = $(TESTS_LDADD)
976test_integration_sapi_create_loaded_int_SOURCES = test/integration/main-sapi.c \
977 test/integration/sapi-create-loaded.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100978
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700979test_integration_sapi_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
980test_integration_sapi_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
981test_integration_sapi_policy_authorizeNV_int_SOURCES = test/integration/main-sapi.c \
982 test/integration/sapi-policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800983
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700984test_integration_sapi_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
985test_integration_sapi_command_cancel_int_LDADD = $(TESTS_LDADD)
986test_integration_sapi_command_cancel_int_SOURCES = test/integration/main-sapi.c \
987 test/integration/sapi-command-cancel.int.c
Philip Tricca99075432018-04-25 19:02:05 -0700988endif #ENABLE_INTEGRATION