]> git.proxmox.com Git - swtpm.git/blame - tests/Makefile.am
tests: Replicate test_ctrlchannel3 for TPM 2 to test_tpm2_ctrlchannel3
[swtpm.git] / tests / Makefile.am
CommitLineData
e46a2b66
SB
1#
2# tests/Makefile.am
3#
4# For the license, see the LICENSE file in the root directory.
5#
6
7check_PROGRAMS =
8
313cf75c
SB
9TESTS_ENVIRONMENT = \
10 abs_top_testdir=`cd '$(top_srcdir)'/tests; pwd` \
c51c07a0
SB
11 abs_top_builddir=`cd '$(top_builddir)'; pwd` \
12 abs_top_srcdir=`cd '$(top_srcdir)'; pwd`
313cf75c 13
2308308b 14TESTS = \
3008874c
SB
15 test_vtpm_proxy \
16 test_tpm2_vtpm_proxy
498433f7 17
f26ec8c8 18TESTS += \
cc410ca9 19 test_commandline \
1eef338e 20 test_ctrlchannel \
346dc3d5 21 test_ctrlchannel2 \
281cb8ac 22 test_ctrlchannel3 \
346dc3d5 23 test_ctrlchannel4 \
f26ec8c8 24 test_encrypted_state \
e46a2b66 25 test_getcap \
e46a2b66 26 test_hashing \
0321a380 27 test_hashing2 \
f26ec8c8
SB
28 test_init \
29 test_locality \
30 test_migration_key \
cc410ca9 31 test_parameters \
f26ec8c8 32 test_resume_volatile \
198ebab3
SB
33 test_save_load_encrypted_state \
34 test_save_load_state \
688c8e24 35 test_setbuffersize \
f26ec8c8 36 test_volatilestate \
01aa2ed3 37 test_swtpm_bios \
3008874c 38 test_tpm_probe \
b752aed8 39 test_tpm12 \
95bed8ce
SB
40 test_wrongorder \
41 \
aae539b2 42 test_print_capabilities \
5bc59a74 43 test_print_states \
e2291100 44 test_swtpm_setup_overwrite \
bcd5523b
SB
45 test_swtpm_setup_file_backend \
46 test_swtpm_setup_misc
f26ec8c8 47
3008874c 48TESTS += \
487892f2 49 test_tpm2_avoid_da_lockout \
68e54284
JH
50 test_tpm2_chroot_socket \
51 test_tpm2_chroot_chardev \
52 test_tpm2_chroot_cuse \
346dc3d5 53 test_tpm2_ctrlchannel2 \
aa92bbf6 54 test_tpm2_ctrlchannel3 \
d617dd6d 55 test_tpm2_derived_keys \
75d33931 56 test_tpm2_encrypted_state \
3008874c 57 test_tpm2_init \
30510820 58 test_tpm2_file_permissions \
3008874c
SB
59 test_tpm2_getcap \
60 test_tpm2_locality \
61 test_tpm2_hashing \
62 test_tpm2_hashing2 \
63 test_tpm2_hashing3 \
70ed60be 64 test_tpm2_migration_key \
024073c5 65 test_tpm2_partial_reads \
ea7f8017 66 test_tpm2_print_capabilities \
5bc59a74 67 test_tpm2_print_states \
c88b36f0 68 test_tpm2_resume_volatile \
3008874c 69 test_tpm2_savestate \
75d33931 70 test_tpm2_save_load_encrypted_state \
3acc2ee1 71 test_tpm2_save_load_state \
f956bce3 72 test_tpm2_save_load_state_2 \
7bc7b33b
SR
73 test_tpm2_save_load_state_2_linear \
74 test_tpm2_save_load_state_2_block \
6a110a5a 75 test_tpm2_save_load_state_3 \
be4bc80d 76 test_tpm2_save_load_state_da_timeout \
e5fdd1c1 77 test_tpm2_save_load_state_locking \
3008874c 78 test_tpm2_setbuffersize \
f84a0f11 79 test_tpm2_volatilestate \
3008874c 80 test_tpm2_wrongorder \
8fcec541
SB
81 test_tpm2_probe \
82 \
28c46454 83 test_tpm2_swtpm_bios \
6a41f8e1 84 \
aae539b2
ET
85 test_tpm2_ibmtss2 \
86 test_tpm2_swtpm_setup_overwrite
3008874c 87
e46a2b66
SB
88if WITH_GNUTLS
89TESTS += \
cc410ca9 90 test_samples_create_tpmca \
e5ffc74d 91 test_swtpm_cert \
cc410ca9 92 test_swtpm_setup_create_cert \
c50cb6cb 93 test_tpm2_parameters \
276eee02 94 test_tpm2_swtpm_cert \
c50cb6cb 95 test_tpm2_swtpm_cert_ecc \
ddc75216 96 test_tpm2_swtpm_localca \
3c10960c 97 test_tpm2_swtpm_localca_pkcs11.test \
c50cb6cb 98 test_tpm2_swtpm_setup_create_cert
3c10960c 99
64faf455 100if HAVE_TCSD
f26ec8c8 101TESTS += \
3c10960c
SB
102 test_tpm2_samples_create_tpmca.test
103
104# Prevent concurrency between these two
105test_tpm2_samples_create_tpmca.log: test_tpm2_swtpm_localca_pkcs11.log
e46a2b66 106endif
3c10960c 107
f26ec8c8
SB
108endif
109
e46a2b66
SB
110EXTRA_DIST=$(TESTS) \
111 swtpm_setup.conf \
4c046e0b 112 common \
e46a2b66 113 create_certs.sh \
276eee02
SB
114 data/ecpubek.pem \
115 data/ecprivek.pem \
e46a2b66
SB
116 data/issuercert.pem \
117 data/pubek.pem \
118 data/signkey.pem \
b35eb9fc 119 data/signkey-encrypted.pem \
e46a2b66 120 data/keyfile.txt \
71d9581a 121 data/keyfile256bit.txt \
e46a2b66 122 data/pwdfile.txt \
70ed60be 123 data/migkey1/tpm2-volatilestate.bin \
8236603b 124 data/migkey1/volatilestate.bin \
e46a2b66
SB
125 data/tpmstate1/tpm-00.permall \
126 data/tpmstate1/tpm-00.volatilestate \
127 data/tpmstate1/README \
128 data/tpmstate2/tpm-00.permall \
129 data/tpmstate2/tpm-00.volatilestate \
130 data/tpmstate2/pwdfile.txt \
131 data/tpmstate2/README \
71d9581a
SB
132 data/tpmstate2b/tpm-00.permall \
133 data/tpmstate2b/tpm-00.volatilestate \
134 data/tpmstate2b/pwdfile.txt \
c88b36f0
SB
135 data/tpm2state1/tpm2-00.permall \
136 data/tpm2state1/tpm2-00.volatilestate \
137 data/tpm2state2/tpm2-00.permall \
138 data/tpm2state2/tpm2-00.volatilestate \
71d9581a
SB
139 data/tpm2state2b/pwdfile.txt \
140 data/tpm2state2b/tpm2-00.permall \
141 data/tpm2state2b/tpm2-00.volatilestate \
c88b36f0 142 data/tpm2state2/pwdfile.txt \
6a110a5a
SB
143 data/tpm2state3/hkey.priv \
144 data/tpm2state3/hkey.pub \
145 data/tpm2state3/signature.bin \
146 data/tpm2state3/tpm2-00.permall \
5211d89d
SB
147 data/tpm2state3c/tpm2-00.volatilestate \
148 data/tpm2state3c/tpm2-00.permall \
149 data/tpm2state3d/tpm2-00.volatilestate \
150 data/tpm2state3d/signature2.bin \
151 data/tpm2state3d/tpm2-00.permall \
152 data/tpm2state3b/h81000000.bin \
153 data/tpm2state3b/h02000000.bin \
154 data/tpm2state3b/tpm2-00.volatilestate \
155 data/tpm2state3b/tpm2-00.permall \
8e95c996
SB
156 data/tpm2state4/tpm2-00.volatilestate \
157 data/tpm2state4/tpm2-00.permall \
f956bce3
SB
158 data/tpm2state5/signature.bin \
159 data/tpm2state5/tpm2-00.permall \
84629d2c 160 load_vtpm_proxy \
e78c9db2
SB
161 patches/0001-Deactivate-test-cases-accessing-rootcerts.txt.patch \
162 patches/0002-Implement-powerup-for-swtpm.patch \
163 patches/0003-Set-CRYPTOLIBRARY-to-openssl.patch \
be6ba388 164 patches/0004-Store-and-restore-volatile-state-at-every-step.patch \
e78c9db2
SB
165 patches/0005-Disable-tests-related-to-events.patch \
166 patches/0006-Disable-testing-with-RSA-3072.patch \
167 patches/0007-Disable-rev155-test-cases.patch \
168 patches/0008-Disable-x509-test-cases.patch \
169 patches/0009-Disable-getcapability-TPM_CAP_ACT.patch \
45ed7764 170 patches/libtpm.patch \
34308cc7 171 softhsm_setup \
4c046e0b 172 test_clientfds.py \
70f3e248 173 test_common \
96038cdf 174 test_cuse \
4c046e0b
SB
175 test_setdatafd.py \
176 test_swtpm_cert \
177 _test_encrypted_state \
178 _test_getcap \
179 _test_hashing \
180 _test_hashing2 \
181 _test_init \
182 _test_locality \
183 _test_migration_key \
184 _test_migration_key_2 \
95bed8ce 185 _test_print_capabilities \
5bc59a74 186 _test_print_states \
4c046e0b
SB
187 _test_resume_volatile \
188 _test_save_load_encrypted_state \
189 _test_save_load_state \
190 _test_setbuffersize \
191 _test_swtpm_bios \
3008874c 192 _test_tpm_probe \
487892f2 193 _test_tpm2_avoid_da_lockout \
d617dd6d 194 _test_tpm2_derived_keys \
75d33931 195 _test_tpm2_encrypted_state \
6b2cb5ff 196 _test_tpm2_file_permissions \
3008874c
SB
197 _test_tpm2_getcap \
198 _test_tpm2_hashing \
199 _test_tpm2_hashing2 \
200 _test_tpm2_hashing3 \
201 _test_tpm2_init \
202 _test_tpm2_locality \
70ed60be 203 _test_tpm2_migration_key \
ea7f8017 204 _test_tpm2_print_capabilities \
5bc59a74 205 _test_tpm2_print_states \
3008874c 206 _test_tpm2_probe \
c88b36f0 207 _test_tpm2_resume_volatile \
3008874c 208 _test_tpm2_savestate \
75d33931 209 _test_tpm2_save_load_encrypted_state \
3acc2ee1 210 _test_tpm2_save_load_state \
313cf75c 211 _test_tpm2_save_load_state_da_timeout \
e5fdd1c1 212 _test_tpm2_save_load_state_locking \
3008874c 213 _test_tpm2_setbuffersize \
8fcec541 214 _test_tpm2_swtpm_bios \
f84a0f11 215 _test_tpm2_volatilestate \
3008874c 216 _test_tpm2_wrongorder \
4c046e0b
SB
217 _test_volatilestate \
218 _test_wrongorder
19e05751
SB
219
220check-display:
221 @if test -n "$$SWTPM_EXE"; then \
222 echo "*** Using SWTPM_EXE=$$SWTPM_EXE"; \
223 fi
224 @if test -n "$$SWTPM_BIOS"; then \
225 echo "*** Using SWTPM_BIOS=$$SWTPM_BIOS"; \
226 fi
227 @if test -n "$$SWTPM_IOCTL"; then \
228 echo "*** Using SWTPM_IOCTL=$$SWTPM_IOCTL"; \
229 fi
28f12098
SB
230 @if test -n "$$SWTPM_CERT"; then \
231 echo "*** Using SWTPM_CERT=$$SWTPM_CERT"; \
232 fi
19e05751
SB
233
234check: check-am check-display