blob: 68144f6f1e72e968fe6ae20cbe08345e1f7e9e66 [file] [log] [blame]
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01001#;**********************************************************************;
Philip Tricca49635f42018-03-10 19:19:58 -08002# Copyright (c) 2015 - 2018 Intel Corporation
Andreas Fuchs0dc7c292018-02-28 20:01:13 +01003# Copyright (c) 2018 Fraunhofer SIT sponsored by Infineon Technologies AG
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#
9# 1. Redistributions of source code must retain the above copyright notice,
10# this list of conditions and the following disclaimer.
11#
12# 2. Redistributions in binary form must reproduce the above copyright notice,
13# this list of conditions and the following disclaimer in the documentation
14# and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26# THE POSSIBILITY OF SUCH DAMAGE.
27#;**********************************************************************;
28
Philip Triccaee730622018-03-10 16:40:41 -080029TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/src/tss2-mu \
Andreas Fuchsbaeb2be2018-03-29 15:39:50 +020030 -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys \
Andreas Fuchs1c4a8112018-03-29 16:58:07 +020031 -Wno-unused-parameter -Wno-missing-field-initializers
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010032TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil)
33
34# test harness configuration
35TEST_EXTENSIONS = .int
36INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh
37INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN)
38EXTRA_DIST += $(INT_LOG_COMPILER)
39
40check-programs: $(check_PROGRAMS)
41
42check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION)
43TESTS = $(check_PROGRAMS)
44
Andreas Fuchsa0eda362018-03-28 11:56:42 +020045if SIMULATOR_BIN
46noinst_PROGRAMS += test/helper/tpm_startup
47test_helper_tpm_startup_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
48test_helper_tpm_startup_LDFLAGS = $(TESTS_LDFLAGS)
49test_helper_tpm_startup_LDADD = $(TESTS_LDADD)
50test_helper_tpm_startup_SOURCES = test/helper/tpm_startup.c
Andreas Fuchsa0eda362018-03-28 11:56:42 +020051
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020052noinst_PROGRAMS += test/helper/tpm_transientempty
53test_helper_tpm_transientempty_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration
54test_helper_tpm_transientempty_LDFLAGS = $(TESTS_LDFLAGS)
55test_helper_tpm_transientempty_LDADD = $(TESTS_LDADD)
56test_helper_tpm_transientempty_SOURCES = test/helper/tpm_transientempty.c
Philip Tricca216ac492018-03-30 09:21:24 -070057endif #SIMULATOR_BIN
Andreas Fuchs6ab3fd82018-03-28 12:23:19 +020058
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010059if UNIT
60TESTS_UNIT = \
61 test/unit/CommonPreparePrologue \
62 test/unit/CopyCommandHeader \
63 test/unit/GetNumHandles \
Philip Tricca88ced722018-03-14 15:24:20 -070064 test/unit/io \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010065 test/unit/tcti-device \
Philip Triccaaddad782018-03-09 11:42:05 -080066 test/unit/tcti-mssim \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010067 test/unit/UINT8-marshal \
68 test/unit/UINT16-marshal \
69 test/unit/UINT32-marshal \
70 test/unit/UINT64-marshal \
71 test/unit/TPMA-marshal \
72 test/unit/TPM2B-marshal \
73 test/unit/TPMS-marshal \
74 test/unit/TPML-marshal \
75 test/unit/TPMT-marshal \
76 test/unit/TPMU-marshal
Juergen Reppd947f132018-03-16 13:15:10 +010077if ESAPI
78TESTS_UNIT += \
Andreas Fuchs88ac7d72018-03-16 13:20:54 +010079 test/unit/esys-context-null \
Andreas Fuchs5d9ce582018-03-21 19:05:47 +010080 test/unit/esys-default-tcti \
Juergen Repp20181512018-03-20 16:14:28 +010081 test/unit/esys-resubmissions \
82 test/unit/esys-sequence-finish
Juergen Reppd947f132018-03-16 13:15:10 +010083endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010084endif #UNIT
85
86if SIMULATOR_BIN
87noinst_LTLIBRARIES += test/integration/libtest_utils.la
88TESTS_INTEGRATION = \
89 test/integration/asymmetric-encrypt-decrypt.int \
90 test/integration/create-primary-rsa-2048-aes-128-cfb.int \
91 test/integration/create-keyedhash-sha1-hmac.int \
92 test/integration/encrypt-decrypt.int \
93 test/integration/encrypt-decrypt-2.int \
94 test/integration/evict-ctrl.int \
95 test/integration/get-random.int \
96 test/integration/hierarchy-change-auth.int \
97 test/integration/abi-version.int \
98 test/integration/pcr-extension.int \
99 test/integration/self-test.int \
100 test/integration/start-auth-session.int \
101 test/integration/sys-initialize.int \
102 test/integration/tpm-properties.int \
103 test/integration/system-api.int \
104 test/integration/policy-template.int \
105 test/integration/create-loaded.int \
106 test/integration/policy-authorizeNV.int \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800107 test/integration/command-cancel.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100108 test/tpmclient/tpmclient.int
109if ESAPI
110TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200111 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200112 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200113 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200114 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100115 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200116 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100117 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100118 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200119 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100120 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100121 test/integration/esys-createloaded.int \
122 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-create-password-auth.int \
124 test/integration/esys-create-primary-ecc-hmac.int \
125 test/integration/esys-create-primary-hmac.int \
126 test/integration/esys-create-session-auth.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200127 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200128 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200129 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200130 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200131 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200132 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200133 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100134 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200135 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200136 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100137 test/integration/esys-get-capability.int \
138 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200139 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100140 test/integration/esys-hashsequencestart.int \
141 test/integration/esys-hashsequencestart-session.int \
142 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200143 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100144 test/integration/esys-hmacsequencestart.int \
145 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200146 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200147 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100148 test/integration/esys-make-credential.int \
149 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200150 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100151 test/integration/esys-nv-ram-counter.int \
152 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100153 test/integration/esys-nv-ram-extend-index.int \
154 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200155 test/integration/esys-nv-ram-ordinary-index-rlock.int \
156 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
157 test/integration/esys-nv-ram-ordinary-index-wlock.int \
158 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100159 test/integration/esys-nv-ram-set-bits.int \
160 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100161 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200162 test/integration/esys-pcr-basic.int \
163 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200164 test/integration/esys-policy-authorize.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200165 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100166 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200167 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100168 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200169 test/integration/esys-pp-commands.int \
170 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100171 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200172 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200173 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200174 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200175 test/integration/esys-testparms.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200176 test/integration/esys-unseal-password-auth.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100177endif #ESAPI
178endif #SIMULATOR_BIN
179
180CLEANFILES += \
181 test/integration/*.log \
182 test/tpmclient/*.log \
183 test/unit/*.log
184
185if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800186test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800187test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100188test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800189test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700190 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
191 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100192
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800193test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800194test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800195test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700196test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
197 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
198 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100199
Philip Tricca88ced722018-03-14 15:24:20 -0700200test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700201test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
202test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700203test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800204
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800205test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100206test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800207test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100208test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
209
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800210test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800211test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100212test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
213
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800214test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100215test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800216test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100217test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
218
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800219test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800220test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100221test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
222
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800223test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800224test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100225test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
226
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800227test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800228test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100229test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
230
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800231test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800232test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100233test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
234
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800235test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800236test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100237test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
238
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800239test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800240test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100241test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
242
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800243test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800244test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100245test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
246
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800247test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800248test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100249test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
250
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800251test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800252test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100253test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
254
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800255test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800256test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100257test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100258
259if ESAPI
260test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
261test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
262test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100263test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
264
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100265test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
266test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
267test_unit_esys_default_tcti_LDFLAGS = \
268 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
269 -Wl,--wrap=Tss2_Tcti_Device_Init \
270 -Wl,--wrap=Tss2_Tcti_Mssim_Init
271test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
272 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
273
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100274test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
275test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
276test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
277test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100278
279test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
280test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
281test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
282test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Juergen Reppd947f132018-03-16 13:15:10 +0100283endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100284endif # UNIT
285
286if SIMULATOR_BIN
287test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
288test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
289test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Struk435467e2018-04-04 14:00:50 -0700290 test/tpmclient/DecryptEncrypt.c \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700291 test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \
292 test/integration/main.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100293
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200294test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100295test_integration_libtest_utils_la_SOURCES = \
296 test/integration/context-util.c test/integration/context-util.h \
297 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Struk85208a42018-04-09 21:32:41 -0700298 test/integration/session-util.c test/integration/session-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100299 test/integration/test-options.c test/integration/test-options.h \
Tadeusz Struk134c93c2018-04-17 16:35:00 -0700300 test/integration/entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100301
302test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
303test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
304test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \
305 test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c
306
307test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
308test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD)
309test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \
310 test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \
311 test/integration/main.c
312
313test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
314test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
315test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \
316 test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c
317
318test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
319test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
320test_integration_encrypt_decrypt_int_SOURCES = \
321 test/integration/encrypt-decrypt.int.c test/integration/main.c
322
323test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
324test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
325test_integration_encrypt_decrypt_2_int_SOURCES = \
326 test/integration/encrypt-decrypt-2.int.c test/integration/main.c
327
328test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
329test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD)
330test_integration_evict_ctrl_int_SOURCES = \
331 test/integration/evict-ctrl.int.c test/integration/main.c
332
333test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
334test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD)
335test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \
336 test/integration/main.c
337
338test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
339test_integration_get_random_int_LDADD = $(TESTS_LDADD)
340test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \
341 test/integration/main.c
342
343test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
344test_integration_abi_version_int_LDADD = $(TESTS_LDADD)
345test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \
346 test/integration/main.c
347
348test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
349test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD)
350test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \
351 test/integration/main.c
352
353test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
354test_integration_self_test_int_LDADD = $(TESTS_LDADD)
355test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \
356 test/integration/main.c
357
358test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
359test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
360test_integration_hierarchy_change_auth_int_SOURCES = \
361 test/integration/hierarchy-change-auth.int.c test/integration/main.c
362
363test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
364test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD)
365test_integration_start_auth_session_int_SOURCES = test/integration/main.c \
366 test/integration/start-auth-session.int.c
367
368test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
369test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD)
370test_integration_tpm_properties_int_SOURCES = test/integration/main.c \
371 test/integration/tpm-properties.int.c
372
373test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
374test_integration_system_api_int_LDADD = $(TESTS_LDADD)
375test_integration_system_api_int_SOURCES = test/integration/main.c \
376 test/integration/system-api.int.c
377
378if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200379test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
380test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
381test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
382test_integration_esys_audit_int_SOURCES = \
383 test/integration/esys-audit.int.c \
384 test/integration/main-esapi.c test/integration/test-esapi.h
385
Juergen Repp43966fc2018-04-12 10:44:53 +0200386test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
387test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
388test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
389test_integration_esys_certify_creation_int_SOURCES = \
390 test/integration/esys-certify-creation.int.c \
391 test/integration/main-esapi.c test/integration/test-esapi.h
392
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200393test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
394test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
395test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
396test_integration_esys_certify_int_SOURCES = \
397 test/integration/esys-certify.int.c \
398 test/integration/main-esapi.c test/integration/test-esapi.h
399
Juergen Repp16455702018-04-12 10:45:49 +0200400test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
401test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
402test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
403test_integration_esys_change_eps_int_SOURCES = \
404 test/integration/esys-change-eps.int.c \
405 test/integration/main-esapi.c test/integration/test-esapi.h
406
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800407test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100408test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
409test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
410test_integration_esys_clear_int_SOURCES = \
411 test/integration/esys-clear.int.c \
412 test/integration/main-esapi.c test/integration/test-esapi.h
413
Juergen Repp658cd7d2018-04-12 10:46:25 +0200414test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
415test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
416test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
417test_integration_esys_clear_control_int_SOURCES = \
418 test/integration/esys-clear-control.int.c \
419 test/integration/main-esapi.c test/integration/test-esapi.h
420
421test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100422test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
423test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
424test_integration_esys_clear_session_int_SOURCES = \
425 test/integration/esys-clear.int.c \
426 test/integration/main-esapi.c test/integration/test-esapi.h
427
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800428test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100429test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
430test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
431test_integration_esys_clockset_int_SOURCES = \
432 test/integration/esys-clockset.int.c \
433 test/integration/main-esapi.c test/integration/test-esapi.h
434
Juergen Repp0c2d8532018-04-12 10:46:57 +0200435test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
436test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
437test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
438test_integration_esys_commit_int_SOURCES = \
439 test/integration/esys-commit.int.c \
440 test/integration/main-esapi.c test/integration/test-esapi.h
441
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800442test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100443test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
444test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
445test_integration_esys_create_fail_int_SOURCES = \
446 test/integration/esys-create-fail.int.c \
447 test/integration/main-esapi.c test/integration/test-esapi.h
448
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800449test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100450test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
451test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
452test_integration_esys_createloaded_int_SOURCES = \
453 test/integration/esys-createloaded.int.c \
454 test/integration/main-esapi.c test/integration/test-esapi.h
455
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800456test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \
457 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100458test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
459test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
460test_integration_esys_createloaded_session_int_SOURCES = \
461 test/integration/esys-createloaded.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_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100465test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
466test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
467test_integration_esys_create_password_auth_int_SOURCES = \
468 test/integration/esys-create-password-auth.int.c \
469 test/integration/main-esapi.c test/integration/test-esapi.h
470
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800471test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100472test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
473test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
474test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
475 test/integration/esys-create-primary-hmac.int.c \
476 test/integration/main-esapi.c test/integration/test-esapi.h
477
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800478test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100479test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
480test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
481test_integration_esys_create_primary_hmac_int_SOURCES = \
482 test/integration/esys-create-primary-hmac.int.c \
483 test/integration/main-esapi.c test/integration/test-esapi.h
484
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200485test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
486 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100487test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
488test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
489test_integration_esys_create_session_auth_int_SOURCES = \
490 test/integration/esys-create-session-auth.int.c \
491 test/integration/main-esapi.c test/integration/test-esapi.h
492
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200493test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
494 -DTEST_XOR_OBFUSCATION
495test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
496test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
497test_integration_esys_create_session_auth_xor_int_SOURCES = \
498 test/integration/esys-create-session-auth.int.c \
499 test/integration/main-esapi.c test/integration/test-esapi.h
500
Juergen Reppf477ded2018-03-27 14:40:35 +0200501test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
502test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
503test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
504test_integration_esys_duplicate_int_SOURCES = \
505 test/integration/esys-duplicate.int.c \
506 test/integration/main-esapi.c test/integration/test-esapi.h
507
Juergen Repp0d884d52018-04-12 10:48:07 +0200508test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
509test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
510test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
511test_integration_esys_ecc_parameters_int_SOURCES = \
512 test/integration/esys-ecc-parameters.int.c \
513 test/integration/main-esapi.c test/integration/test-esapi.h
514
Juergen Repp472840f2018-04-12 10:48:38 +0200515test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
516test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
517test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
518test_integration_esys_ecdh_keygen_int_SOURCES = \
519 test/integration/esys-ecdh-keygen.int.c \
520 test/integration/main-esapi.c test/integration/test-esapi.h
521
Juergen Repp73461b42018-04-12 10:49:10 +0200522test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
523test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
524test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
525test_integration_esys_ecdh_zgen_int_SOURCES = \
526 test/integration/esys-ecdh-zgen.int.c \
527 test/integration/main-esapi.c test/integration/test-esapi.h
528
Juergen Reppcd101252018-04-12 10:50:21 +0200529test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
530test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
531test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
532test_integration_esys_encrypt_decrypt_int_SOURCES = \
533 test/integration/esys-encrypt-decrypt.int.c \
534 test/integration/main-esapi.c test/integration/test-esapi.h
535
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200536test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
537test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
538test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
539test_integration_esys_event_sequence_complete_int_SOURCES = \
540 test/integration/esys-event-sequence-complete.int.c \
541 test/integration/main-esapi.c test/integration/test-esapi.h
542
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800543test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100544test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
545test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
546test_integration_esys_evict_control_serialization_int_SOURCES = \
547 test/integration/esys-evict-control-serialization.int.c \
548 test/integration/main-esapi.c test/integration/test-esapi.h
549
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200550test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
551test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
552test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
553test_integration_esys_field_upgrade_int_SOURCES = \
554 test/integration/esys-field-upgrade.int.c \
555 test/integration/main-esapi.c test/integration/test-esapi.h
556
Juergen Repp841eeb42018-04-12 10:51:49 +0200557test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
558test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
559test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
560test_integration_esys_firmware_read_int_SOURCES = \
561 test/integration/esys-firmware-read.int.c \
562 test/integration/main-esapi.c test/integration/test-esapi.h
563
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800564test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100565test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
566test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
567test_integration_esys_get_capability_int_SOURCES = \
568 test/integration/esys-get-capability.int.c \
569 test/integration/main-esapi.c test/integration/test-esapi.h
570
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800571test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100572test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
573test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
574test_integration_esys_get_random_int_SOURCES = \
575 test/integration/esys-get-random.int.c \
576 test/integration/main-esapi.c test/integration/test-esapi.h
577
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200578test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
579test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
580test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
581test_integration_esys_get_time_int_SOURCES = \
582 test/integration/esys-get-time.int.c \
583 test/integration/main-esapi.c test/integration/test-esapi.h
584
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800585test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100586test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
587test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
588test_integration_esys_hashsequencestart_int_SOURCES = \
589 test/integration/esys-hashsequencestart.int.c \
590 test/integration/main-esapi.c test/integration/test-esapi.h
591
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800592test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
593 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100594test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
595test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
596test_integration_esys_hashsequencestart_session_int_SOURCES = \
597 test/integration/esys-hashsequencestart.int.c \
598 test/integration/main-esapi.c test/integration/test-esapi.h
599
Juergen Repp9f394f22018-04-12 10:52:35 +0200600test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
601test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
602test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
603test_integration_esys_hierarchy_control_int_SOURCES = \
604 test/integration/esys-hierarchy-control.int.c \
605 test/integration/main-esapi.c test/integration/test-esapi.h
606
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800607test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100608test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
609test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
610test_integration_esys_hmacsequencestart_int_SOURCES = \
611 test/integration/esys-hmacsequencestart.int.c \
612 test/integration/main-esapi.c test/integration/test-esapi.h
613
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800614test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \
615 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100616test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
617test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
618test_integration_esys_hmacsequencestart_session_int_SOURCES = \
619 test/integration/esys-hmacsequencestart.int.c \
620 test/integration/main-esapi.c test/integration/test-esapi.h
621
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800622test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100623test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
624test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
625test_integration_esys_hierarchychangeauth_int_SOURCES = \
626 test/integration/esys-hierarchychangeauth.int.c \
627 test/integration/main-esapi.c test/integration/test-esapi.h
628
Juergen Reppefacad12018-04-12 10:53:12 +0200629test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
630test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
631test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
632test_integration_esys_import_int_SOURCES = \
633 test/integration/esys-import.int.c \
634 test/integration/main-esapi.c test/integration/test-esapi.h
635
Juergen Repp53028832018-04-12 10:53:30 +0200636test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
637test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
638test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
639test_integration_esys_lock_int_SOURCES = \
640 test/integration/esys-lock.int.c \
641 test/integration/main-esapi.c test/integration/test-esapi.h
642
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800643test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100644test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
645test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
646test_integration_esys_make_credential_int_SOURCES = \
647 test/integration/esys-make-credential.int.c \
648 test/integration/main-esapi.c test/integration/test-esapi.h
649
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800650test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \
651 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100652test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
653test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
654test_integration_esys_make_credential_session_int_SOURCES = \
655 test/integration/esys-make-credential.int.c \
656 test/integration/main-esapi.c test/integration/test-esapi.h
657
Juergen Repp090bcef2018-04-12 10:53:49 +0200658test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
659test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
660test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
661test_integration_esys_nv_certify_int_SOURCES = \
662 test/integration/esys-nv-certify.int.c \
663 test/integration/main-esapi.c test/integration/test-esapi.h
664
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800665test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100666test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
667test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
668test_integration_esys_nv_ram_counter_int_SOURCES = \
669 test/integration/esys-nv-ram-counter.int.c \
670 test/integration/main-esapi.c test/integration/test-esapi.h
671
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800672test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \
673 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100674test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
675test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
676test_integration_esys_nv_ram_counter_session_int_SOURCES = \
677 test/integration/esys-nv-ram-counter.int.c \
678 test/integration/main-esapi.c test/integration/test-esapi.h
679
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800680test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100681test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
682test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
683test_integration_esys_nv_ram_extend_index_int_SOURCES = \
684 test/integration/esys-nv-ram-extend-index.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_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \
688 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100689test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
690test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
691test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
692 test/integration/esys-nv-ram-extend-index.int.c \
693 test/integration/main-esapi.c test/integration/test-esapi.h
694
Juergen Repp4f8ad602018-04-12 10:54:45 +0200695test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
696 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
697 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
698test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
699test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
700test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200701 test/integration/esys-nv-ram-ordinary-index.int.c \
702 test/integration/main-esapi.c test/integration/test-esapi.h
703
Juergen Repp4f8ad602018-04-12 10:54:45 +0200704test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
705 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
706 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
707test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
708test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
709test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
710 test/integration/esys-nv-ram-ordinary-index.int.c \
711 test/integration/main-esapi.c test/integration/test-esapi.h
712
713test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
714 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
715 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
716test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
717test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
718test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
719 test/integration/esys-nv-ram-ordinary-index.int.c \
720 test/integration/main-esapi.c test/integration/test-esapi.h
721
722test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
723 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
724 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
725test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
726test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
727test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200728 test/integration/esys-nv-ram-ordinary-index.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_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100732test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
733test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
734test_integration_esys_nv_ram_set_bits_int_SOURCES = \
735 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100736 test/integration/main-esapi.c test/integration/test-esapi.h
737
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800738test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \
739 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100740test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
741test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
742test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
743 test/integration/esys-nv-ram-set-bits.int.c \
744 test/integration/main-esapi.c test/integration/test-esapi.h
745
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800746test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100747test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
748test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
749test_integration_esys_object_changeauth_int_SOURCES = \
750 test/integration/esys-object-changeauth.int.c \
751 test/integration/main-esapi.c test/integration/test-esapi.h
752
Juergen Repped818052018-04-12 10:56:38 +0200753test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
754test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
755test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
756test_integration_esys_policy_authorize_int_SOURCES = \
757 test/integration/esys-policy-authorize.int.c \
758 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200759 test/integration/main-esapi.c test/integration/test-esapi.h
760
Juergen Repp897c75d2018-04-12 10:57:26 +0200761test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
762test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
763test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
764test_integration_esys_policy_ticket_int_SOURCES = \
765 test/integration/esys-policy-ticket.int.c \
766 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200767 test/integration/main-esapi.c test/integration/test-esapi.h
768
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800769test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100770test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
771test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
772test_integration_esys_policy_nv_changeauth_int_SOURCES = \
773 test/integration/esys-policy-nv-changeauth.int.c \
774 test/integration/main-esapi.c test/integration/test-esapi.h
775
Juergen Repp4cac2822018-04-12 10:58:39 +0200776test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
777test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
778test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
779test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
780 test/integration/esys-policy-nv-undefine-special.int.c \
781 test/integration/main-esapi.c test/integration/test-esapi.h
782
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800783test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100784test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
785test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
786test_integration_esys_policy_password_int_SOURCES = \
787 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100788 test/integration/main-esapi.c test/integration/test-esapi.h
789
Juergen Repped818052018-04-12 10:56:38 +0200790test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
791test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
792test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
793test_integration_esys_pcr_basic_int_SOURCES = \
794 test/integration/esys-pcr-basic.int.c \
795 test/integration/main-esapi.c test/integration/test-esapi.h
796
Juergen Repp897c75d2018-04-12 10:57:26 +0200797test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
798test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
799test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
800test_integration_esys_pcr_auth_value_int_SOURCES = \
801 test/integration/esys-pcr-auth-value.int.c \
802 test/integration/main-esapi.c test/integration/test-esapi.h
803
Juergen Repp91ed3de2018-04-12 11:01:30 +0200804test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
805test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
806test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
807test_integration_esys_pp_commands_int_SOURCES = \
808 test/integration/esys-pp-commands.int.c \
809 test/integration/main-esapi.c test/integration/test-esapi.h
810
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800811test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100812test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
813test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
814test_integration_esys_quote_int_SOURCES = \
815 test/integration/esys-quote.int.c \
816 test/integration/main-esapi.c test/integration/test-esapi.h
817
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800818test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100819test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
820test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
821test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
822 test/integration/esys-rsa-encrypt-decrypt.int.c \
823 test/integration/main-esapi.c test/integration/test-esapi.h
824
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800825test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100826test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
827test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
828test_integration_esys_save_and_load_context_int_SOURCES = \
829 test/integration/esys-save-and-load-context.int.c \
830 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200831
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200832test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
833test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
834test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
835test_integration_esys_set_algorithm_set_int_SOURCES = \
836 test/integration/esys-set-algorithm-set.int.c \
837 test/integration/main-esapi.c test/integration/test-esapi.h
838
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200839test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
840test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
841test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
842test_integration_esys_stir_random_int_SOURCES = \
843 test/integration/esys-stir-random.int.c \
844 test/integration/main-esapi.c test/integration/test-esapi.h
845
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200846test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
847test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
848test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
849test_integration_esys_testparms_int_SOURCES = \
850 test/integration/esys-testparms.int.c \
851 test/integration/main-esapi.c test/integration/test-esapi.h
852
Christian Plappert624423b2018-03-27 14:36:40 +0200853test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
854test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
855test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
856test_integration_esys_unseal_password_auth_int_SOURCES = \
857 test/integration/esys-unseal-password-auth.int.c \
858 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100859endif #ESAPI
860
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800861test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100862test_integration_policy_template_int_LDADD = $(TESTS_LDADD)
863test_integration_policy_template_int_SOURCES = test/integration/main.c \
864 test/integration/policy-template.int.c
865
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800866test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100867test_integration_create_loaded_int_LDADD = $(TESTS_LDADD)
868test_integration_create_loaded_int_SOURCES = test/integration/main.c \
869 test/integration/create-loaded.int.c
870
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800871test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100872test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800873test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100874 test/integration/policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800875
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800876test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800877test_integration_command_cancel_int_LDADD = $(TESTS_LDADD)
Philip Triccaa7c51ce2018-03-10 18:28:25 -0800878test_integration_command_cancel_int_SOURCES = test/integration/main.c \
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800879 test/integration/command-cancel.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100880endif #SIMULATOR_BIN