blob: a5c03ff5f3dae491cbd89d5d4bfa064d0de0cd48 [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 \
86 test/unit/esys-getpollhandles
Juergen Reppd947f132018-03-16 13:15:10 +010087endif ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010088endif #UNIT
89
Philip Tricca99075432018-04-25 19:02:05 -070090if ENABLE_INTEGRATION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +010091noinst_LTLIBRARIES += test/integration/libtest_utils.la
92TESTS_INTEGRATION = \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -070093 test/integration/sapi-asymmetric-encrypt-decrypt.int \
Tadeusz Struk6c45cbd2018-05-01 11:10:45 -070094 test/integration/sapi-primary-rsa-2K-aes128cfb.int \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -070095 test/integration/sapi-create-keyedhash-sha1-hmac.int \
96 test/integration/sapi-encrypt-decrypt.int \
97 test/integration/sapi-encrypt-decrypt-2.int \
98 test/integration/sapi-evict-ctrl.int \
99 test/integration/sapi-get-random.int \
100 test/integration/sapi-hierarchy-change-auth.int \
101 test/integration/sapi-abi-version.int \
102 test/integration/sapi-pcr-extension.int \
103 test/integration/sapi-self-test.int \
104 test/integration/sapi-start-auth-session.int \
105 test/integration/sapi-sys-initialize.int \
106 test/integration/sapi-tpm-properties.int \
107 test/integration/sapi-system-api.int \
108 test/integration/sapi-policy-template.int \
109 test/integration/sapi-create-loaded.int \
110 test/integration/sapi-policy-authorizeNV.int \
111 test/integration/sapi-command-cancel.int \
Tadeusz Struk5c9c1922018-05-01 09:52:46 -0700112 test/integration/sapi-param-encrypt-decrypt.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100113 test/tpmclient/tpmclient.int
114if ESAPI
115TESTS_INTEGRATION += \
Juergen Repp607317b2018-04-12 10:34:57 +0200116 test/integration/esys-audit.int \
Juergen Repp43966fc2018-04-12 10:44:53 +0200117 test/integration/esys-certify-creation.int \
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200118 test/integration/esys-certify.int \
Juergen Repp16455702018-04-12 10:45:49 +0200119 test/integration/esys-change-eps.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100120 test/integration/esys-clear.int \
Juergen Repp658cd7d2018-04-12 10:46:25 +0200121 test/integration/esys-clear-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100122 test/integration/esys-clear-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100123 test/integration/esys-clockset.int \
Juergen Repp0c2d8532018-04-12 10:46:57 +0200124 test/integration/esys-commit.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100125 test/integration/esys-create-fail.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100126 test/integration/esys-createloaded.int \
127 test/integration/esys-createloaded-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100128 test/integration/esys-create-password-auth.int \
129 test/integration/esys-create-primary-ecc-hmac.int \
130 test/integration/esys-create-primary-hmac.int \
131 test/integration/esys-create-session-auth.int \
Juergen Repp84db3992018-05-02 11:14:22 +0200132 test/integration/esys-create-session-auth-bound.int \
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200133 test/integration/esys-create-session-auth-ecc.int \
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200134 test/integration/esys-create-session-auth-xor.int \
Juergen Reppf477ded2018-03-27 14:40:35 +0200135 test/integration/esys-duplicate.int \
Juergen Repp0d884d52018-04-12 10:48:07 +0200136 test/integration/esys-ecc-parameters.int \
Juergen Repp472840f2018-04-12 10:48:38 +0200137 test/integration/esys-ecdh-keygen.int \
Juergen Repp73461b42018-04-12 10:49:10 +0200138 test/integration/esys-ecdh-zgen.int \
Juergen Reppcd101252018-04-12 10:50:21 +0200139 test/integration/esys-encrypt-decrypt.int \
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200140 test/integration/esys-event-sequence-complete.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100141 test/integration/esys-evict-control-serialization.int \
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200142 test/integration/esys-field-upgrade.int \
Juergen Repp841eeb42018-04-12 10:51:49 +0200143 test/integration/esys-firmware-read.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100144 test/integration/esys-get-capability.int \
145 test/integration/esys-get-random.int \
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200146 test/integration/esys-get-time.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100147 test/integration/esys-hashsequencestart.int \
148 test/integration/esys-hashsequencestart-session.int \
149 test/integration/esys-hierarchychangeauth.int \
Juergen Repp9f394f22018-04-12 10:52:35 +0200150 test/integration/esys-hierarchy-control.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100151 test/integration/esys-hmacsequencestart.int \
152 test/integration/esys-hmacsequencestart-session.int \
Juergen Reppefacad12018-04-12 10:53:12 +0200153 test/integration/esys-import.int \
Juergen Repp53028832018-04-12 10:53:30 +0200154 test/integration/esys-lock.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100155 test/integration/esys-make-credential.int \
156 test/integration/esys-make-credential-session.int \
Juergen Repp090bcef2018-04-12 10:53:49 +0200157 test/integration/esys-nv-certify.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100158 test/integration/esys-nv-ram-counter.int \
159 test/integration/esys-nv-ram-counter-session.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100160 test/integration/esys-nv-ram-extend-index.int \
161 test/integration/esys-nv-ram-extend-index-session.int \
Juergen Repp4f8ad602018-04-12 10:54:45 +0200162 test/integration/esys-nv-ram-ordinary-index-rlock.int \
163 test/integration/esys-nv-ram-ordinary-index-rlock-session.int \
164 test/integration/esys-nv-ram-ordinary-index-wlock.int \
165 test/integration/esys-nv-ram-ordinary-index-wlock-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100166 test/integration/esys-nv-ram-set-bits.int \
167 test/integration/esys-nv-ram-set-bits-session.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100168 test/integration/esys-object-changeauth.int \
Juergen Repp731135d2018-03-27 14:43:03 +0200169 test/integration/esys-pcr-basic.int \
170 test/integration/esys-pcr-auth-value.int \
Juergen Repped818052018-04-12 10:56:38 +0200171 test/integration/esys-policy-authorize.int \
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200172 test/integration/esys-policy-regression.int \
Juergen Repp897c75d2018-04-12 10:57:26 +0200173 test/integration/esys-policy-ticket.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100174 test/integration/esys-policy-nv-changeauth.int \
Juergen Repp4cac2822018-04-12 10:58:39 +0200175 test/integration/esys-policy-nv-undefine-special.int \
Juergen Repp110a68a2018-03-08 11:51:30 +0100176 test/integration/esys-policy-password.int \
Juergen Repp91ed3de2018-04-12 11:01:30 +0200177 test/integration/esys-pp-commands.int \
178 test/integration/esys-quote.int \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100179 test/integration/esys-rsa-encrypt-decrypt.int \
Christian Plappert624423b2018-03-27 14:36:40 +0200180 test/integration/esys-save-and-load-context.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200181 test/integration/esys-set-algorithm-set.int \
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200182 test/integration/esys-stir-random.int \
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200183 test/integration/esys-testparms.int \
Juergen Repp24f4acb2018-04-12 11:04:27 +0200184 test/integration/esys-tpm-tests.int \
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200185 test/integration/esys-tr-fromTpmPublic-key.int \
Andreas Fuchs95809e22018-04-12 12:21:06 +0200186 test/integration/esys-tr-fromTpmPublic-nv.int \
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200187 test/integration/esys-tr-getName-hierarchy.int \
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200188 test/integration/esys-unseal-password-auth.int \
Juergen Repp2e662d72018-04-12 11:05:05 +0200189 test/integration/esys-verify-signature.int \
Juergen Repp0d6e2782018-04-12 11:05:23 +0200190 test/integration/esys-zgen-2phase.int
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100191endif #ESAPI
Philip Tricca99075432018-04-25 19:02:05 -0700192endif #ENABLE_INTEGRATION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100193
194CLEANFILES += \
195 test/integration/*.log \
196 test/tpmclient/*.log \
197 test/unit/*.log
198
199if UNIT
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800200test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800201test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100202test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write
Philip Triccab8584ac2018-03-10 17:02:30 -0800203test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \
Philip Tricca850bb592018-04-03 09:29:22 -0700204 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
205 src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100206
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800207test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800208test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil)
Philip Triccaaddad782018-03-09 11:42:05 -0800209test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write
Philip Tricca850bb592018-04-03 09:29:22 -0700210test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \
211 src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \
212 src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100213
Philip Tricca88ced722018-03-14 15:24:20 -0700214test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca097cae62018-04-08 13:42:29 -0700215test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil)
216test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write
Philip Tricca88ced722018-03-14 15:24:20 -0700217test_unit_io_SOURCES = test/unit/io.c
Philip Tricca2bec2a82018-03-04 21:27:30 -0800218
Philip Triccae394cff2018-04-18 08:36:06 -0700219test_unit_key_value_parse_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
220test_unit_key_value_parse_LDADD = $(CMOCKA_LIBS) $(libutil)
221test_unit_key_value_parse_SOURCES = test/unit/key-value-parse.c
222
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800223test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100224test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800225test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100226test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c
227
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800228test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Tricca5f0ab552018-03-10 18:18:29 -0800229test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100230test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c
231
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800232test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100233test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all
Philip Tricca5f0ab552018-03-10 18:18:29 -0800234test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100235test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c
236
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800237test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800238test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100239test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c
240
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800241test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800242test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100243test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c
244
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800245test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800246test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100247test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c
248
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800249test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800250test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100251test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c
252
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800253test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800254test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100255test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c
256
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800257test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800258test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100259test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c
260
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800261test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800262test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100263test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c
264
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800265test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800266test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100267test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c
268
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800269test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800270test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100271test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c
272
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800273test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
Philip Triccaee730622018-03-10 16:40:41 -0800274test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100275test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c
Juergen Reppd947f132018-03-16 13:15:10 +0100276
277if ESAPI
278test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
279test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
280test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100281test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c
282
Andreas Fuchs5d9ce582018-03-21 19:05:47 +0100283test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
284test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
285test_unit_esys_default_tcti_LDFLAGS = \
286 -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \
287 -Wl,--wrap=Tss2_Tcti_Device_Init \
288 -Wl,--wrap=Tss2_Tcti_Mssim_Init
289test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \
290 src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h
291
Andreas Fuchs88ac7d72018-03-16 13:20:54 +0100292test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
293test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
294test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
295test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c
Juergen Repp20181512018-03-20 16:14:28 +0100296
297test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
298test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
299test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
300test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c
Andreas Fuchs4879ad32018-04-12 14:48:06 +0200301
302test_unit_esys_tcti_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
303test_unit_esys_tcti_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
304test_unit_esys_tcti_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
305test_unit_esys_tcti_rcs_SOURCES = test/unit/esys-tcti-rcs.c
Andreas Fuchs72227dc2018-04-12 14:54:07 +0200306
307test_unit_esys_tpm_rcs_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
308test_unit_esys_tpm_rcs_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
309test_unit_esys_tpm_rcs_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
310test_unit_esys_tpm_rcs_SOURCES = test/unit/esys-tpm-rcs.c
Andreas Fuchsc3cc36e2018-04-26 19:22:02 +0200311
312test_unit_esys_getpollhandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS)
313test_unit_esys_getpollhandles_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD)
314test_unit_esys_getpollhandles_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
315test_unit_esys_getpollhandles_SOURCES = test/unit/esys-getpollhandles.c
Juergen Reppd947f132018-03-16 13:15:10 +0100316endif # ESAPI
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100317endif # UNIT
318
Philip Tricca99075432018-04-25 19:02:05 -0700319if ENABLE_INTEGRATION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100320test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS)
321test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD)
322test_tpmclient_tpmclient_int_SOURCES = \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700323 test/tpmclient/tpmclient.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100324
Andreas Fuchs1c4a8112018-03-29 16:58:07 +0200325test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100326test_integration_libtest_utils_la_SOURCES = \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700327 test/integration/sapi-context-util.c test/integration/context-util.h \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100328 test/integration/sapi-util.c test/integration/sapi-util.h \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700329 test/integration/sapi-session-util.c test/integration/session-util.h \
330 test/integration/sapi-test-options.c test/integration/test-options.h \
331 test/integration/sapi-entity-util.c test/integration/test.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100332
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700333test_integration_sapi_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
334test_integration_sapi_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
335test_integration_sapi_asymmetric_encrypt_decrypt_int_SOURCES = \
336 test/integration/sapi-asymmetric-encrypt-decrypt.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100337
Tadeusz Struk6c45cbd2018-05-01 11:10:45 -0700338test_integration_sapi_primary_rsa_2K_aes128cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
339test_integration_sapi_primary_rsa_2K_aes128cfb_int_LDADD = $(TESTS_LDADD)
340test_integration_sapi_primary_rsa_2K_aes128cfb_int_SOURCES = \
341 test/integration/sapi-primary-rsa-2K-aes128cfb.int.c \
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700342 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100343
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700344test_integration_sapi_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
345test_integration_sapi_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD)
346test_integration_sapi_create_keyedhash_sha1_hmac_int_SOURCES = \
347 test/integration/sapi-create-keyedhash-sha1-hmac.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100348
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700349test_integration_sapi_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
350test_integration_sapi_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
351test_integration_sapi_encrypt_decrypt_int_SOURCES = \
352 test/integration/sapi-encrypt-decrypt.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100353
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700354test_integration_sapi_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
355test_integration_sapi_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD)
356test_integration_sapi_encrypt_decrypt_2_int_SOURCES = \
357 test/integration/sapi-encrypt-decrypt-2.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100358
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700359test_integration_sapi_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
360test_integration_sapi_evict_ctrl_int_LDADD = $(TESTS_LDADD)
361test_integration_sapi_evict_ctrl_int_SOURCES = \
362 test/integration/sapi-evict-ctrl.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100363
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700364test_integration_sapi_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
365test_integration_sapi_sys_initialize_int_LDADD = $(TESTS_LDADD)
366test_integration_sapi_sys_initialize_int_SOURCES = test/integration/sapi-sys-initialize.int.c \
367 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100368
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700369test_integration_sapi_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
370test_integration_sapi_get_random_int_LDADD = $(TESTS_LDADD)
371test_integration_sapi_get_random_int_SOURCES = test/integration/sapi-get-random.int.c \
372 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100373
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700374test_integration_sapi_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
375test_integration_sapi_abi_version_int_LDADD = $(TESTS_LDADD)
376test_integration_sapi_abi_version_int_SOURCES = test/integration/sapi-abi-version.int.c \
377 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100378
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700379test_integration_sapi_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
380test_integration_sapi_pcr_extension_int_LDADD = $(TESTS_LDADD)
381test_integration_sapi_pcr_extension_int_SOURCES = test/integration/sapi-pcr-extension.int.c \
382 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100383
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700384test_integration_sapi_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
385test_integration_sapi_self_test_int_LDADD = $(TESTS_LDADD)
386test_integration_sapi_self_test_int_SOURCES = test/integration/sapi-self-test.int.c \
387 test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100388
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700389test_integration_sapi_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
390test_integration_sapi_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD)
391test_integration_sapi_hierarchy_change_auth_int_SOURCES = \
392 test/integration/sapi-hierarchy-change-auth.int.c test/integration/main-sapi.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100393
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700394test_integration_sapi_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
395test_integration_sapi_start_auth_session_int_LDADD = $(TESTS_LDADD)
396test_integration_sapi_start_auth_session_int_SOURCES = test/integration/main-sapi.c \
397 test/integration/sapi-start-auth-session.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100398
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700399test_integration_sapi_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
400test_integration_sapi_tpm_properties_int_LDADD = $(TESTS_LDADD)
401test_integration_sapi_tpm_properties_int_SOURCES = test/integration/main-sapi.c \
402 test/integration/sapi-tpm-properties.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100403
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700404test_integration_sapi_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
405test_integration_sapi_system_api_int_LDADD = $(TESTS_LDADD)
406test_integration_sapi_system_api_int_SOURCES = test/integration/main-sapi.c \
407 test/integration/sapi-system-api.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100408
Tadeusz Struk5c9c1922018-05-01 09:52:46 -0700409test_integration_sapi_aram_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS)
410test_integration_sapi_param_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
411test_integration_sapi_param_encrypt_decrypt_int_SOURCES = \
412 test/integration/sapi-param-encrypt-decrypt.int.c test/integration/main-sapi.c
413
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100414if ESAPI
Juergen Repp607317b2018-04-12 10:34:57 +0200415test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS)
416test_integration_esys_audit_int_LDADD = $(TESTS_LDADD)
417test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
418test_integration_esys_audit_int_SOURCES = \
419 test/integration/esys-audit.int.c \
420 test/integration/main-esapi.c test/integration/test-esapi.h
421
Juergen Repp43966fc2018-04-12 10:44:53 +0200422test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS)
423test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD)
424test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
425test_integration_esys_certify_creation_int_SOURCES = \
426 test/integration/esys-certify-creation.int.c \
427 test/integration/main-esapi.c test/integration/test-esapi.h
428
Juergen Repp77b9a0e2018-04-12 10:45:15 +0200429test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS)
430test_integration_esys_certify_int_LDADD = $(TESTS_LDADD)
431test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
432test_integration_esys_certify_int_SOURCES = \
433 test/integration/esys-certify.int.c \
434 test/integration/main-esapi.c test/integration/test-esapi.h
435
Juergen Repp16455702018-04-12 10:45:49 +0200436test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS)
437test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD)
438test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
439test_integration_esys_change_eps_int_SOURCES = \
440 test/integration/esys-change-eps.int.c \
441 test/integration/main-esapi.c test/integration/test-esapi.h
442
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800443test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100444test_integration_esys_clear_int_LDADD = $(TESTS_LDADD)
445test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
446test_integration_esys_clear_int_SOURCES = \
447 test/integration/esys-clear.int.c \
448 test/integration/main-esapi.c test/integration/test-esapi.h
449
Juergen Repp658cd7d2018-04-12 10:46:25 +0200450test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS)
451test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD)
452test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
453test_integration_esys_clear_control_int_SOURCES = \
454 test/integration/esys-clear-control.int.c \
455 test/integration/main-esapi.c test/integration/test-esapi.h
456
457test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100458test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD)
459test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
460test_integration_esys_clear_session_int_SOURCES = \
461 test/integration/esys-clear.int.c \
462 test/integration/main-esapi.c test/integration/test-esapi.h
463
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800464test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100465test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD)
466test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
467test_integration_esys_clockset_int_SOURCES = \
468 test/integration/esys-clockset.int.c \
469 test/integration/main-esapi.c test/integration/test-esapi.h
470
Juergen Repp0c2d8532018-04-12 10:46:57 +0200471test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS)
472test_integration_esys_commit_int_LDADD = $(TESTS_LDADD)
473test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
474test_integration_esys_commit_int_SOURCES = \
475 test/integration/esys-commit.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_fail_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100479test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD)
480test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
481test_integration_esys_create_fail_int_SOURCES = \
482 test/integration/esys-create-fail.int.c \
483 test/integration/main-esapi.c test/integration/test-esapi.h
484
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800485test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100486test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD)
487test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
488test_integration_esys_createloaded_int_SOURCES = \
489 test/integration/esys-createloaded.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
493 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100494test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD)
495test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
496test_integration_esys_createloaded_session_int_SOURCES = \
497 test/integration/esys-createloaded.int.c \
498 test/integration/main-esapi.c test/integration/test-esapi.h
499
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800500test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100501test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD)
502test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
503test_integration_esys_create_password_auth_int_SOURCES = \
504 test/integration/esys-create-password-auth.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_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100508test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD)
509test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
510test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \
511 test/integration/esys-create-primary-hmac.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_hmac_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100515test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD)
516test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
517test_integration_esys_create_primary_hmac_int_SOURCES = \
518 test/integration/esys-create-primary-hmac.int.c \
519 test/integration/main-esapi.c test/integration/test-esapi.h
520
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200521test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \
522 -DTEST_AES_ENCRYPTION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100523test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD)
524test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
525test_integration_esys_create_session_auth_int_SOURCES = \
526 test/integration/esys-create-session-auth.int.c \
527 test/integration/main-esapi.c test/integration/test-esapi.h
528
Juergen Repp84db3992018-05-02 11:14:22 +0200529test_integration_esys_create_session_auth_bound_int_CFLAGS = $(TESTS_CFLAGS) \
530 -DTEST_AES_ENCRYPTION -DTEST_BOUND_SESSIION
531test_integration_esys_create_session_auth_bound_int_LDADD = $(TESTS_LDADD)
532test_integration_esys_create_session_auth_bound_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
533test_integration_esys_create_session_auth_bound_int_SOURCES = \
534 test/integration/esys-create-session-auth.int.c \
535 test/integration/main-esapi.c test/integration/test-esapi.h
536
Juergen Reppfd9ad1b2018-04-24 12:06:32 +0200537test_integration_esys_create_session_auth_ecc_int_CFLAGS = $(TESTS_CFLAGS) \
538 -DTEST_AES_ENCRYPTION -DTEST_ECC
539test_integration_esys_create_session_auth_ecc_int_LDADD = $(TESTS_LDADD)
540test_integration_esys_create_session_auth_ecc_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
541test_integration_esys_create_session_auth_ecc_int_SOURCES = \
542 test/integration/esys-create-session-auth.int.c \
543 test/integration/main-esapi.c test/integration/test-esapi.h
544
Juergen Reppa2cf69c2018-03-27 14:20:59 +0200545test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \
546 -DTEST_XOR_OBFUSCATION
547test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD)
548test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
549test_integration_esys_create_session_auth_xor_int_SOURCES = \
550 test/integration/esys-create-session-auth.int.c \
551 test/integration/main-esapi.c test/integration/test-esapi.h
552
Juergen Reppf477ded2018-03-27 14:40:35 +0200553test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS)
554test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD)
555test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
556test_integration_esys_duplicate_int_SOURCES = \
557 test/integration/esys-duplicate.int.c \
558 test/integration/main-esapi.c test/integration/test-esapi.h
559
Juergen Repp0d884d52018-04-12 10:48:07 +0200560test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS)
561test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD)
562test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
563test_integration_esys_ecc_parameters_int_SOURCES = \
564 test/integration/esys-ecc-parameters.int.c \
565 test/integration/main-esapi.c test/integration/test-esapi.h
566
Juergen Repp472840f2018-04-12 10:48:38 +0200567test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS)
568test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD)
569test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
570test_integration_esys_ecdh_keygen_int_SOURCES = \
571 test/integration/esys-ecdh-keygen.int.c \
572 test/integration/main-esapi.c test/integration/test-esapi.h
573
Juergen Repp73461b42018-04-12 10:49:10 +0200574test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS)
575test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD)
576test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
577test_integration_esys_ecdh_zgen_int_SOURCES = \
578 test/integration/esys-ecdh-zgen.int.c \
579 test/integration/main-esapi.c test/integration/test-esapi.h
580
Juergen Reppcd101252018-04-12 10:50:21 +0200581test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
582test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
583test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
584test_integration_esys_encrypt_decrypt_int_SOURCES = \
585 test/integration/esys-encrypt-decrypt.int.c \
586 test/integration/main-esapi.c test/integration/test-esapi.h
587
Juergen Repp7de9fbf2018-04-12 10:50:57 +0200588test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS)
589test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD)
590test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
591test_integration_esys_event_sequence_complete_int_SOURCES = \
592 test/integration/esys-event-sequence-complete.int.c \
593 test/integration/main-esapi.c test/integration/test-esapi.h
594
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800595test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100596test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD)
597test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
598test_integration_esys_evict_control_serialization_int_SOURCES = \
599 test/integration/esys-evict-control-serialization.int.c \
600 test/integration/main-esapi.c test/integration/test-esapi.h
601
Juergen Repp4ffdf0f2018-04-12 10:51:27 +0200602test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS)
603test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD)
604test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
605test_integration_esys_field_upgrade_int_SOURCES = \
606 test/integration/esys-field-upgrade.int.c \
607 test/integration/main-esapi.c test/integration/test-esapi.h
608
Juergen Repp841eeb42018-04-12 10:51:49 +0200609test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS)
610test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD)
611test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
612test_integration_esys_firmware_read_int_SOURCES = \
613 test/integration/esys-firmware-read.int.c \
614 test/integration/main-esapi.c test/integration/test-esapi.h
615
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800616test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100617test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD)
618test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
619test_integration_esys_get_capability_int_SOURCES = \
620 test/integration/esys-get-capability.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_random_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100624test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD)
625test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
626test_integration_esys_get_random_int_SOURCES = \
627 test/integration/esys-get-random.int.c \
628 test/integration/main-esapi.c test/integration/test-esapi.h
629
Juergen Reppd6ed8f22018-04-12 10:52:19 +0200630test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS)
631test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD)
632test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
633test_integration_esys_get_time_int_SOURCES = \
634 test/integration/esys-get-time.int.c \
635 test/integration/main-esapi.c test/integration/test-esapi.h
636
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800637test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100638test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD)
639test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
640test_integration_esys_hashsequencestart_int_SOURCES = \
641 test/integration/esys-hashsequencestart.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
645 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100646test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD)
647test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
648test_integration_esys_hashsequencestart_session_int_SOURCES = \
649 test/integration/esys-hashsequencestart.int.c \
650 test/integration/main-esapi.c test/integration/test-esapi.h
651
Juergen Repp9f394f22018-04-12 10:52:35 +0200652test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS)
653test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD)
654test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
655test_integration_esys_hierarchy_control_int_SOURCES = \
656 test/integration/esys-hierarchy-control.int.c \
657 test/integration/main-esapi.c test/integration/test-esapi.h
658
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800659test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100660test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD)
661test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
662test_integration_esys_hmacsequencestart_int_SOURCES = \
663 test/integration/esys-hmacsequencestart.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
667 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100668test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD)
669test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
670test_integration_esys_hmacsequencestart_session_int_SOURCES = \
671 test/integration/esys-hmacsequencestart.int.c \
672 test/integration/main-esapi.c test/integration/test-esapi.h
673
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800674test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100675test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD)
676test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
677test_integration_esys_hierarchychangeauth_int_SOURCES = \
678 test/integration/esys-hierarchychangeauth.int.c \
679 test/integration/main-esapi.c test/integration/test-esapi.h
680
Juergen Reppefacad12018-04-12 10:53:12 +0200681test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS)
682test_integration_esys_import_int_LDADD = $(TESTS_LDADD)
683test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
684test_integration_esys_import_int_SOURCES = \
685 test/integration/esys-import.int.c \
686 test/integration/main-esapi.c test/integration/test-esapi.h
687
Juergen Repp53028832018-04-12 10:53:30 +0200688test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS)
689test_integration_esys_lock_int_LDADD = $(TESTS_LDADD)
690test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
691test_integration_esys_lock_int_SOURCES = \
692 test/integration/esys-lock.int.c \
693 test/integration/main-esapi.c test/integration/test-esapi.h
694
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800695test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100696test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD)
697test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
698test_integration_esys_make_credential_int_SOURCES = \
699 test/integration/esys-make-credential.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
703 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100704test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD)
705test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
706test_integration_esys_make_credential_session_int_SOURCES = \
707 test/integration/esys-make-credential.int.c \
708 test/integration/main-esapi.c test/integration/test-esapi.h
709
Juergen Repp090bcef2018-04-12 10:53:49 +0200710test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS)
711test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD)
712test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
713test_integration_esys_nv_certify_int_SOURCES = \
714 test/integration/esys-nv-certify.int.c \
715 test/integration/main-esapi.c test/integration/test-esapi.h
716
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800717test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100718test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD)
719test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
720test_integration_esys_nv_ram_counter_int_SOURCES = \
721 test/integration/esys-nv-ram-counter.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
725 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100726test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD)
727test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
728test_integration_esys_nv_ram_counter_session_int_SOURCES = \
729 test/integration/esys-nv-ram-counter.int.c \
730 test/integration/main-esapi.c test/integration/test-esapi.h
731
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800732test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100733test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD)
734test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
735test_integration_esys_nv_ram_extend_index_int_SOURCES = \
736 test/integration/esys-nv-ram-extend-index.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_session_int_CFLAGS = $(TESTS_CFLAGS) \
740 -DTEST_SESSION
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100741test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD)
742test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
743test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \
744 test/integration/esys-nv-ram-extend-index.int.c \
745 test/integration/main-esapi.c test/integration/test-esapi.h
746
Juergen Repp4f8ad602018-04-12 10:54:45 +0200747test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \
748 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \
749 -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK
750test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD)
751test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
752test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200753 test/integration/esys-nv-ram-ordinary-index.int.c \
754 test/integration/main-esapi.c test/integration/test-esapi.h
755
Juergen Repp4f8ad602018-04-12 10:54:45 +0200756test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
757 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
758 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK
759test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD)
760test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
761test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \
762 test/integration/esys-nv-ram-ordinary-index.int.c \
763 test/integration/main-esapi.c test/integration/test-esapi.h
764
765test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \
766 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
767 -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK
768test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD)
769test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
770test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \
771 test/integration/esys-nv-ram-ordinary-index.int.c \
772 test/integration/main-esapi.c test/integration/test-esapi.h
773
774test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \
775 -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \
776 -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK
777test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD)
778test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
779test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \
Andreas Fuchs8a191792018-04-10 14:34:58 +0200780 test/integration/esys-nv-ram-ordinary-index.int.c \
781 test/integration/main-esapi.c test/integration/test-esapi.h
782
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800783test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100784test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD)
785test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
786test_integration_esys_nv_ram_set_bits_int_SOURCES = \
787 test/integration/esys-nv-ram-set-bits.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100788 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_session_int_CFLAGS = $(TESTS_CFLAGS) \
791 -DTEST_SESSION
Juergen Repp110a68a2018-03-08 11:51:30 +0100792test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD)
793test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
794test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \
795 test/integration/esys-nv-ram-set-bits.int.c \
796 test/integration/main-esapi.c test/integration/test-esapi.h
797
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800798test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100799test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD)
800test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
801test_integration_esys_object_changeauth_int_SOURCES = \
802 test/integration/esys-object-changeauth.int.c \
803 test/integration/main-esapi.c test/integration/test-esapi.h
804
Juergen Repped818052018-04-12 10:56:38 +0200805test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS)
806test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD)
807test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
808test_integration_esys_policy_authorize_int_SOURCES = \
809 test/integration/esys-policy-authorize.int.c \
810 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200811 test/integration/main-esapi.c test/integration/test-esapi.h
812
Juergen Reppd93eb3d2018-04-12 11:29:16 +0200813test_integration_esys_policy_regression_int_CFLAGS = $(TESTS_CFLAGS)
814test_integration_esys_policy_regression_int_LDADD = $(TESTS_LDADD)
815test_integration_esys_policy_regression_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
816test_integration_esys_policy_regression_int_SOURCES = \
817 test/integration/esys-policy-regression.int.c \
818 test/integration/main-esapi.c test/integration/test-esapi.h
819
Juergen Repp897c75d2018-04-12 10:57:26 +0200820test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS)
821test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD)
822test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
823test_integration_esys_policy_ticket_int_SOURCES = \
824 test/integration/esys-policy-ticket.int.c \
825 src/tss2-esys/esys_crypto.c \
Juergen Repp731135d2018-03-27 14:43:03 +0200826 test/integration/main-esapi.c test/integration/test-esapi.h
827
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800828test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100829test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD)
830test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
831test_integration_esys_policy_nv_changeauth_int_SOURCES = \
832 test/integration/esys-policy-nv-changeauth.int.c \
833 test/integration/main-esapi.c test/integration/test-esapi.h
834
Juergen Repp4cac2822018-04-12 10:58:39 +0200835test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS)
836test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD)
837test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
838test_integration_esys_policy_nv_undefine_special_int_SOURCES = \
839 test/integration/esys-policy-nv-undefine-special.int.c \
840 test/integration/main-esapi.c test/integration/test-esapi.h
841
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800842test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS)
Juergen Repp110a68a2018-03-08 11:51:30 +0100843test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD)
844test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
845test_integration_esys_policy_password_int_SOURCES = \
846 test/integration/esys-policy-password.int.c \
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100847 test/integration/main-esapi.c test/integration/test-esapi.h
848
Juergen Repped818052018-04-12 10:56:38 +0200849test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS)
850test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD)
851test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
852test_integration_esys_pcr_basic_int_SOURCES = \
853 test/integration/esys-pcr-basic.int.c \
854 test/integration/main-esapi.c test/integration/test-esapi.h
855
Juergen Repp897c75d2018-04-12 10:57:26 +0200856test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS)
857test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD)
858test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
859test_integration_esys_pcr_auth_value_int_SOURCES = \
860 test/integration/esys-pcr-auth-value.int.c \
861 test/integration/main-esapi.c test/integration/test-esapi.h
862
Juergen Repp91ed3de2018-04-12 11:01:30 +0200863test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS)
864test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD)
865test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
866test_integration_esys_pp_commands_int_SOURCES = \
867 test/integration/esys-pp-commands.int.c \
868 test/integration/main-esapi.c test/integration/test-esapi.h
869
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800870test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100871test_integration_esys_quote_int_LDADD = $(TESTS_LDADD)
872test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
873test_integration_esys_quote_int_SOURCES = \
874 test/integration/esys-quote.int.c \
875 test/integration/main-esapi.c test/integration/test-esapi.h
876
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800877test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100878test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD)
879test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
880test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \
881 test/integration/esys-rsa-encrypt-decrypt.int.c \
882 test/integration/main-esapi.c test/integration/test-esapi.h
883
Philip Tricca8ffd3c42018-03-09 16:27:24 -0800884test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS)
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100885test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD)
886test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
887test_integration_esys_save_and_load_context_int_SOURCES = \
888 test/integration/esys-save-and-load-context.int.c \
889 test/integration/main-esapi.c test/integration/test-esapi.h
Christian Plappert624423b2018-03-27 14:36:40 +0200890
Juergen Repp0a3c1bb2018-04-12 11:02:34 +0200891test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS)
892test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD)
893test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
894test_integration_esys_set_algorithm_set_int_SOURCES = \
895 test/integration/esys-set-algorithm-set.int.c \
896 test/integration/main-esapi.c test/integration/test-esapi.h
897
Juergen Reppa3c6e2d2018-04-12 11:03:30 +0200898test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS)
899test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD)
900test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
901test_integration_esys_stir_random_int_SOURCES = \
902 test/integration/esys-stir-random.int.c \
903 test/integration/main-esapi.c test/integration/test-esapi.h
904
Juergen Reppcd6c1a12018-04-12 11:04:06 +0200905test_integration_esys_testparms_int_CFLAGS = $(TESTS_CFLAGS)
906test_integration_esys_testparms_int_LDADD = $(TESTS_LDADD)
907test_integration_esys_testparms_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
908test_integration_esys_testparms_int_SOURCES = \
909 test/integration/esys-testparms.int.c \
910 test/integration/main-esapi.c test/integration/test-esapi.h
911
Juergen Repp24f4acb2018-04-12 11:04:27 +0200912test_integration_esys_tpm_tests_int_CFLAGS = $(TESTS_CFLAGS)
913test_integration_esys_tpm_tests_int_LDADD = $(TESTS_LDADD)
914test_integration_esys_tpm_tests_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
915test_integration_esys_tpm_tests_int_SOURCES = \
916 test/integration/esys-tpm-tests.int.c \
917 test/integration/main-esapi.c test/integration/test-esapi.h
918
Andreas Fuchs722d85f2018-04-12 14:05:40 +0200919test_integration_esys_tr_fromTpmPublic_key_int_CFLAGS = $(TESTS_CFLAGS)
920test_integration_esys_tr_fromTpmPublic_key_int_LDADD = $(TESTS_LDADD)
921test_integration_esys_tr_fromTpmPublic_key_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
922test_integration_esys_tr_fromTpmPublic_key_int_SOURCES = \
923 test/integration/esys-tr-fromTpmPublic-key.int.c \
924 test/integration/main-esapi.c test/integration/test-esapi.h
925
Andreas Fuchs95809e22018-04-12 12:21:06 +0200926test_integration_esys_tr_fromTpmPublic_nv_int_CFLAGS = $(TESTS_CFLAGS)
927test_integration_esys_tr_fromTpmPublic_nv_int_LDADD = $(TESTS_LDADD)
928test_integration_esys_tr_fromTpmPublic_nv_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
929test_integration_esys_tr_fromTpmPublic_nv_int_SOURCES = \
930 test/integration/esys-tr-fromTpmPublic-nv.int.c \
931 test/integration/main-esapi.c test/integration/test-esapi.h
932
Andreas Fuchse4af3a62018-04-12 14:20:37 +0200933test_integration_esys_tr_getName_hierarchy_int_CFLAGS = $(TESTS_CFLAGS)
934test_integration_esys_tr_getName_hierarchy_int_LDADD = $(TESTS_LDADD)
935test_integration_esys_tr_getName_hierarchy_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
936test_integration_esys_tr_getName_hierarchy_int_SOURCES = \
937 test/integration/esys-tr-getName-hierarchy.int.c \
938 test/integration/main-esapi.c test/integration/test-esapi.h
939
Christian Plappert624423b2018-03-27 14:36:40 +0200940test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS)
941test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD)
942test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
943test_integration_esys_unseal_password_auth_int_SOURCES = \
944 test/integration/esys-unseal-password-auth.int.c \
945 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp2e662d72018-04-12 11:05:05 +0200946
947test_integration_esys_verify_signature_int_CFLAGS = $(TESTS_CFLAGS)
948test_integration_esys_verify_signature_int_LDADD = $(TESTS_LDADD)
949test_integration_esys_verify_signature_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
950test_integration_esys_verify_signature_int_SOURCES = \
951 test/integration/esys-verify-signature.int.c \
952 test/integration/main-esapi.c test/integration/test-esapi.h
Juergen Repp0d6e2782018-04-12 11:05:23 +0200953
954test_integration_esys_zgen_2phase_int_CFLAGS = $(TESTS_CFLAGS)
955test_integration_esys_zgen_2phase_int_LDADD = $(TESTS_LDADD)
956test_integration_esys_zgen_2phase_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt
957test_integration_esys_zgen_2phase_int_SOURCES = \
958 test/integration/esys-zgen-2phase.int.c \
959 test/integration/main-esapi.c test/integration/test-esapi.h
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100960endif #ESAPI
961
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700962test_integration_sapi_policy_template_int_CFLAGS = $(TESTS_CFLAGS)
963test_integration_sapi_policy_template_int_LDADD = $(TESTS_LDADD)
964test_integration_sapi_policy_template_int_SOURCES = test/integration/main-sapi.c \
965 test/integration/sapi-policy-template.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100966
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700967test_integration_sapi_create_loaded_int_CFLAGS = $(TESTS_CFLAGS)
968test_integration_sapi_create_loaded_int_LDADD = $(TESTS_LDADD)
969test_integration_sapi_create_loaded_int_SOURCES = test/integration/main-sapi.c \
970 test/integration/sapi-create-loaded.int.c
Andreas Fuchs0dc7c292018-02-28 20:01:13 +0100971
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700972test_integration_sapi_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS)
973test_integration_sapi_policy_authorizeNV_int_LDADD = $(TESTS_LDADD)
974test_integration_sapi_policy_authorizeNV_int_SOURCES = test/integration/main-sapi.c \
975 test/integration/sapi-policy-authorizeNV.int.c
Tadeusz Strukcbde8662018-03-08 15:11:47 -0800976
Tadeusz Strukbd9a4942018-04-27 14:56:59 -0700977test_integration_sapi_command_cancel_int_CFLAGS = $(TESTS_CFLAGS)
978test_integration_sapi_command_cancel_int_LDADD = $(TESTS_LDADD)
979test_integration_sapi_command_cancel_int_SOURCES = test/integration/main-sapi.c \
980 test/integration/sapi-command-cancel.int.c
Philip Tricca99075432018-04-25 19:02:05 -0700981endif #ENABLE_INTEGRATION