]> git.proxmox.com Git - swtpm.git/blame - tests/Makefile.am
swtpm_setup: Rewrite swtpm_setup.sh in python
[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
SB
17
18if WITH_CHARDEV
19TESTS += \
1eef338e 20 test_ctrlchannel2 \
4f1912e8
SB
21 test_ctrlchannel4 \
22 test_tpm2_ctrlchannel2
498433f7 23endif
f26ec8c8 24
f26ec8c8 25TESTS += \
1eef338e 26 test_ctrlchannel \
281cb8ac 27 test_ctrlchannel3 \
f26ec8c8 28 test_encrypted_state \
e46a2b66 29 test_getcap \
e46a2b66 30 test_hashing \
0321a380 31 test_hashing2 \
f26ec8c8
SB
32 test_init \
33 test_locality \
34 test_migration_key \
f26ec8c8 35 test_resume_volatile \
198ebab3
SB
36 test_save_load_encrypted_state \
37 test_save_load_state \
688c8e24 38 test_setbuffersize \
f26ec8c8 39 test_volatilestate \
01aa2ed3 40 test_swtpm_bios \
3008874c 41 test_tpm_probe \
b752aed8 42 test_tpm12 \
95bed8ce
SB
43 test_wrongorder \
44 \
45 test_print_capabilities
f26ec8c8 46
3008874c 47TESTS += \
d617dd6d 48 test_tpm2_derived_keys \
75d33931 49 test_tpm2_encrypted_state \
3008874c
SB
50 test_tpm2_init \
51 test_tpm2_getcap \
52 test_tpm2_locality \
53 test_tpm2_hashing \
54 test_tpm2_hashing2 \
55 test_tpm2_hashing3 \
70ed60be 56 test_tpm2_migration_key \
ea7f8017 57 test_tpm2_print_capabilities \
c88b36f0 58 test_tpm2_resume_volatile \
3008874c 59 test_tpm2_savestate \
75d33931 60 test_tpm2_save_load_encrypted_state \
f956bce3 61 test_tpm2_save_load_state_2 \
6a110a5a 62 test_tpm2_save_load_state_3 \
be4bc80d 63 test_tpm2_save_load_state_da_timeout \
3008874c 64 test_tpm2_setbuffersize \
f84a0f11 65 test_tpm2_volatilestate \
3008874c 66 test_tpm2_wrongorder \
8fcec541
SB
67 test_tpm2_probe \
68 \
28c46454 69 test_tpm2_swtpm_bios \
6a41f8e1 70 \
03c7fe45 71 test_tpm2_ibmtss2
3008874c 72
64faf455 73if HAVE_TCSD
f26ec8c8 74TESTS += \
e46a2b66 75 test_commandline \
c50cb6cb 76 test_parameters
f26ec8c8 77endif
e46a2b66
SB
78
79if WITH_GNUTLS
80TESTS += \
e5ffc74d 81 test_swtpm_cert \
c50cb6cb 82 test_tpm2_parameters \
f30e202d 83 test_tpm2_samples_create_tpmca \
3ad55f8c 84 test_tpm2_samples_swtpm_localca \
34308cc7 85 test_tpm2_samples_swtpm_localca_pkcs11 \
276eee02 86 test_tpm2_swtpm_cert \
c50cb6cb
SB
87 test_tpm2_swtpm_cert_ecc \
88 test_tpm2_swtpm_setup_create_cert
64faf455 89if HAVE_TCSD
f26ec8c8 90TESTS += \
7cdc7ea4
SB
91 test_swtpm_setup_create_cert \
92 test_samples_create_tpmca
e46a2b66 93endif
f26ec8c8
SB
94endif
95
e46a2b66
SB
96EXTRA_DIST=$(TESTS) \
97 swtpm_setup.conf \
4c046e0b 98 common \
e46a2b66 99 create_certs.sh \
276eee02
SB
100 data/ecpubek.pem \
101 data/ecprivek.pem \
e46a2b66
SB
102 data/issuercert.pem \
103 data/pubek.pem \
104 data/signkey.pem \
b35eb9fc 105 data/signkey-encrypted.pem \
e46a2b66 106 data/keyfile.txt \
71d9581a 107 data/keyfile256bit.txt \
e46a2b66 108 data/pwdfile.txt \
70ed60be 109 data/migkey1/tpm2-volatilestate.bin \
8236603b 110 data/migkey1/volatilestate.bin \
e46a2b66
SB
111 data/tpmstate1/tpm-00.permall \
112 data/tpmstate1/tpm-00.volatilestate \
113 data/tpmstate1/README \
114 data/tpmstate2/tpm-00.permall \
115 data/tpmstate2/tpm-00.volatilestate \
116 data/tpmstate2/pwdfile.txt \
117 data/tpmstate2/README \
71d9581a
SB
118 data/tpmstate2b/tpm-00.permall \
119 data/tpmstate2b/tpm-00.volatilestate \
120 data/tpmstate2b/pwdfile.txt \
c88b36f0
SB
121 data/tpm2state1/tpm2-00.permall \
122 data/tpm2state1/tpm2-00.volatilestate \
123 data/tpm2state2/tpm2-00.permall \
124 data/tpm2state2/tpm2-00.volatilestate \
71d9581a
SB
125 data/tpm2state2b/pwdfile.txt \
126 data/tpm2state2b/tpm2-00.permall \
127 data/tpm2state2b/tpm2-00.volatilestate \
c88b36f0 128 data/tpm2state2/pwdfile.txt \
6a110a5a
SB
129 data/tpm2state3/hkey.priv \
130 data/tpm2state3/hkey.pub \
131 data/tpm2state3/signature.bin \
132 data/tpm2state3/tpm2-00.permall \
5211d89d
SB
133 data/tpm2state3c/tpm2-00.volatilestate \
134 data/tpm2state3c/tpm2-00.permall \
135 data/tpm2state3d/tpm2-00.volatilestate \
136 data/tpm2state3d/signature2.bin \
137 data/tpm2state3d/tpm2-00.permall \
138 data/tpm2state3b/h81000000.bin \
139 data/tpm2state3b/h02000000.bin \
140 data/tpm2state3b/tpm2-00.volatilestate \
141 data/tpm2state3b/tpm2-00.permall \
8e95c996
SB
142 data/tpm2state4/tpm2-00.volatilestate \
143 data/tpm2state4/tpm2-00.permall \
f956bce3
SB
144 data/tpm2state5/signature.bin \
145 data/tpm2state5/tpm2-00.permall \
84629d2c 146 load_vtpm_proxy \
605e823f 147 patches/ibmtss2_1.5_rsa2048only.patch \
45ed7764 148 patches/libtpm.patch \
34308cc7 149 softhsm_setup \
4c046e0b 150 test_clientfds.py \
70f3e248 151 test_common \
96038cdf 152 test_cuse \
4c046e0b
SB
153 test_setdatafd.py \
154 test_swtpm_cert \
155 _test_encrypted_state \
156 _test_getcap \
157 _test_hashing \
158 _test_hashing2 \
159 _test_init \
160 _test_locality \
161 _test_migration_key \
162 _test_migration_key_2 \
95bed8ce 163 _test_print_capabilities \
4c046e0b
SB
164 _test_resume_volatile \
165 _test_save_load_encrypted_state \
166 _test_save_load_state \
167 _test_setbuffersize \
168 _test_swtpm_bios \
3008874c 169 _test_tpm_probe \
d617dd6d 170 _test_tpm2_derived_keys \
75d33931 171 _test_tpm2_encrypted_state \
3008874c
SB
172 _test_tpm2_getcap \
173 _test_tpm2_hashing \
174 _test_tpm2_hashing2 \
175 _test_tpm2_hashing3 \
176 _test_tpm2_init \
177 _test_tpm2_locality \
70ed60be 178 _test_tpm2_migration_key \
ea7f8017 179 _test_tpm2_print_capabilities \
3008874c 180 _test_tpm2_probe \
c88b36f0 181 _test_tpm2_resume_volatile \
3008874c 182 _test_tpm2_savestate \
75d33931 183 _test_tpm2_save_load_encrypted_state \
313cf75c 184 _test_tpm2_save_load_state_da_timeout \
3008874c 185 _test_tpm2_setbuffersize \
8fcec541 186 _test_tpm2_swtpm_bios \
f84a0f11 187 _test_tpm2_volatilestate \
3008874c 188 _test_tpm2_wrongorder \
4c046e0b
SB
189 _test_volatilestate \
190 _test_wrongorder
19e05751
SB
191
192check-display:
193 @if test -n "$$SWTPM_EXE"; then \
194 echo "*** Using SWTPM_EXE=$$SWTPM_EXE"; \
195 fi
196 @if test -n "$$SWTPM_BIOS"; then \
197 echo "*** Using SWTPM_BIOS=$$SWTPM_BIOS"; \
198 fi
199 @if test -n "$$SWTPM_IOCTL"; then \
200 echo "*** Using SWTPM_IOCTL=$$SWTPM_IOCTL"; \
201 fi
28f12098
SB
202 @if test -n "$$SWTPM_CERT"; then \
203 echo "*** Using SWTPM_CERT=$$SWTPM_CERT"; \
204 fi
19e05751
SB
205
206check: check-am check-display