]>
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` \ | |
11 | abs_top_builddir=`cd '$(top_builddir)'; pwd` | |
12 | ||
2308308b | 13 | TESTS = \ |
3008874c SB |
14 | test_vtpm_proxy \ |
15 | test_tpm2_vtpm_proxy | |
498433f7 SB |
16 | |
17 | if WITH_CHARDEV | |
18 | TESTS += \ | |
1eef338e SB |
19 | test_ctrlchannel2 \ |
20 | test_ctrlchannel4 | |
498433f7 | 21 | endif |
f26ec8c8 | 22 | |
f26ec8c8 | 23 | TESTS += \ |
1eef338e | 24 | test_ctrlchannel \ |
281cb8ac | 25 | test_ctrlchannel3 \ |
f26ec8c8 | 26 | test_encrypted_state \ |
e46a2b66 | 27 | test_getcap \ |
e46a2b66 | 28 | test_hashing \ |
0321a380 | 29 | test_hashing2 \ |
f26ec8c8 SB |
30 | test_init \ |
31 | test_locality \ | |
32 | test_migration_key \ | |
f26ec8c8 | 33 | test_resume_volatile \ |
198ebab3 SB |
34 | test_save_load_encrypted_state \ |
35 | test_save_load_state \ | |
688c8e24 | 36 | test_setbuffersize \ |
f26ec8c8 | 37 | test_volatilestate \ |
01aa2ed3 | 38 | test_swtpm_bios \ |
3008874c | 39 | test_tpm_probe \ |
f26ec8c8 | 40 | test_wrongorder |
f26ec8c8 | 41 | |
3008874c | 42 | TESTS += \ |
75d33931 | 43 | test_tpm2_encrypted_state \ |
3008874c SB |
44 | test_tpm2_init \ |
45 | test_tpm2_getcap \ | |
46 | test_tpm2_locality \ | |
47 | test_tpm2_hashing \ | |
48 | test_tpm2_hashing2 \ | |
49 | test_tpm2_hashing3 \ | |
70ed60be | 50 | test_tpm2_migration_key \ |
c88b36f0 | 51 | test_tpm2_resume_volatile \ |
3008874c | 52 | test_tpm2_savestate \ |
75d33931 | 53 | test_tpm2_save_load_encrypted_state \ |
6a110a5a | 54 | test_tpm2_save_load_state_3 \ |
be4bc80d | 55 | test_tpm2_save_load_state_da_timeout \ |
3008874c | 56 | test_tpm2_setbuffersize \ |
f84a0f11 | 57 | test_tpm2_volatilestate \ |
3008874c | 58 | test_tpm2_wrongorder \ |
8fcec541 SB |
59 | test_tpm2_probe \ |
60 | \ | |
61 | test_tpm2_swtpm_bios | |
6a41f8e1 SB |
62 | \ |
63 | test_tpm2_samples_swtpm_localca | |
3008874c | 64 | |
64faf455 | 65 | if HAVE_TCSD |
f26ec8c8 | 66 | TESTS += \ |
e46a2b66 | 67 | test_commandline \ |
c50cb6cb | 68 | test_parameters |
f26ec8c8 | 69 | endif |
e46a2b66 SB |
70 | |
71 | if WITH_GNUTLS | |
72 | TESTS += \ | |
e5ffc74d | 73 | test_swtpm_cert \ |
c50cb6cb | 74 | test_tpm2_parameters \ |
276eee02 | 75 | test_tpm2_swtpm_cert \ |
c50cb6cb SB |
76 | test_tpm2_swtpm_cert_ecc \ |
77 | test_tpm2_swtpm_setup_create_cert | |
64faf455 | 78 | if HAVE_TCSD |
f26ec8c8 | 79 | TESTS += \ |
c50cb6cb | 80 | test_swtpm_setup_create_cert |
e46a2b66 | 81 | endif |
f26ec8c8 SB |
82 | endif |
83 | ||
e46a2b66 SB |
84 | EXTRA_DIST=$(TESTS) \ |
85 | swtpm_setup.conf \ | |
4c046e0b | 86 | common \ |
e46a2b66 | 87 | create_certs.sh \ |
276eee02 SB |
88 | data/ecpubek.pem \ |
89 | data/ecprivek.pem \ | |
e46a2b66 SB |
90 | data/issuercert.pem \ |
91 | data/pubek.pem \ | |
92 | data/signkey.pem \ | |
93 | data/keyfile.txt \ | |
94 | data/pwdfile.txt \ | |
70ed60be | 95 | data/migkey1/tpm2-volatilestate.bin \ |
8236603b | 96 | data/migkey1/volatilestate.bin \ |
e46a2b66 SB |
97 | data/tpmstate1/tpm-00.permall \ |
98 | data/tpmstate1/tpm-00.volatilestate \ | |
99 | data/tpmstate1/README \ | |
100 | data/tpmstate2/tpm-00.permall \ | |
101 | data/tpmstate2/tpm-00.volatilestate \ | |
102 | data/tpmstate2/pwdfile.txt \ | |
103 | data/tpmstate2/README \ | |
c88b36f0 SB |
104 | data/tpm2state1/tpm2-00.permall \ |
105 | data/tpm2state1/tpm2-00.volatilestate \ | |
106 | data/tpm2state2/tpm2-00.permall \ | |
107 | data/tpm2state2/tpm2-00.volatilestate \ | |
108 | data/tpm2state2/pwdfile.txt \ | |
6a110a5a SB |
109 | data/tpm2state3/hkey.priv \ |
110 | data/tpm2state3/hkey.pub \ | |
111 | data/tpm2state3/signature.bin \ | |
112 | data/tpm2state3/tpm2-00.permall \ | |
5211d89d SB |
113 | data/tpm2state3c/tpm2-00.volatilestate \ |
114 | data/tpm2state3c/tpm2-00.permall \ | |
115 | data/tpm2state3d/tpm2-00.volatilestate \ | |
116 | data/tpm2state3d/signature2.bin \ | |
117 | data/tpm2state3d/tpm2-00.permall \ | |
118 | data/tpm2state3b/h81000000.bin \ | |
119 | data/tpm2state3b/h02000000.bin \ | |
120 | data/tpm2state3b/tpm2-00.volatilestate \ | |
121 | data/tpm2state3b/tpm2-00.permall \ | |
84629d2c | 122 | load_vtpm_proxy \ |
4c046e0b | 123 | test_clientfds.py \ |
70f3e248 | 124 | test_common \ |
96038cdf | 125 | test_cuse \ |
4c046e0b SB |
126 | test_setdatafd.py \ |
127 | test_swtpm_cert \ | |
128 | _test_encrypted_state \ | |
129 | _test_getcap \ | |
130 | _test_hashing \ | |
131 | _test_hashing2 \ | |
132 | _test_init \ | |
133 | _test_locality \ | |
134 | _test_migration_key \ | |
135 | _test_migration_key_2 \ | |
136 | _test_resume_volatile \ | |
137 | _test_save_load_encrypted_state \ | |
138 | _test_save_load_state \ | |
139 | _test_setbuffersize \ | |
140 | _test_swtpm_bios \ | |
3008874c | 141 | _test_tpm_probe \ |
75d33931 | 142 | _test_tpm2_encrypted_state \ |
3008874c SB |
143 | _test_tpm2_getcap \ |
144 | _test_tpm2_hashing \ | |
145 | _test_tpm2_hashing2 \ | |
146 | _test_tpm2_hashing3 \ | |
147 | _test_tpm2_init \ | |
148 | _test_tpm2_locality \ | |
70ed60be | 149 | _test_tpm2_migration_key \ |
3008874c | 150 | _test_tpm2_probe \ |
c88b36f0 | 151 | _test_tpm2_resume_volatile \ |
3008874c | 152 | _test_tpm2_savestate \ |
75d33931 | 153 | _test_tpm2_save_load_encrypted_state \ |
313cf75c | 154 | _test_tpm2_save_load_state_da_timeout \ |
3008874c | 155 | _test_tpm2_setbuffersize \ |
8fcec541 | 156 | _test_tpm2_swtpm_bios \ |
f84a0f11 | 157 | _test_tpm2_volatilestate \ |
3008874c | 158 | _test_tpm2_wrongorder \ |
4c046e0b SB |
159 | _test_volatilestate \ |
160 | _test_wrongorder | |
19e05751 SB |
161 | |
162 | check-display: | |
163 | @if test -n "$$SWTPM_EXE"; then \ | |
164 | echo "*** Using SWTPM_EXE=$$SWTPM_EXE"; \ | |
165 | fi | |
166 | @if test -n "$$SWTPM_BIOS"; then \ | |
167 | echo "*** Using SWTPM_BIOS=$$SWTPM_BIOS"; \ | |
168 | fi | |
169 | @if test -n "$$SWTPM_IOCTL"; then \ | |
170 | echo "*** Using SWTPM_IOCTL=$$SWTPM_IOCTL"; \ | |
171 | fi | |
172 | ||
173 | check: check-am check-display |