]> git.proxmox.com Git - swtpm.git/blame - tests/Makefile.am
swtpm_setup: Add support for choosing the cipher
[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
SB
64 \
65 test_tpm2_samples_swtpm_localca
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 \
276eee02 77 test_tpm2_swtpm_cert \
c50cb6cb
SB
78 test_tpm2_swtpm_cert_ecc \
79 test_tpm2_swtpm_setup_create_cert
64faf455 80if HAVE_TCSD
f26ec8c8 81TESTS += \
c50cb6cb 82 test_swtpm_setup_create_cert
e46a2b66 83endif
f26ec8c8
SB
84endif
85
e46a2b66
SB
86EXTRA_DIST=$(TESTS) \
87 swtpm_setup.conf \
4c046e0b 88 common \
e46a2b66 89 create_certs.sh \
276eee02
SB
90 data/ecpubek.pem \
91 data/ecprivek.pem \
e46a2b66
SB
92 data/issuercert.pem \
93 data/pubek.pem \
94 data/signkey.pem \
95 data/keyfile.txt \
96 data/pwdfile.txt \
70ed60be 97 data/migkey1/tpm2-volatilestate.bin \
8236603b 98 data/migkey1/volatilestate.bin \
e46a2b66
SB
99 data/tpmstate1/tpm-00.permall \
100 data/tpmstate1/tpm-00.volatilestate \
101 data/tpmstate1/README \
102 data/tpmstate2/tpm-00.permall \
103 data/tpmstate2/tpm-00.volatilestate \
104 data/tpmstate2/pwdfile.txt \
105 data/tpmstate2/README \
c88b36f0
SB
106 data/tpm2state1/tpm2-00.permall \
107 data/tpm2state1/tpm2-00.volatilestate \
108 data/tpm2state2/tpm2-00.permall \
109 data/tpm2state2/tpm2-00.volatilestate \
110 data/tpm2state2/pwdfile.txt \
6a110a5a
SB
111 data/tpm2state3/hkey.priv \
112 data/tpm2state3/hkey.pub \
113 data/tpm2state3/signature.bin \
114 data/tpm2state3/tpm2-00.permall \
5211d89d
SB
115 data/tpm2state3c/tpm2-00.volatilestate \
116 data/tpm2state3c/tpm2-00.permall \
117 data/tpm2state3d/tpm2-00.volatilestate \
118 data/tpm2state3d/signature2.bin \
119 data/tpm2state3d/tpm2-00.permall \
120 data/tpm2state3b/h81000000.bin \
121 data/tpm2state3b/h02000000.bin \
122 data/tpm2state3b/tpm2-00.volatilestate \
123 data/tpm2state3b/tpm2-00.permall \
84629d2c 124 load_vtpm_proxy \
4c046e0b 125 test_clientfds.py \
70f3e248 126 test_common \
96038cdf 127 test_cuse \
4c046e0b
SB
128 test_setdatafd.py \
129 test_swtpm_cert \
130 _test_encrypted_state \
131 _test_getcap \
132 _test_hashing \
133 _test_hashing2 \
134 _test_init \
135 _test_locality \
136 _test_migration_key \
137 _test_migration_key_2 \
138 _test_resume_volatile \
139 _test_save_load_encrypted_state \
140 _test_save_load_state \
141 _test_setbuffersize \
142 _test_swtpm_bios \
3008874c 143 _test_tpm_probe \
75d33931 144 _test_tpm2_encrypted_state \
3008874c
SB
145 _test_tpm2_getcap \
146 _test_tpm2_hashing \
147 _test_tpm2_hashing2 \
148 _test_tpm2_hashing3 \
149 _test_tpm2_init \
150 _test_tpm2_locality \
70ed60be 151 _test_tpm2_migration_key \
3008874c 152 _test_tpm2_probe \
c88b36f0 153 _test_tpm2_resume_volatile \
3008874c 154 _test_tpm2_savestate \
75d33931 155 _test_tpm2_save_load_encrypted_state \
313cf75c 156 _test_tpm2_save_load_state_da_timeout \
3008874c 157 _test_tpm2_setbuffersize \
8fcec541 158 _test_tpm2_swtpm_bios \
f84a0f11 159 _test_tpm2_volatilestate \
3008874c 160 _test_tpm2_wrongorder \
4c046e0b
SB
161 _test_volatilestate \
162 _test_wrongorder
19e05751
SB
163
164check-display:
165 @if test -n "$$SWTPM_EXE"; then \
166 echo "*** Using SWTPM_EXE=$$SWTPM_EXE"; \
167 fi
168 @if test -n "$$SWTPM_BIOS"; then \
169 echo "*** Using SWTPM_BIOS=$$SWTPM_BIOS"; \
170 fi
171 @if test -n "$$SWTPM_IOCTL"; then \
172 echo "*** Using SWTPM_IOCTL=$$SWTPM_IOCTL"; \
173 fi
174
175check: check-am check-display