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