Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 1 | #;**********************************************************************; |
Philip Tricca | 49635f4 | 2018-03-10 19:19:58 -0800 | [diff] [blame] | 2 | # Copyright (c) 2015 - 2018 Intel Corporation |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 3 | # 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 Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 29 | TESTS_CFLAGS = $(AM_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/src/tss2-mu \ |
Andreas Fuchs | baeb2be | 2018-03-29 15:39:50 +0200 | [diff] [blame] | 30 | -I$(srcdir)/src/tss2-sys -I$(srcdir)/src/tss2-esys \ |
Andreas Fuchs | 1c4a811 | 2018-03-29 16:58:07 +0200 | [diff] [blame] | 31 | -Wno-unused-parameter -Wno-missing-field-initializers |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 32 | TESTS_LDADD = $(noinst_LTLIBRARIES) $(lib_LTLIBRARIES) $(LIBCRYPTO_LIBS) $(libutil) |
| 33 | |
| 34 | # test harness configuration |
| 35 | TEST_EXTENSIONS = .int |
| 36 | INT_LOG_COMPILER = $(srcdir)/script/int-log-compiler.sh |
| 37 | INT_LOG_FLAGS = --simulator-bin=$(SIMULATOR_BIN) |
| 38 | EXTRA_DIST += $(INT_LOG_COMPILER) |
| 39 | |
| 40 | check-programs: $(check_PROGRAMS) |
| 41 | |
| 42 | check_PROGRAMS = $(TESTS_UNIT) $(TESTS_INTEGRATION) |
| 43 | TESTS = $(check_PROGRAMS) |
| 44 | |
Andreas Fuchs | a0eda36 | 2018-03-28 11:56:42 +0200 | [diff] [blame] | 45 | if SIMULATOR_BIN |
| 46 | noinst_PROGRAMS += test/helper/tpm_startup |
| 47 | test_helper_tpm_startup_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration |
| 48 | test_helper_tpm_startup_LDFLAGS = $(TESTS_LDFLAGS) |
| 49 | test_helper_tpm_startup_LDADD = $(TESTS_LDADD) |
| 50 | test_helper_tpm_startup_SOURCES = test/helper/tpm_startup.c |
Andreas Fuchs | a0eda36 | 2018-03-28 11:56:42 +0200 | [diff] [blame] | 51 | |
Andreas Fuchs | 6ab3fd8 | 2018-03-28 12:23:19 +0200 | [diff] [blame] | 52 | noinst_PROGRAMS += test/helper/tpm_transientempty |
| 53 | test_helper_tpm_transientempty_CFLAGS = $(TESTS_CFLAGS) -I$(srcdir)/test/integration |
| 54 | test_helper_tpm_transientempty_LDFLAGS = $(TESTS_LDFLAGS) |
| 55 | test_helper_tpm_transientempty_LDADD = $(TESTS_LDADD) |
| 56 | test_helper_tpm_transientempty_SOURCES = test/helper/tpm_transientempty.c |
Philip Tricca | 216ac49 | 2018-03-30 09:21:24 -0700 | [diff] [blame] | 57 | endif #SIMULATOR_BIN |
Andreas Fuchs | 6ab3fd8 | 2018-03-28 12:23:19 +0200 | [diff] [blame] | 58 | |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 59 | if UNIT |
| 60 | TESTS_UNIT = \ |
| 61 | test/unit/CommonPreparePrologue \ |
| 62 | test/unit/CopyCommandHeader \ |
| 63 | test/unit/GetNumHandles \ |
Philip Tricca | 88ced72 | 2018-03-14 15:24:20 -0700 | [diff] [blame] | 64 | test/unit/io \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 65 | test/unit/tcti-device \ |
Philip Tricca | addad78 | 2018-03-09 11:42:05 -0800 | [diff] [blame] | 66 | test/unit/tcti-mssim \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 67 | 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 Repp | d947f13 | 2018-03-16 13:15:10 +0100 | [diff] [blame] | 77 | if ESAPI |
| 78 | TESTS_UNIT += \ |
Andreas Fuchs | 88ac7d7 | 2018-03-16 13:20:54 +0100 | [diff] [blame] | 79 | test/unit/esys-context-null \ |
Andreas Fuchs | 5d9ce58 | 2018-03-21 19:05:47 +0100 | [diff] [blame] | 80 | test/unit/esys-default-tcti \ |
Juergen Repp | 2018151 | 2018-03-20 16:14:28 +0100 | [diff] [blame] | 81 | test/unit/esys-resubmissions \ |
| 82 | test/unit/esys-sequence-finish |
Juergen Repp | d947f13 | 2018-03-16 13:15:10 +0100 | [diff] [blame] | 83 | endif ESAPI |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 84 | endif #UNIT |
| 85 | |
| 86 | if SIMULATOR_BIN |
| 87 | noinst_LTLIBRARIES += test/integration/libtest_utils.la |
| 88 | TESTS_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 Struk | cbde866 | 2018-03-08 15:11:47 -0800 | [diff] [blame] | 107 | test/integration/command-cancel.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 108 | test/tpmclient/tpmclient.int |
| 109 | if ESAPI |
| 110 | TESTS_INTEGRATION += \ |
Juergen Repp | 607317b | 2018-04-12 10:34:57 +0200 | [diff] [blame] | 111 | test/integration/esys-audit.int \ |
Juergen Repp | 43966fc | 2018-04-12 10:44:53 +0200 | [diff] [blame] | 112 | test/integration/esys-certify-creation.int \ |
Juergen Repp | 77b9a0e | 2018-04-12 10:45:15 +0200 | [diff] [blame] | 113 | test/integration/esys-certify.int \ |
Juergen Repp | 1645570 | 2018-04-12 10:45:49 +0200 | [diff] [blame] | 114 | test/integration/esys-change-eps.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 115 | test/integration/esys-clear.int \ |
Juergen Repp | 658cd7d | 2018-04-12 10:46:25 +0200 | [diff] [blame] | 116 | test/integration/esys-clear-control.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 117 | test/integration/esys-clear-session.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 118 | test/integration/esys-clockset.int \ |
Juergen Repp | 0c2d853 | 2018-04-12 10:46:57 +0200 | [diff] [blame] | 119 | test/integration/esys-commit.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 120 | test/integration/esys-create-fail.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 121 | test/integration/esys-createloaded.int \ |
| 122 | test/integration/esys-createloaded-session.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 123 | 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 Repp | a2cf69c | 2018-03-27 14:20:59 +0200 | [diff] [blame] | 127 | test/integration/esys-create-session-auth-xor.int \ |
Juergen Repp | f477ded | 2018-03-27 14:40:35 +0200 | [diff] [blame] | 128 | test/integration/esys-duplicate.int \ |
Juergen Repp | 0d884d5 | 2018-04-12 10:48:07 +0200 | [diff] [blame] | 129 | test/integration/esys-ecc-parameters.int \ |
Juergen Repp | 472840f | 2018-04-12 10:48:38 +0200 | [diff] [blame] | 130 | test/integration/esys-ecdh-keygen.int \ |
Juergen Repp | 73461b4 | 2018-04-12 10:49:10 +0200 | [diff] [blame] | 131 | test/integration/esys-ecdh-zgen.int \ |
Juergen Repp | cd10125 | 2018-04-12 10:50:21 +0200 | [diff] [blame] | 132 | test/integration/esys-encrypt-decrypt.int \ |
Juergen Repp | 7de9fbf | 2018-04-12 10:50:57 +0200 | [diff] [blame] | 133 | test/integration/esys-event-sequence-complete.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 134 | test/integration/esys-evict-control-serialization.int \ |
Juergen Repp | 4ffdf0f | 2018-04-12 10:51:27 +0200 | [diff] [blame] | 135 | test/integration/esys-field-upgrade.int \ |
Juergen Repp | 841eeb4 | 2018-04-12 10:51:49 +0200 | [diff] [blame] | 136 | test/integration/esys-firmware-read.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 137 | test/integration/esys-get-capability.int \ |
| 138 | test/integration/esys-get-random.int \ |
Juergen Repp | d6ed8f2 | 2018-04-12 10:52:19 +0200 | [diff] [blame] | 139 | test/integration/esys-get-time.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 140 | test/integration/esys-hashsequencestart.int \ |
| 141 | test/integration/esys-hashsequencestart-session.int \ |
| 142 | test/integration/esys-hierarchychangeauth.int \ |
Juergen Repp | 9f394f2 | 2018-04-12 10:52:35 +0200 | [diff] [blame] | 143 | test/integration/esys-hierarchy-control.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 144 | test/integration/esys-hmacsequencestart.int \ |
| 145 | test/integration/esys-hmacsequencestart-session.int \ |
Juergen Repp | efacad1 | 2018-04-12 10:53:12 +0200 | [diff] [blame] | 146 | test/integration/esys-import.int \ |
Juergen Repp | 5302883 | 2018-04-12 10:53:30 +0200 | [diff] [blame] | 147 | test/integration/esys-lock.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 148 | test/integration/esys-make-credential.int \ |
| 149 | test/integration/esys-make-credential-session.int \ |
Juergen Repp | 090bcef | 2018-04-12 10:53:49 +0200 | [diff] [blame] | 150 | test/integration/esys-nv-certify.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 151 | test/integration/esys-nv-ram-counter.int \ |
| 152 | test/integration/esys-nv-ram-counter-session.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 153 | test/integration/esys-nv-ram-extend-index.int \ |
| 154 | test/integration/esys-nv-ram-extend-index-session.int \ |
Juergen Repp | 4f8ad60 | 2018-04-12 10:54:45 +0200 | [diff] [blame] | 155 | 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 Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 159 | test/integration/esys-nv-ram-set-bits.int \ |
| 160 | test/integration/esys-nv-ram-set-bits-session.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 161 | test/integration/esys-object-changeauth.int \ |
Juergen Repp | 731135d | 2018-03-27 14:43:03 +0200 | [diff] [blame] | 162 | test/integration/esys-pcr-basic.int \ |
| 163 | test/integration/esys-pcr-auth-value.int \ |
Juergen Repp | ed81805 | 2018-04-12 10:56:38 +0200 | [diff] [blame] | 164 | test/integration/esys-policy-authorize.int \ |
Juergen Repp | 897c75d | 2018-04-12 10:57:26 +0200 | [diff] [blame] | 165 | test/integration/esys-policy-ticket.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 166 | test/integration/esys-policy-nv-changeauth.int \ |
Juergen Repp | 4cac282 | 2018-04-12 10:58:39 +0200 | [diff] [blame] | 167 | test/integration/esys-policy-nv-undefine-special.int \ |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 168 | test/integration/esys-policy-password.int \ |
Juergen Repp | 91ed3de | 2018-04-12 11:01:30 +0200 | [diff] [blame] | 169 | test/integration/esys-pp-commands.int \ |
| 170 | test/integration/esys-quote.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 171 | test/integration/esys-rsa-encrypt-decrypt.int \ |
Christian Plappert | 624423b | 2018-03-27 14:36:40 +0200 | [diff] [blame] | 172 | test/integration/esys-save-and-load-context.int \ |
Juergen Repp | 0a3c1bb | 2018-04-12 11:02:34 +0200 | [diff] [blame] | 173 | test/integration/esys-set-algorithm-set.int \ |
Juergen Repp | a3c6e2d | 2018-04-12 11:03:30 +0200 | [diff] [blame^] | 174 | test/integration/esys-stir-random.int \ |
Juergen Repp | 0a3c1bb | 2018-04-12 11:02:34 +0200 | [diff] [blame] | 175 | test/integration/esys-unseal-password-auth.int \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 176 | endif #ESAPI |
| 177 | endif #SIMULATOR_BIN |
| 178 | |
| 179 | CLEANFILES += \ |
| 180 | test/integration/*.log \ |
| 181 | test/tpmclient/*.log \ |
| 182 | test/unit/*.log |
| 183 | |
| 184 | if UNIT |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 185 | test_unit_tcti_device_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 186 | test_unit_tcti_device_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 187 | test_unit_tcti_device_LDFLAGS = -Wl,--wrap=read -Wl,-wrap=write |
Philip Tricca | b8584ac | 2018-03-10 17:02:30 -0800 | [diff] [blame] | 188 | test_unit_tcti_device_SOURCES = test/unit/tcti-device.c \ |
Philip Tricca | 850bb59 | 2018-04-03 09:29:22 -0700 | [diff] [blame] | 189 | src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \ |
| 190 | src/tss2-tcti/tcti-device.c src/tss2-tcti/tcti-device.h |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 191 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 192 | test_unit_tcti_mssim_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) $(URIPARSER_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 193 | test_unit_tcti_mssim_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(URIPARSER_LIBS) $(libutil) |
Philip Tricca | addad78 | 2018-03-09 11:42:05 -0800 | [diff] [blame] | 194 | test_unit_tcti_mssim_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=select,--wrap=write |
Philip Tricca | 850bb59 | 2018-04-03 09:29:22 -0700 | [diff] [blame] | 195 | test_unit_tcti_mssim_SOURCES = test/unit/tcti-mssim.c \ |
| 196 | src/tss2-tcti/tcti-common.c src/tss2-tcti/tcti-common.h \ |
| 197 | src/tss2-tcti/tcti-mssim.c src/tss2-tcti/tcti-mssim.h |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 198 | |
Philip Tricca | 88ced72 | 2018-03-14 15:24:20 -0700 | [diff] [blame] | 199 | test_unit_io_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | 097cae6 | 2018-04-08 13:42:29 -0700 | [diff] [blame] | 200 | test_unit_io_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) $(libutil) |
| 201 | test_unit_io_LDFLAGS = -Wl,--wrap=connect,--wrap=read,--wrap=socket,--wrap=write |
Philip Tricca | 88ced72 | 2018-03-14 15:24:20 -0700 | [diff] [blame] | 202 | test_unit_io_SOURCES = test/unit/io.c |
Philip Tricca | 2bec2a8 | 2018-03-04 21:27:30 -0800 | [diff] [blame] | 203 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 204 | test_unit_CommonPreparePrologue_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 205 | test_unit_CommonPreparePrologue_LDFLAGS = -Wl,--unresolved-symbols=ignore-all |
Philip Tricca | 5f0ab55 | 2018-03-10 18:18:29 -0800 | [diff] [blame] | 206 | test_unit_CommonPreparePrologue_LDADD = $(CMOCKA_LIBS) $(libtss2_sys) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 207 | test_unit_CommonPreparePrologue_SOURCES = test/unit/CommonPreparePrologue.c |
| 208 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 209 | test_unit_GetNumHandles_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | 5f0ab55 | 2018-03-10 18:18:29 -0800 | [diff] [blame] | 210 | test_unit_GetNumHandles_LDADD = $(CMOCKA_LIBS) $(libtss2_sys) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 211 | test_unit_GetNumHandles_SOURCES = test/unit/GetNumHandles.c |
| 212 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 213 | test_unit_CopyCommandHeader_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 214 | test_unit_CopyCommandHeader_LDFLAGS = -Wl,--unresolved-symbols=ignore-all |
Philip Tricca | 5f0ab55 | 2018-03-10 18:18:29 -0800 | [diff] [blame] | 215 | test_unit_CopyCommandHeader_LDADD = $(CMOCKA_LIBS) $(libtss2_sys) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 216 | test_unit_CopyCommandHeader_SOURCES = test/unit/CopyCommandHeader.c |
| 217 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 218 | test_unit_UINT8_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 219 | test_unit_UINT8_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 220 | test_unit_UINT8_marshal_SOURCES = test/unit/UINT8-marshal.c |
| 221 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 222 | test_unit_UINT16_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 223 | test_unit_UINT16_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 224 | test_unit_UINT16_marshal_SOURCES = test/unit/UINT16-marshal.c |
| 225 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 226 | test_unit_UINT32_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 227 | test_unit_UINT32_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 228 | test_unit_UINT32_marshal_SOURCES = test/unit/UINT32-marshal.c |
| 229 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 230 | test_unit_UINT64_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 231 | test_unit_UINT64_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 232 | test_unit_UINT64_marshal_SOURCES = test/unit/UINT64-marshal.c |
| 233 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 234 | test_unit_TPMA_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 235 | test_unit_TPMA_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 236 | test_unit_TPMA_marshal_SOURCES = test/unit/TPMA-marshal.c |
| 237 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 238 | test_unit_TPM2B_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 239 | test_unit_TPM2B_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 240 | test_unit_TPM2B_marshal_SOURCES = test/unit/TPM2B-marshal.c |
| 241 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 242 | test_unit_TPMS_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 243 | test_unit_TPMS_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 244 | test_unit_TPMS_marshal_SOURCES = test/unit/TPMS-marshal.c |
| 245 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 246 | test_unit_TPML_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 247 | test_unit_TPML_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 248 | test_unit_TPML_marshal_SOURCES = test/unit/TPML-marshal.c |
| 249 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 250 | test_unit_TPMT_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 251 | test_unit_TPMT_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 252 | test_unit_TPMT_marshal_SOURCES = test/unit/TPMT-marshal.c |
| 253 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 254 | test_unit_TPMU_marshal_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
Philip Tricca | ee73062 | 2018-03-10 16:40:41 -0800 | [diff] [blame] | 255 | test_unit_TPMU_marshal_LDADD = $(CMOCKA_LIBS) $(libtss2_mu) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 256 | test_unit_TPMU_marshal_SOURCES = test/unit/TPMU-marshal.c |
Juergen Repp | d947f13 | 2018-03-16 13:15:10 +0100 | [diff] [blame] | 257 | |
| 258 | if ESAPI |
| 259 | test_unit_esys_context_null_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
| 260 | test_unit_esys_context_null_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD) |
| 261 | test_unit_esys_context_null_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
Andreas Fuchs | 88ac7d7 | 2018-03-16 13:20:54 +0100 | [diff] [blame] | 262 | test_unit_esys_context_null_SOURCES = test/unit/esys-context-null.c |
| 263 | |
Andreas Fuchs | 5d9ce58 | 2018-03-21 19:05:47 +0100 | [diff] [blame] | 264 | test_unit_esys_default_tcti_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
| 265 | test_unit_esys_default_tcti_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD) |
| 266 | test_unit_esys_default_tcti_LDFLAGS = \ |
| 267 | -Wl,--wrap=dlopen -Wl,-wrap=dlclose -Wl,-wrap=dlsym \ |
| 268 | -Wl,--wrap=Tss2_Tcti_Device_Init \ |
| 269 | -Wl,--wrap=Tss2_Tcti_Mssim_Init |
| 270 | test_unit_esys_default_tcti_SOURCES = test/unit/esys-default-tcti.c \ |
| 271 | src/tss2-esys/esys_tcti_default.c src/tss2-esys/esys_tcti_default.h |
| 272 | |
Andreas Fuchs | 88ac7d7 | 2018-03-16 13:20:54 +0100 | [diff] [blame] | 273 | test_unit_esys_resubmissions_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
| 274 | test_unit_esys_resubmissions_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD) |
| 275 | test_unit_esys_resubmissions_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 276 | test_unit_esys_resubmissions_SOURCES = test/unit/esys-resubmissions.c |
Juergen Repp | 2018151 | 2018-03-20 16:14:28 +0100 | [diff] [blame] | 277 | |
| 278 | test_unit_esys_sequence_finish_CFLAGS = $(CMOCKA_CFLAGS) $(TESTS_CFLAGS) |
| 279 | test_unit_esys_sequence_finish_LDADD = $(CMOCKA_LIBS) $(TESTS_LDADD) |
| 280 | test_unit_esys_sequence_finish_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 281 | test_unit_esys_sequence_finish_SOURCES = test/unit/esys-sequence-finish.c |
Juergen Repp | d947f13 | 2018-03-16 13:15:10 +0100 | [diff] [blame] | 282 | endif # ESAPI |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 283 | endif # UNIT |
| 284 | |
| 285 | if SIMULATOR_BIN |
| 286 | test_tpmclient_tpmclient_int_CFLAGS = $(AM_CFLAGS) -U_FORTIFY_SOURCE $(TESTS_CFLAGS) |
| 287 | test_tpmclient_tpmclient_int_LDADD = $(TESTS_LDADD) |
| 288 | test_tpmclient_tpmclient_int_SOURCES = \ |
Tadeusz Struk | 435467e | 2018-04-04 14:00:50 -0700 | [diff] [blame] | 289 | test/tpmclient/DecryptEncrypt.c \ |
Tadeusz Struk | 85208a4 | 2018-04-09 21:32:41 -0700 | [diff] [blame] | 290 | test/tpmclient/tpmclient.int.c test/tpmclient/tpmclient.int.h \ |
| 291 | test/integration/main.c |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 292 | |
Andreas Fuchs | 1c4a811 | 2018-03-29 16:58:07 +0200 | [diff] [blame] | 293 | test_integration_libtest_utils_la_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 294 | test_integration_libtest_utils_la_SOURCES = \ |
| 295 | test/integration/context-util.c test/integration/context-util.h \ |
| 296 | test/integration/sapi-util.c test/integration/sapi-util.h \ |
Tadeusz Struk | 85208a4 | 2018-04-09 21:32:41 -0700 | [diff] [blame] | 297 | test/integration/session-util.c test/integration/session-util.h \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 298 | test/integration/test-options.c test/integration/test-options.h \ |
Tadeusz Struk | 134c93c | 2018-04-17 16:35:00 -0700 | [diff] [blame] | 299 | test/integration/entity-util.c test/integration/test.h |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 300 | |
| 301 | test_integration_asymmetric_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 302 | test_integration_asymmetric_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 303 | test_integration_asymmetric_encrypt_decrypt_int_SOURCES = \ |
| 304 | test/integration/asymmetric-encrypt-decrypt.int.c test/integration/main.c |
| 305 | |
| 306 | test_integration_create_primary_rsa_2048_aes_128_cfb_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 307 | test_integration_create_primary_rsa_2048_aes_128_cfb_int_LDADD = $(TESTS_LDADD) |
| 308 | test_integration_create_primary_rsa_2048_aes_128_cfb_int_SOURCES = \ |
| 309 | test/integration/create-primary-rsa-2048-aes-128-cfb.int.c \ |
| 310 | test/integration/main.c |
| 311 | |
| 312 | test_integration_create_keyedhash_sha1_hmac_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 313 | test_integration_create_keyedhash_sha1_hmac_int_LDADD = $(TESTS_LDADD) |
| 314 | test_integration_create_keyedhash_sha1_hmac_int_SOURCES = \ |
| 315 | test/integration/create-keyedhash-sha1-hmac.int.c test/integration/main.c |
| 316 | |
| 317 | test_integration_encrypt_decrypt_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 318 | test_integration_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 319 | test_integration_encrypt_decrypt_int_SOURCES = \ |
| 320 | test/integration/encrypt-decrypt.int.c test/integration/main.c |
| 321 | |
| 322 | test_integration_encrypt_decrypt_2_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 323 | test_integration_encrypt_decrypt_2_int_LDADD = $(TESTS_LDADD) |
| 324 | test_integration_encrypt_decrypt_2_int_SOURCES = \ |
| 325 | test/integration/encrypt-decrypt-2.int.c test/integration/main.c |
| 326 | |
| 327 | test_integration_evict_ctrl_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 328 | test_integration_evict_ctrl_int_LDADD = $(TESTS_LDADD) |
| 329 | test_integration_evict_ctrl_int_SOURCES = \ |
| 330 | test/integration/evict-ctrl.int.c test/integration/main.c |
| 331 | |
| 332 | test_integration_sys_initialize_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 333 | test_integration_sys_initialize_int_LDADD = $(TESTS_LDADD) |
| 334 | test_integration_sys_initialize_int_SOURCES = test/integration/sys-initialize.int.c \ |
| 335 | test/integration/main.c |
| 336 | |
| 337 | test_integration_get_random_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 338 | test_integration_get_random_int_LDADD = $(TESTS_LDADD) |
| 339 | test_integration_get_random_int_SOURCES = test/integration/get-random.int.c \ |
| 340 | test/integration/main.c |
| 341 | |
| 342 | test_integration_abi_version_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 343 | test_integration_abi_version_int_LDADD = $(TESTS_LDADD) |
| 344 | test_integration_abi_version_int_SOURCES = test/integration/abi-version.int.c \ |
| 345 | test/integration/main.c |
| 346 | |
| 347 | test_integration_pcr_extension_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 348 | test_integration_pcr_extension_int_LDADD = $(TESTS_LDADD) |
| 349 | test_integration_pcr_extension_int_SOURCES = test/integration/pcr-extension.int.c \ |
| 350 | test/integration/main.c |
| 351 | |
| 352 | test_integration_self_test_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 353 | test_integration_self_test_int_LDADD = $(TESTS_LDADD) |
| 354 | test_integration_self_test_int_SOURCES = test/integration/self-test.int.c \ |
| 355 | test/integration/main.c |
| 356 | |
| 357 | test_integration_hierarchy_change_auth_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 358 | test_integration_hierarchy_change_auth_int_LDADD = $(TESTS_LDADD) |
| 359 | test_integration_hierarchy_change_auth_int_SOURCES = \ |
| 360 | test/integration/hierarchy-change-auth.int.c test/integration/main.c |
| 361 | |
| 362 | test_integration_start_auth_session_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 363 | test_integration_start_auth_session_int_LDADD = $(TESTS_LDADD) |
| 364 | test_integration_start_auth_session_int_SOURCES = test/integration/main.c \ |
| 365 | test/integration/start-auth-session.int.c |
| 366 | |
| 367 | test_integration_tpm_properties_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 368 | test_integration_tpm_properties_int_LDADD = $(TESTS_LDADD) |
| 369 | test_integration_tpm_properties_int_SOURCES = test/integration/main.c \ |
| 370 | test/integration/tpm-properties.int.c |
| 371 | |
| 372 | test_integration_system_api_int_CFLAGS = $(AM_CFLAGS) $(TESTS_CFLAGS) |
| 373 | test_integration_system_api_int_LDADD = $(TESTS_LDADD) |
| 374 | test_integration_system_api_int_SOURCES = test/integration/main.c \ |
| 375 | test/integration/system-api.int.c |
| 376 | |
| 377 | if ESAPI |
Juergen Repp | 607317b | 2018-04-12 10:34:57 +0200 | [diff] [blame] | 378 | test_integration_esys_audit_int_CFLAGS = $(TESTS_CFLAGS) |
| 379 | test_integration_esys_audit_int_LDADD = $(TESTS_LDADD) |
| 380 | test_integration_esys_audit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 381 | test_integration_esys_audit_int_SOURCES = \ |
| 382 | test/integration/esys-audit.int.c \ |
| 383 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 384 | |
Juergen Repp | 43966fc | 2018-04-12 10:44:53 +0200 | [diff] [blame] | 385 | test_integration_esys_certify_creation_int_CFLAGS = $(TESTS_CFLAGS) |
| 386 | test_integration_esys_certify_creation_int_LDADD = $(TESTS_LDADD) |
| 387 | test_integration_esys_certify_creation_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 388 | test_integration_esys_certify_creation_int_SOURCES = \ |
| 389 | test/integration/esys-certify-creation.int.c \ |
| 390 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 391 | |
Juergen Repp | 77b9a0e | 2018-04-12 10:45:15 +0200 | [diff] [blame] | 392 | test_integration_esys_certify_int_CFLAGS = $(TESTS_CFLAGS) |
| 393 | test_integration_esys_certify_int_LDADD = $(TESTS_LDADD) |
| 394 | test_integration_esys_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 395 | test_integration_esys_certify_int_SOURCES = \ |
| 396 | test/integration/esys-certify.int.c \ |
| 397 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 398 | |
Juergen Repp | 1645570 | 2018-04-12 10:45:49 +0200 | [diff] [blame] | 399 | test_integration_esys_change_eps_int_CFLAGS = $(TESTS_CFLAGS) |
| 400 | test_integration_esys_change_eps_int_LDADD = $(TESTS_LDADD) |
| 401 | test_integration_esys_change_eps_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 402 | test_integration_esys_change_eps_int_SOURCES = \ |
| 403 | test/integration/esys-change-eps.int.c \ |
| 404 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 405 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 406 | test_integration_esys_clear_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 407 | test_integration_esys_clear_int_LDADD = $(TESTS_LDADD) |
| 408 | test_integration_esys_clear_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 409 | test_integration_esys_clear_int_SOURCES = \ |
| 410 | test/integration/esys-clear.int.c \ |
| 411 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 412 | |
Juergen Repp | 658cd7d | 2018-04-12 10:46:25 +0200 | [diff] [blame] | 413 | test_integration_esys_clear_control_int_CFLAGS = $(TESTS_CFLAGS) |
| 414 | test_integration_esys_clear_control_int_LDADD = $(TESTS_LDADD) |
| 415 | test_integration_esys_clear_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 416 | test_integration_esys_clear_control_int_SOURCES = \ |
| 417 | test/integration/esys-clear-control.int.c \ |
| 418 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 419 | |
| 420 | test_integration_esys_clear_session_int_CFLAGS = $(TESTS_CFLAGS) -DTEST_SESSION |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 421 | test_integration_esys_clear_session_int_LDADD = $(TESTS_LDADD) |
| 422 | test_integration_esys_clear_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 423 | test_integration_esys_clear_session_int_SOURCES = \ |
| 424 | test/integration/esys-clear.int.c \ |
| 425 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 426 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 427 | test_integration_esys_clockset_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 428 | test_integration_esys_clockset_int_LDADD = $(TESTS_LDADD) |
| 429 | test_integration_esys_clockset_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 430 | test_integration_esys_clockset_int_SOURCES = \ |
| 431 | test/integration/esys-clockset.int.c \ |
| 432 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 433 | |
Juergen Repp | 0c2d853 | 2018-04-12 10:46:57 +0200 | [diff] [blame] | 434 | test_integration_esys_commit_int_CFLAGS = $(TESTS_CFLAGS) |
| 435 | test_integration_esys_commit_int_LDADD = $(TESTS_LDADD) |
| 436 | test_integration_esys_commit_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 437 | test_integration_esys_commit_int_SOURCES = \ |
| 438 | test/integration/esys-commit.int.c \ |
| 439 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 440 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 441 | test_integration_esys_create_fail_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 442 | test_integration_esys_create_fail_int_LDADD = $(TESTS_LDADD) |
| 443 | test_integration_esys_create_fail_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 444 | test_integration_esys_create_fail_int_SOURCES = \ |
| 445 | test/integration/esys-create-fail.int.c \ |
| 446 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 447 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 448 | test_integration_esys_createloaded_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 449 | test_integration_esys_createloaded_int_LDADD = $(TESTS_LDADD) |
| 450 | test_integration_esys_createloaded_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 451 | test_integration_esys_createloaded_int_SOURCES = \ |
| 452 | test/integration/esys-createloaded.int.c \ |
| 453 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 454 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 455 | test_integration_esys_createloaded_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 456 | -DTEST_SESSION |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 457 | test_integration_esys_createloaded_session_int_LDADD = $(TESTS_LDADD) |
| 458 | test_integration_esys_createloaded_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 459 | test_integration_esys_createloaded_session_int_SOURCES = \ |
| 460 | test/integration/esys-createloaded.int.c \ |
| 461 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 462 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 463 | test_integration_esys_create_password_auth_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 464 | test_integration_esys_create_password_auth_int_LDADD = $(TESTS_LDADD) |
| 465 | test_integration_esys_create_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 466 | test_integration_esys_create_password_auth_int_SOURCES = \ |
| 467 | test/integration/esys-create-password-auth.int.c \ |
| 468 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 469 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 470 | test_integration_esys_create_primary_ecc_hmac_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 471 | test_integration_esys_create_primary_ecc_hmac_int_LDADD = $(TESTS_LDADD) |
| 472 | test_integration_esys_create_primary_ecc_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 473 | test_integration_esys_create_primary_ecc_hmac_int_SOURCES = \ |
| 474 | test/integration/esys-create-primary-hmac.int.c \ |
| 475 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 476 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 477 | test_integration_esys_create_primary_hmac_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 478 | test_integration_esys_create_primary_hmac_int_LDADD = $(TESTS_LDADD) |
| 479 | test_integration_esys_create_primary_hmac_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 480 | test_integration_esys_create_primary_hmac_int_SOURCES = \ |
| 481 | test/integration/esys-create-primary-hmac.int.c \ |
| 482 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 483 | |
Juergen Repp | a2cf69c | 2018-03-27 14:20:59 +0200 | [diff] [blame] | 484 | test_integration_esys_create_session_auth_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 485 | -DTEST_AES_ENCRYPTION |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 486 | test_integration_esys_create_session_auth_int_LDADD = $(TESTS_LDADD) |
| 487 | test_integration_esys_create_session_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 488 | test_integration_esys_create_session_auth_int_SOURCES = \ |
| 489 | test/integration/esys-create-session-auth.int.c \ |
| 490 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 491 | |
Juergen Repp | a2cf69c | 2018-03-27 14:20:59 +0200 | [diff] [blame] | 492 | test_integration_esys_create_session_auth_xor_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 493 | -DTEST_XOR_OBFUSCATION |
| 494 | test_integration_esys_create_session_auth_xor_int_LDADD = $(TESTS_LDADD) |
| 495 | test_integration_esys_create_session_auth_xor_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 496 | test_integration_esys_create_session_auth_xor_int_SOURCES = \ |
| 497 | test/integration/esys-create-session-auth.int.c \ |
| 498 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 499 | |
Juergen Repp | f477ded | 2018-03-27 14:40:35 +0200 | [diff] [blame] | 500 | test_integration_esys_duplicate_int_CFLAGS = $(TESTS_CFLAGS) |
| 501 | test_integration_esys_duplicate_int_LDADD = $(TESTS_LDADD) |
| 502 | test_integration_esys_duplicate_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 503 | test_integration_esys_duplicate_int_SOURCES = \ |
| 504 | test/integration/esys-duplicate.int.c \ |
| 505 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 506 | |
Juergen Repp | 0d884d5 | 2018-04-12 10:48:07 +0200 | [diff] [blame] | 507 | test_integration_esys_ecc_parameters_int_CFLAGS = $(TESTS_CFLAGS) |
| 508 | test_integration_esys_ecc_parameters_int_LDADD = $(TESTS_LDADD) |
| 509 | test_integration_esys_ecc_parameters_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 510 | test_integration_esys_ecc_parameters_int_SOURCES = \ |
| 511 | test/integration/esys-ecc-parameters.int.c \ |
| 512 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 513 | |
Juergen Repp | 472840f | 2018-04-12 10:48:38 +0200 | [diff] [blame] | 514 | test_integration_esys_ecdh_keygen_int_CFLAGS = $(TESTS_CFLAGS) |
| 515 | test_integration_esys_ecdh_keygen_int_LDADD = $(TESTS_LDADD) |
| 516 | test_integration_esys_ecdh_keygen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 517 | test_integration_esys_ecdh_keygen_int_SOURCES = \ |
| 518 | test/integration/esys-ecdh-keygen.int.c \ |
| 519 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 520 | |
Juergen Repp | 73461b4 | 2018-04-12 10:49:10 +0200 | [diff] [blame] | 521 | test_integration_esys_ecdh_zgen_int_CFLAGS = $(TESTS_CFLAGS) |
| 522 | test_integration_esys_ecdh_zgen_int_LDADD = $(TESTS_LDADD) |
| 523 | test_integration_esys_ecdh_zgen_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 524 | test_integration_esys_ecdh_zgen_int_SOURCES = \ |
| 525 | test/integration/esys-ecdh-zgen.int.c \ |
| 526 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 527 | |
Juergen Repp | cd10125 | 2018-04-12 10:50:21 +0200 | [diff] [blame] | 528 | test_integration_esys_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS) |
| 529 | test_integration_esys_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 530 | test_integration_esys_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 531 | test_integration_esys_encrypt_decrypt_int_SOURCES = \ |
| 532 | test/integration/esys-encrypt-decrypt.int.c \ |
| 533 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 534 | |
Juergen Repp | 7de9fbf | 2018-04-12 10:50:57 +0200 | [diff] [blame] | 535 | test_integration_esys_event_sequence_complete_int_CFLAGS = $(TESTS_CFLAGS) |
| 536 | test_integration_esys_event_sequence_complete_int_LDADD = $(TESTS_LDADD) |
| 537 | test_integration_esys_event_sequence_complete_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 538 | test_integration_esys_event_sequence_complete_int_SOURCES = \ |
| 539 | test/integration/esys-event-sequence-complete.int.c \ |
| 540 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 541 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 542 | test_integration_esys_evict_control_serialization_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 543 | test_integration_esys_evict_control_serialization_int_LDADD = $(TESTS_LDADD) |
| 544 | test_integration_esys_evict_control_serialization_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 545 | test_integration_esys_evict_control_serialization_int_SOURCES = \ |
| 546 | test/integration/esys-evict-control-serialization.int.c \ |
| 547 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 548 | |
Juergen Repp | 4ffdf0f | 2018-04-12 10:51:27 +0200 | [diff] [blame] | 549 | test_integration_esys_field_upgrade_int_CFLAGS = $(TESTS_CFLAGS) |
| 550 | test_integration_esys_field_upgrade_int_LDADD = $(TESTS_LDADD) |
| 551 | test_integration_esys_field_upgrade_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 552 | test_integration_esys_field_upgrade_int_SOURCES = \ |
| 553 | test/integration/esys-field-upgrade.int.c \ |
| 554 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 555 | |
Juergen Repp | 841eeb4 | 2018-04-12 10:51:49 +0200 | [diff] [blame] | 556 | test_integration_esys_firmware_read_int_CFLAGS = $(TESTS_CFLAGS) |
| 557 | test_integration_esys_firmware_read_int_LDADD = $(TESTS_LDADD) |
| 558 | test_integration_esys_firmware_read_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 559 | test_integration_esys_firmware_read_int_SOURCES = \ |
| 560 | test/integration/esys-firmware-read.int.c \ |
| 561 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 562 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 563 | test_integration_esys_get_capability_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 564 | test_integration_esys_get_capability_int_LDADD = $(TESTS_LDADD) |
| 565 | test_integration_esys_get_capability_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 566 | test_integration_esys_get_capability_int_SOURCES = \ |
| 567 | test/integration/esys-get-capability.int.c \ |
| 568 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 569 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 570 | test_integration_esys_get_random_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 571 | test_integration_esys_get_random_int_LDADD = $(TESTS_LDADD) |
| 572 | test_integration_esys_get_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 573 | test_integration_esys_get_random_int_SOURCES = \ |
| 574 | test/integration/esys-get-random.int.c \ |
| 575 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 576 | |
Juergen Repp | d6ed8f2 | 2018-04-12 10:52:19 +0200 | [diff] [blame] | 577 | test_integration_esys_get_time_int_CFLAGS = $(TESTS_CFLAGS) |
| 578 | test_integration_esys_get_time_int_LDADD = $(TESTS_LDADD) |
| 579 | test_integration_esys_get_time_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 580 | test_integration_esys_get_time_int_SOURCES = \ |
| 581 | test/integration/esys-get-time.int.c \ |
| 582 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 583 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 584 | test_integration_esys_hashsequencestart_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 585 | test_integration_esys_hashsequencestart_int_LDADD = $(TESTS_LDADD) |
| 586 | test_integration_esys_hashsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 587 | test_integration_esys_hashsequencestart_int_SOURCES = \ |
| 588 | test/integration/esys-hashsequencestart.int.c \ |
| 589 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 590 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 591 | test_integration_esys_hashsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 592 | -DTEST_SESSION |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 593 | test_integration_esys_hashsequencestart_session_int_LDADD = $(TESTS_LDADD) |
| 594 | test_integration_esys_hashsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 595 | test_integration_esys_hashsequencestart_session_int_SOURCES = \ |
| 596 | test/integration/esys-hashsequencestart.int.c \ |
| 597 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 598 | |
Juergen Repp | 9f394f2 | 2018-04-12 10:52:35 +0200 | [diff] [blame] | 599 | test_integration_esys_hierarchy_control_int_CFLAGS = $(TESTS_CFLAGS) |
| 600 | test_integration_esys_hierarchy_control_int_LDADD = $(TESTS_LDADD) |
| 601 | test_integration_esys_hierarchy_control_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 602 | test_integration_esys_hierarchy_control_int_SOURCES = \ |
| 603 | test/integration/esys-hierarchy-control.int.c \ |
| 604 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 605 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 606 | test_integration_esys_hmacsequencestart_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 607 | test_integration_esys_hmacsequencestart_int_LDADD = $(TESTS_LDADD) |
| 608 | test_integration_esys_hmacsequencestart_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 609 | test_integration_esys_hmacsequencestart_int_SOURCES = \ |
| 610 | test/integration/esys-hmacsequencestart.int.c \ |
| 611 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 612 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 613 | test_integration_esys_hmacsequencestart_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 614 | -DTEST_SESSION |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 615 | test_integration_esys_hmacsequencestart_session_int_LDADD = $(TESTS_LDADD) |
| 616 | test_integration_esys_hmacsequencestart_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 617 | test_integration_esys_hmacsequencestart_session_int_SOURCES = \ |
| 618 | test/integration/esys-hmacsequencestart.int.c \ |
| 619 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 620 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 621 | test_integration_esys_hierarchychangeauth_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 622 | test_integration_esys_hierarchychangeauth_int_LDADD = $(TESTS_LDADD) |
| 623 | test_integration_esys_hierarchychangeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 624 | test_integration_esys_hierarchychangeauth_int_SOURCES = \ |
| 625 | test/integration/esys-hierarchychangeauth.int.c \ |
| 626 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 627 | |
Juergen Repp | efacad1 | 2018-04-12 10:53:12 +0200 | [diff] [blame] | 628 | test_integration_esys_import_int_CFLAGS = $(TESTS_CFLAGS) |
| 629 | test_integration_esys_import_int_LDADD = $(TESTS_LDADD) |
| 630 | test_integration_esys_import_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 631 | test_integration_esys_import_int_SOURCES = \ |
| 632 | test/integration/esys-import.int.c \ |
| 633 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 634 | |
Juergen Repp | 5302883 | 2018-04-12 10:53:30 +0200 | [diff] [blame] | 635 | test_integration_esys_lock_int_CFLAGS = $(TESTS_CFLAGS) |
| 636 | test_integration_esys_lock_int_LDADD = $(TESTS_LDADD) |
| 637 | test_integration_esys_lock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 638 | test_integration_esys_lock_int_SOURCES = \ |
| 639 | test/integration/esys-lock.int.c \ |
| 640 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 641 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 642 | test_integration_esys_make_credential_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 643 | test_integration_esys_make_credential_int_LDADD = $(TESTS_LDADD) |
| 644 | test_integration_esys_make_credential_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 645 | test_integration_esys_make_credential_int_SOURCES = \ |
| 646 | test/integration/esys-make-credential.int.c \ |
| 647 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 648 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 649 | test_integration_esys_make_credential_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 650 | -DTEST_SESSION |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 651 | test_integration_esys_make_credential_session_int_LDADD = $(TESTS_LDADD) |
| 652 | test_integration_esys_make_credential_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 653 | test_integration_esys_make_credential_session_int_SOURCES = \ |
| 654 | test/integration/esys-make-credential.int.c \ |
| 655 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 656 | |
Juergen Repp | 090bcef | 2018-04-12 10:53:49 +0200 | [diff] [blame] | 657 | test_integration_esys_nv_certify_int_CFLAGS = $(TESTS_CFLAGS) |
| 658 | test_integration_esys_nv_certify_int_LDADD = $(TESTS_LDADD) |
| 659 | test_integration_esys_nv_certify_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 660 | test_integration_esys_nv_certify_int_SOURCES = \ |
| 661 | test/integration/esys-nv-certify.int.c \ |
| 662 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 663 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 664 | test_integration_esys_nv_ram_counter_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 665 | test_integration_esys_nv_ram_counter_int_LDADD = $(TESTS_LDADD) |
| 666 | test_integration_esys_nv_ram_counter_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 667 | test_integration_esys_nv_ram_counter_int_SOURCES = \ |
| 668 | test/integration/esys-nv-ram-counter.int.c \ |
| 669 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 670 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 671 | test_integration_esys_nv_ram_counter_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 672 | -DTEST_SESSION |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 673 | test_integration_esys_nv_ram_counter_session_int_LDADD = $(TESTS_LDADD) |
| 674 | test_integration_esys_nv_ram_counter_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 675 | test_integration_esys_nv_ram_counter_session_int_SOURCES = \ |
| 676 | test/integration/esys-nv-ram-counter.int.c \ |
| 677 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 678 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 679 | test_integration_esys_nv_ram_extend_index_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 680 | test_integration_esys_nv_ram_extend_index_int_LDADD = $(TESTS_LDADD) |
| 681 | test_integration_esys_nv_ram_extend_index_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 682 | test_integration_esys_nv_ram_extend_index_int_SOURCES = \ |
| 683 | test/integration/esys-nv-ram-extend-index.int.c \ |
| 684 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 685 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 686 | test_integration_esys_nv_ram_extend_index_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 687 | -DTEST_SESSION |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 688 | test_integration_esys_nv_ram_extend_index_session_int_LDADD = $(TESTS_LDADD) |
| 689 | test_integration_esys_nv_ram_extend_index_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 690 | test_integration_esys_nv_ram_extend_index_session_int_SOURCES = \ |
| 691 | test/integration/esys-nv-ram-extend-index.int.c \ |
| 692 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 693 | |
Juergen Repp | 4f8ad60 | 2018-04-12 10:54:45 +0200 | [diff] [blame] | 694 | test_integration_esys_nv_ram_ordinary_index_rlock_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 695 | -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/test/integration/ \ |
| 696 | -I$(srcdir)/src/esapi/esapi_util -DTEST_READ_LOCK |
| 697 | test_integration_esys_nv_ram_ordinary_index_rlock_int_LDADD = $(TESTS_LDADD) |
| 698 | test_integration_esys_nv_ram_ordinary_index_rlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 699 | test_integration_esys_nv_ram_ordinary_index_rlock_int_SOURCES = \ |
Andreas Fuchs | 8a19179 | 2018-04-10 14:34:58 +0200 | [diff] [blame] | 700 | test/integration/esys-nv-ram-ordinary-index.int.c \ |
| 701 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 702 | |
Juergen Repp | 4f8ad60 | 2018-04-12 10:54:45 +0200 | [diff] [blame] | 703 | test_integration_esys_nv_ram_ordinary_index_rlock_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 704 | -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \ |
| 705 | -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_READ_LOCK |
| 706 | test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDADD = $(TESTS_LDADD) |
| 707 | test_integration_esys_nv_ram_ordinary_index_rlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 708 | test_integration_esys_nv_ram_ordinary_index_rlock_session_int_SOURCES = \ |
| 709 | test/integration/esys-nv-ram-ordinary-index.int.c \ |
| 710 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 711 | |
| 712 | test_integration_esys_nv_ram_ordinary_index_wlock_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 713 | -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \ |
| 714 | -I$(srcdir)/src/esapi/esapi_util -DTEST_WRITE_LOCK |
| 715 | test_integration_esys_nv_ram_ordinary_index_wlock_int_LDADD = $(TESTS_LDADD) |
| 716 | test_integration_esys_nv_ram_ordinary_index_wlock_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 717 | test_integration_esys_nv_ram_ordinary_index_wlock_int_SOURCES = \ |
| 718 | test/integration/esys-nv-ram-ordinary-index.int.c \ |
| 719 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 720 | |
| 721 | test_integration_esys_nv_ram_ordinary_index_wlock_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 722 | -I. -I$(srcdir)/src/esapi/esapi -I$(srcdir)/include/esapi -I$(srcdir)/include/esapi \ |
| 723 | -I$(srcdir)/src/esapi/esapi_util -DTEST_SESSION -DTEST_WRITE_LOCK |
| 724 | test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDADD = $(TESTS_LDADD) |
| 725 | test_integration_esys_nv_ram_ordinary_index_wlock_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 726 | test_integration_esys_nv_ram_ordinary_index_wlock_session_int_SOURCES = \ |
Andreas Fuchs | 8a19179 | 2018-04-10 14:34:58 +0200 | [diff] [blame] | 727 | test/integration/esys-nv-ram-ordinary-index.int.c \ |
| 728 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 729 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 730 | test_integration_esys_nv_ram_set_bits_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 731 | test_integration_esys_nv_ram_set_bits_int_LDADD = $(TESTS_LDADD) |
| 732 | test_integration_esys_nv_ram_set_bits_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 733 | test_integration_esys_nv_ram_set_bits_int_SOURCES = \ |
| 734 | test/integration/esys-nv-ram-set-bits.int.c \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 735 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 736 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 737 | test_integration_esys_nv_ram_set_bits_session_int_CFLAGS = $(TESTS_CFLAGS) \ |
| 738 | -DTEST_SESSION |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 739 | test_integration_esys_nv_ram_set_bits_session_int_LDADD = $(TESTS_LDADD) |
| 740 | test_integration_esys_nv_ram_set_bits_session_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 741 | test_integration_esys_nv_ram_set_bits_session_int_SOURCES = \ |
| 742 | test/integration/esys-nv-ram-set-bits.int.c \ |
| 743 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 744 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 745 | test_integration_esys_object_changeauth_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 746 | test_integration_esys_object_changeauth_int_LDADD = $(TESTS_LDADD) |
| 747 | test_integration_esys_object_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 748 | test_integration_esys_object_changeauth_int_SOURCES = \ |
| 749 | test/integration/esys-object-changeauth.int.c \ |
| 750 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 751 | |
Juergen Repp | ed81805 | 2018-04-12 10:56:38 +0200 | [diff] [blame] | 752 | test_integration_esys_policy_authorize_int_CFLAGS = $(TESTS_CFLAGS) |
| 753 | test_integration_esys_policy_authorize_int_LDADD = $(TESTS_LDADD) |
| 754 | test_integration_esys_policy_authorize_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 755 | test_integration_esys_policy_authorize_int_SOURCES = \ |
| 756 | test/integration/esys-policy-authorize.int.c \ |
| 757 | src/tss2-esys/esys_crypto.c \ |
Juergen Repp | 731135d | 2018-03-27 14:43:03 +0200 | [diff] [blame] | 758 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 759 | |
Juergen Repp | 897c75d | 2018-04-12 10:57:26 +0200 | [diff] [blame] | 760 | test_integration_esys_policy_ticket_int_CFLAGS = $(TESTS_CFLAGS) |
| 761 | test_integration_esys_policy_ticket_int_LDADD = $(TESTS_LDADD) |
| 762 | test_integration_esys_policy_ticket_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 763 | test_integration_esys_policy_ticket_int_SOURCES = \ |
| 764 | test/integration/esys-policy-ticket.int.c \ |
| 765 | src/tss2-esys/esys_crypto.c \ |
Juergen Repp | 731135d | 2018-03-27 14:43:03 +0200 | [diff] [blame] | 766 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 767 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 768 | test_integration_esys_policy_nv_changeauth_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 769 | test_integration_esys_policy_nv_changeauth_int_LDADD = $(TESTS_LDADD) |
| 770 | test_integration_esys_policy_nv_changeauth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 771 | test_integration_esys_policy_nv_changeauth_int_SOURCES = \ |
| 772 | test/integration/esys-policy-nv-changeauth.int.c \ |
| 773 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 774 | |
Juergen Repp | 4cac282 | 2018-04-12 10:58:39 +0200 | [diff] [blame] | 775 | test_integration_esys_policy_nv_undefine_special_int_CFLAGS = $(TESTS_CFLAGS) |
| 776 | test_integration_esys_policy_nv_undefine_special_int_LDADD = $(TESTS_LDADD) |
| 777 | test_integration_esys_policy_nv_undefine_special_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 778 | test_integration_esys_policy_nv_undefine_special_int_SOURCES = \ |
| 779 | test/integration/esys-policy-nv-undefine-special.int.c \ |
| 780 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 781 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 782 | test_integration_esys_policy_password_int_CFLAGS = $(TESTS_CFLAGS) |
Juergen Repp | 110a68a | 2018-03-08 11:51:30 +0100 | [diff] [blame] | 783 | test_integration_esys_policy_password_int_LDADD = $(TESTS_LDADD) |
| 784 | test_integration_esys_policy_password_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 785 | test_integration_esys_policy_password_int_SOURCES = \ |
| 786 | test/integration/esys-policy-password.int.c \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 787 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 788 | |
Juergen Repp | ed81805 | 2018-04-12 10:56:38 +0200 | [diff] [blame] | 789 | test_integration_esys_pcr_basic_int_CFLAGS = $(TESTS_CFLAGS) |
| 790 | test_integration_esys_pcr_basic_int_LDADD = $(TESTS_LDADD) |
| 791 | test_integration_esys_pcr_basic_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 792 | test_integration_esys_pcr_basic_int_SOURCES = \ |
| 793 | test/integration/esys-pcr-basic.int.c \ |
| 794 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 795 | |
Juergen Repp | 897c75d | 2018-04-12 10:57:26 +0200 | [diff] [blame] | 796 | test_integration_esys_pcr_auth_value_int_CFLAGS = $(TESTS_CFLAGS) |
| 797 | test_integration_esys_pcr_auth_value_int_LDADD = $(TESTS_LDADD) |
| 798 | test_integration_esys_pcr_auth_value_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 799 | test_integration_esys_pcr_auth_value_int_SOURCES = \ |
| 800 | test/integration/esys-pcr-auth-value.int.c \ |
| 801 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 802 | |
Juergen Repp | 91ed3de | 2018-04-12 11:01:30 +0200 | [diff] [blame] | 803 | test_integration_esys_pp_commands_int_CFLAGS = $(TESTS_CFLAGS) |
| 804 | test_integration_esys_pp_commands_int_LDADD = $(TESTS_LDADD) |
| 805 | test_integration_esys_pp_commands_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 806 | test_integration_esys_pp_commands_int_SOURCES = \ |
| 807 | test/integration/esys-pp-commands.int.c \ |
| 808 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 809 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 810 | test_integration_esys_quote_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 811 | test_integration_esys_quote_int_LDADD = $(TESTS_LDADD) |
| 812 | test_integration_esys_quote_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 813 | test_integration_esys_quote_int_SOURCES = \ |
| 814 | test/integration/esys-quote.int.c \ |
| 815 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 816 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 817 | test_integration_esys_rsa_encrypt_decrypt_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 818 | test_integration_esys_rsa_encrypt_decrypt_int_LDADD = $(TESTS_LDADD) |
| 819 | test_integration_esys_rsa_encrypt_decrypt_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 820 | test_integration_esys_rsa_encrypt_decrypt_int_SOURCES = \ |
| 821 | test/integration/esys-rsa-encrypt-decrypt.int.c \ |
| 822 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 823 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 824 | test_integration_esys_save_and_load_context_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 825 | test_integration_esys_save_and_load_context_int_LDADD = $(TESTS_LDADD) |
| 826 | test_integration_esys_save_and_load_context_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 827 | test_integration_esys_save_and_load_context_int_SOURCES = \ |
| 828 | test/integration/esys-save-and-load-context.int.c \ |
| 829 | test/integration/main-esapi.c test/integration/test-esapi.h |
Christian Plappert | 624423b | 2018-03-27 14:36:40 +0200 | [diff] [blame] | 830 | |
Juergen Repp | 0a3c1bb | 2018-04-12 11:02:34 +0200 | [diff] [blame] | 831 | test_integration_esys_set_algorithm_set_int_CFLAGS = $(TESTS_CFLAGS) |
| 832 | test_integration_esys_set_algorithm_set_int_LDADD = $(TESTS_LDADD) |
| 833 | test_integration_esys_set_algorithm_set_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 834 | test_integration_esys_set_algorithm_set_int_SOURCES = \ |
| 835 | test/integration/esys-set-algorithm-set.int.c \ |
| 836 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 837 | |
Juergen Repp | a3c6e2d | 2018-04-12 11:03:30 +0200 | [diff] [blame^] | 838 | test_integration_esys_stir_random_int_CFLAGS = $(TESTS_CFLAGS) |
| 839 | test_integration_esys_stir_random_int_LDADD = $(TESTS_LDADD) |
| 840 | test_integration_esys_stir_random_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 841 | test_integration_esys_stir_random_int_SOURCES = \ |
| 842 | test/integration/esys-stir-random.int.c \ |
| 843 | test/integration/main-esapi.c test/integration/test-esapi.h |
| 844 | |
Christian Plappert | 624423b | 2018-03-27 14:36:40 +0200 | [diff] [blame] | 845 | test_integration_esys_unseal_password_auth_int_CFLAGS = $(TESTS_CFLAGS) |
| 846 | test_integration_esys_unseal_password_auth_int_LDADD = $(TESTS_LDADD) |
| 847 | test_integration_esys_unseal_password_auth_int_LDFLAGS = $(TESTS_LDFLAGS) -lgcrypt |
| 848 | test_integration_esys_unseal_password_auth_int_SOURCES = \ |
| 849 | test/integration/esys-unseal-password-auth.int.c \ |
| 850 | test/integration/main-esapi.c test/integration/test-esapi.h |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 851 | endif #ESAPI |
| 852 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 853 | test_integration_policy_template_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 854 | test_integration_policy_template_int_LDADD = $(TESTS_LDADD) |
| 855 | test_integration_policy_template_int_SOURCES = test/integration/main.c \ |
| 856 | test/integration/policy-template.int.c |
| 857 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 858 | test_integration_create_loaded_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 859 | test_integration_create_loaded_int_LDADD = $(TESTS_LDADD) |
| 860 | test_integration_create_loaded_int_SOURCES = test/integration/main.c \ |
| 861 | test/integration/create-loaded.int.c |
| 862 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 863 | test_integration_policy_authorizeNV_int_CFLAGS = $(TESTS_CFLAGS) |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 864 | test_integration_policy_authorizeNV_int_LDADD = $(TESTS_LDADD) |
Philip Tricca | a7c51ce | 2018-03-10 18:28:25 -0800 | [diff] [blame] | 865 | test_integration_policy_authorizeNV_int_SOURCES = test/integration/main.c \ |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 866 | test/integration/policy-authorizeNV.int.c |
Tadeusz Struk | cbde866 | 2018-03-08 15:11:47 -0800 | [diff] [blame] | 867 | |
Philip Tricca | 8ffd3c4 | 2018-03-09 16:27:24 -0800 | [diff] [blame] | 868 | test_integration_command_cancel_int_CFLAGS = $(TESTS_CFLAGS) |
Tadeusz Struk | cbde866 | 2018-03-08 15:11:47 -0800 | [diff] [blame] | 869 | test_integration_command_cancel_int_LDADD = $(TESTS_LDADD) |
Philip Tricca | a7c51ce | 2018-03-10 18:28:25 -0800 | [diff] [blame] | 870 | test_integration_command_cancel_int_SOURCES = test/integration/main.c \ |
Tadeusz Struk | cbde866 | 2018-03-08 15:11:47 -0800 | [diff] [blame] | 871 | test/integration/command-cancel.int.c |
Andreas Fuchs | 0dc7c29 | 2018-02-28 20:01:13 +0100 | [diff] [blame] | 872 | endif #SIMULATOR_BIN |