]> git.proxmox.com Git - swtpm.git/blame - tests/Makefile.am
swtpm_setup: Implement option to backup TCSD's system_ps_file
[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 \
f26ec8c8 42 test_wrongorder
f26ec8c8 43
3008874c 44TESTS += \
75d33931 45 test_tpm2_encrypted_state \
3008874c
SB
46 test_tpm2_init \
47 test_tpm2_getcap \
48 test_tpm2_locality \
49 test_tpm2_hashing \
50 test_tpm2_hashing2 \
51 test_tpm2_hashing3 \
70ed60be 52 test_tpm2_migration_key \
c88b36f0 53 test_tpm2_resume_volatile \
3008874c 54 test_tpm2_savestate \
75d33931 55 test_tpm2_save_load_encrypted_state \
6a110a5a 56 test_tpm2_save_load_state_3 \
be4bc80d 57 test_tpm2_save_load_state_da_timeout \
3008874c 58 test_tpm2_setbuffersize \
f84a0f11 59 test_tpm2_volatilestate \
3008874c 60 test_tpm2_wrongorder \
8fcec541
SB
61 test_tpm2_probe \
62 \
28c46454 63 test_tpm2_swtpm_bios \
6a41f8e1 64 \
03c7fe45 65 test_tpm2_ibmtss2
3008874c 66
64faf455 67if HAVE_TCSD
f26ec8c8 68TESTS += \
e46a2b66 69 test_commandline \
c50cb6cb 70 test_parameters
f26ec8c8 71endif
e46a2b66
SB
72
73if WITH_GNUTLS
74TESTS += \
e5ffc74d 75 test_swtpm_cert \
c50cb6cb 76 test_tpm2_parameters \
3ad55f8c 77 test_tpm2_samples_swtpm_localca \
276eee02 78 test_tpm2_swtpm_cert \
c50cb6cb
SB
79 test_tpm2_swtpm_cert_ecc \
80 test_tpm2_swtpm_setup_create_cert
64faf455 81if HAVE_TCSD
f26ec8c8 82TESTS += \
c50cb6cb 83 test_swtpm_setup_create_cert
e46a2b66 84endif
f26ec8c8
SB
85endif
86
e46a2b66
SB
87EXTRA_DIST=$(TESTS) \
88 swtpm_setup.conf \
4c046e0b 89 common \
e46a2b66 90 create_certs.sh \
276eee02
SB
91 data/ecpubek.pem \
92 data/ecprivek.pem \
e46a2b66
SB
93 data/issuercert.pem \
94 data/pubek.pem \
95 data/signkey.pem \
96 data/keyfile.txt \
71d9581a 97 data/keyfile256bit.txt \
e46a2b66 98 data/pwdfile.txt \
70ed60be 99 data/migkey1/tpm2-volatilestate.bin \
8236603b 100 data/migkey1/volatilestate.bin \
e46a2b66
SB
101 data/tpmstate1/tpm-00.permall \
102 data/tpmstate1/tpm-00.volatilestate \
103 data/tpmstate1/README \
104 data/tpmstate2/tpm-00.permall \
105 data/tpmstate2/tpm-00.volatilestate \
106 data/tpmstate2/pwdfile.txt \
107 data/tpmstate2/README \
71d9581a
SB
108 data/tpmstate2b/tpm-00.permall \
109 data/tpmstate2b/tpm-00.volatilestate \
110 data/tpmstate2b/pwdfile.txt \
c88b36f0
SB
111 data/tpm2state1/tpm2-00.permall \
112 data/tpm2state1/tpm2-00.volatilestate \
113 data/tpm2state2/tpm2-00.permall \
114 data/tpm2state2/tpm2-00.volatilestate \
71d9581a
SB
115 data/tpm2state2b/pwdfile.txt \
116 data/tpm2state2b/tpm2-00.permall \
117 data/tpm2state2b/tpm2-00.volatilestate \
c88b36f0 118 data/tpm2state2/pwdfile.txt \
6a110a5a
SB
119 data/tpm2state3/hkey.priv \
120 data/tpm2state3/hkey.pub \
121 data/tpm2state3/signature.bin \
122 data/tpm2state3/tpm2-00.permall \
5211d89d
SB
123 data/tpm2state3c/tpm2-00.volatilestate \
124 data/tpm2state3c/tpm2-00.permall \
125 data/tpm2state3d/tpm2-00.volatilestate \
126 data/tpm2state3d/signature2.bin \
127 data/tpm2state3d/tpm2-00.permall \
128 data/tpm2state3b/h81000000.bin \
129 data/tpm2state3b/h02000000.bin \
130 data/tpm2state3b/tpm2-00.volatilestate \
131 data/tpm2state3b/tpm2-00.permall \
84629d2c 132 load_vtpm_proxy \
4c046e0b 133 test_clientfds.py \
70f3e248 134 test_common \
96038cdf 135 test_cuse \
4c046e0b
SB
136 test_setdatafd.py \
137 test_swtpm_cert \
138 _test_encrypted_state \
139 _test_getcap \
140 _test_hashing \
141 _test_hashing2 \
142 _test_init \
143 _test_locality \
144 _test_migration_key \
145 _test_migration_key_2 \
146 _test_resume_volatile \
147 _test_save_load_encrypted_state \
148 _test_save_load_state \
149 _test_setbuffersize \
150 _test_swtpm_bios \
3008874c 151 _test_tpm_probe \
75d33931 152 _test_tpm2_encrypted_state \
3008874c
SB
153 _test_tpm2_getcap \
154 _test_tpm2_hashing \
155 _test_tpm2_hashing2 \
156 _test_tpm2_hashing3 \
157 _test_tpm2_init \
158 _test_tpm2_locality \
70ed60be 159 _test_tpm2_migration_key \
3008874c 160 _test_tpm2_probe \
c88b36f0 161 _test_tpm2_resume_volatile \
3008874c 162 _test_tpm2_savestate \
75d33931 163 _test_tpm2_save_load_encrypted_state \
313cf75c 164 _test_tpm2_save_load_state_da_timeout \
3008874c 165 _test_tpm2_setbuffersize \
8fcec541 166 _test_tpm2_swtpm_bios \
f84a0f11 167 _test_tpm2_volatilestate \
3008874c 168 _test_tpm2_wrongorder \
4c046e0b
SB
169 _test_volatilestate \
170 _test_wrongorder
19e05751
SB
171
172check-display:
173 @if test -n "$$SWTPM_EXE"; then \
174 echo "*** Using SWTPM_EXE=$$SWTPM_EXE"; \
175 fi
176 @if test -n "$$SWTPM_BIOS"; then \
177 echo "*** Using SWTPM_BIOS=$$SWTPM_BIOS"; \
178 fi
179 @if test -n "$$SWTPM_IOCTL"; then \
180 echo "*** Using SWTPM_IOCTL=$$SWTPM_IOCTL"; \
181 fi
182
183check: check-am check-display