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