]>
Commit | Line | Data |
---|---|---|
1b233b95 | 1 | EXTRA_DIST += \ |
69c2bdfe | 2 | $(COMMON_MACROS_AT) \ |
1b233b95 | 3 | $(TESTSUITE_AT) \ |
d7c5426b | 4 | $(SYSTEM_TESTSUITE_AT) \ |
f7526200 | 5 | $(SYSTEM_KMOD_TESTSUITE_AT) \ |
d7c5426b | 6 | $(SYSTEM_USERSPACE_TESTSUITE_AT) \ |
1b233b95 | 7 | $(TESTSUITE) \ |
f7526200 | 8 | $(SYSTEM_KMOD_TESTSUITE) \ |
d7c5426b | 9 | $(SYSTEM_USERSPACE_TESTSUITE) \ |
1b233b95 BP |
10 | tests/atlocal.in \ |
11 | $(srcdir)/package.m4 \ | |
ddd347c2 GS |
12 | $(srcdir)/tests/testsuite \ |
13 | $(srcdir)/tests/testsuite.patch | |
69c2bdfe AZ |
14 | |
15 | COMMON_MACROS_AT = \ | |
24c8ae53 | 16 | tests/ovsdb-macros.at \ |
02e6f2f7 | 17 | tests/ovs-macros.at \ |
69c2bdfe AZ |
18 | tests/ofproto-macros.at |
19 | ||
20 | TESTSUITE_AT = \ | |
21 | tests/testsuite.at \ | |
08d42548 | 22 | tests/completion.at \ |
1b233b95 | 23 | tests/library.at \ |
95974447 | 24 | tests/heap.at \ |
daff3353 | 25 | tests/bundle.at \ |
3223e977 | 26 | tests/classifier.at \ |
05b3c97b | 27 | tests/check-structs.at \ |
ff8decf1 | 28 | tests/daemon.at \ |
99155935 | 29 | tests/daemon-py.at \ |
f25d0cf3 | 30 | tests/ofp-actions.at \ |
fec00620 | 31 | tests/ofp-print.at \ |
681ea7a0 | 32 | tests/ofp-util.at \ |
2e0525bc | 33 | tests/ofp-errors.at \ |
0e581146 | 34 | tests/ovs-ofctl.at \ |
3bffc610 | 35 | tests/odp.at \ |
5af43325 | 36 | tests/mpls-xlate.at \ |
53ddd40a | 37 | tests/multipath.at \ |
015cf297 | 38 | tests/bfd.at \ |
03f209ba | 39 | tests/cfm.at \ |
742468d9 | 40 | tests/lacp.at \ |
acf72f13 | 41 | tests/lib.at \ |
75a75043 | 42 | tests/learn.at \ |
d27ce529 | 43 | tests/vconn.at \ |
e1aff6f9 | 44 | tests/file_name.at \ |
d918d9d1 | 45 | tests/aes128.at \ |
0a68ffd2 | 46 | tests/unixctl-py.at \ |
d918d9d1 | 47 | tests/uuid.at \ |
f38b84ea | 48 | tests/json.at \ |
f2129093 | 49 | tests/jsonrpc.at \ |
99155935 | 50 | tests/jsonrpc-py.at \ |
0f538378 | 51 | tests/tunnel.at \ |
a36de779 | 52 | tests/tunnel-push-pop.at \ |
ac718c9d | 53 | tests/lockfile.at \ |
3ed497fc | 54 | tests/reconnect.at \ |
b7898031 | 55 | tests/ovs-vswitchd.at \ |
9c4044a5 | 56 | tests/dpif-netdev.at \ |
5acf2e91 | 57 | tests/dpctl.at \ |
29901626 | 58 | tests/ofproto-dpif.at \ |
c40b890f | 59 | tests/bridge.at \ |
1c3e353d | 60 | tests/vlan-splinters.at \ |
a2cb9dfd | 61 | tests/ofproto.at \ |
f85f8ebb | 62 | tests/ovsdb.at \ |
41709ccc | 63 | tests/ovsdb-log.at \ |
f85f8ebb BP |
64 | tests/ovsdb-types.at \ |
65 | tests/ovsdb-data.at \ | |
66 | tests/ovsdb-column.at \ | |
67 | tests/ovsdb-table.at \ | |
68 | tests/ovsdb-row.at \ | |
0d0f05b9 | 69 | tests/ovsdb-schema.at \ |
f85f8ebb | 70 | tests/ovsdb-condition.at \ |
e9f8f936 | 71 | tests/ovsdb-mutation.at \ |
f85f8ebb BP |
72 | tests/ovsdb-query.at \ |
73 | tests/ovsdb-transaction.at \ | |
74 | tests/ovsdb-execution.at \ | |
75 | tests/ovsdb-trigger.at \ | |
1e19e50e | 76 | tests/ovsdb-tool.at \ |
21ff1aee | 77 | tests/ovsdb-server.at \ |
a8425c53 | 78 | tests/ovsdb-monitor.at \ |
c3bb4bd7 | 79 | tests/ovsdb-idl.at \ |
48d014bf | 80 | tests/ovs-vsctl.at \ |
b54bdbe9 | 81 | tests/ovs-monitor-ipsec.at \ |
1b0fdca5 | 82 | tests/ovs-xapi-sync.at \ |
829a7d02 | 83 | tests/stp.at \ |
9efd308e | 84 | tests/rstp.at \ |
8ed182d8 | 85 | tests/interface-reconfigure.at \ |
ffc759c6 | 86 | tests/vlog.at \ |
99eef98b | 87 | tests/vtep-ctl.at \ |
10b1662b BP |
88 | tests/auto-attach.at \ |
89 | tests/ovn.at | |
69c2bdfe | 90 | |
f7526200 DDP |
91 | SYSTEM_KMOD_TESTSUITE_AT = \ |
92 | tests/system-common-macros.at \ | |
93 | tests/system-kmod-testsuite.at \ | |
d7c5426b DDP |
94 | tests/system-kmod-macros.at |
95 | ||
96 | SYSTEM_USERSPACE_TESTSUITE_AT = \ | |
97 | tests/system-userspace-testsuite.at \ | |
98 | tests/system-userspace-macros.at | |
99 | ||
100 | SYSTEM_TESTSUITE_AT = \ | |
101 | tests/system-common-macros.at \ | |
f7526200 | 102 | tests/system-traffic.at |
69c2bdfe | 103 | |
1b233b95 | 104 | TESTSUITE = $(srcdir)/tests/testsuite |
ddd347c2 | 105 | TESTSUITE_PATCH = $(srcdir)/tests/testsuite.patch |
f7526200 | 106 | SYSTEM_KMOD_TESTSUITE = $(srcdir)/tests/system-kmod-testsuite |
d7c5426b | 107 | SYSTEM_USERSPACE_TESTSUITE = $(srcdir)/tests/system-userspace-testsuite |
7fe079c2 | 108 | DISTCLEANFILES += tests/atconfig tests/atlocal |
1b233b95 | 109 | |
3e2e7588 | 110 | AUTOTEST_PATH = utilities:vswitchd:ovsdb:vtep:tests:$(PTHREAD_WIN32_DIR_DLL) |
7c126fbb | 111 | |
1b233b95 | 112 | check-local: tests/atconfig tests/atlocal $(TESTSUITE) |
7c126fbb BP |
113 | $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS) |
114 | \f | |
79982e90 EJ |
115 | # Python Coverage support. |
116 | # Requires coverage.py http://nedbatchelder.com/code/coverage/. | |
117 | ||
118 | COVERAGE = coverage | |
119 | COVERAGE_FILE='$(abs_srcdir)/.coverage' | |
120 | check-pycov: all tests/atconfig tests/atlocal $(TESTSUITE) clean-pycov | |
853d1083 | 121 | PYTHONDONTWRITEBYTECODE=yes COVERAGE_FILE=$(COVERAGE_FILE) PYTHON='$(COVERAGE) run -p' $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS) |
79982e90 EJ |
122 | @cd $(srcdir) && $(COVERAGE) combine && COVERAGE_FILE=$(COVERAGE_FILE) $(COVERAGE) annotate |
123 | @echo | |
124 | @echo '----------------------------------------------------------------------' | |
125 | @echo 'Annotated coverage source has the ",cover" extension.' | |
126 | @echo '----------------------------------------------------------------------' | |
127 | @echo | |
128 | @COVERAGE_FILE=$(COVERAGE_FILE) $(COVERAGE) report | |
129 | \f | |
b6fa4447 BP |
130 | # valgrind support |
131 | ||
132 | valgrind_wrappers = \ | |
133 | tests/valgrind/ovs-appctl \ | |
9f19a2a3 | 134 | tests/valgrind/ovs-ofctl \ |
3932d8db | 135 | tests/valgrind/ovstest \ |
b6fa4447 | 136 | tests/valgrind/ovs-vsctl \ |
b0f7b9b5 | 137 | tests/valgrind/ovs-vswitchd \ |
b6fa4447 BP |
138 | tests/valgrind/ovsdb-client \ |
139 | tests/valgrind/ovsdb-server \ | |
140 | tests/valgrind/ovsdb-tool \ | |
141 | tests/valgrind/test-aes128 \ | |
31a3fc6e | 142 | tests/valgrind/test-atomic \ |
daff3353 | 143 | tests/valgrind/test-bundle \ |
10a24935 | 144 | tests/valgrind/test-byte-order \ |
b6fa4447 | 145 | tests/valgrind/test-classifier \ |
0e666160 | 146 | tests/valgrind/test-cmap \ |
b6fa4447 | 147 | tests/valgrind/test-csum \ |
b6fa4447 BP |
148 | tests/valgrind/test-flows \ |
149 | tests/valgrind/test-hash \ | |
822b7f52 | 150 | tests/valgrind/test-hindex \ |
b6fa4447 BP |
151 | tests/valgrind/test-hmap \ |
152 | tests/valgrind/test-json \ | |
153 | tests/valgrind/test-jsonrpc \ | |
154 | tests/valgrind/test-list \ | |
155 | tests/valgrind/test-lockfile \ | |
53ddd40a | 156 | tests/valgrind/test-multipath \ |
3bffc610 | 157 | tests/valgrind/test-odp \ |
38876d31 | 158 | tests/valgrind/test-ofpbuf \ |
b6fa4447 | 159 | tests/valgrind/test-ovsdb \ |
f696f12f | 160 | tests/valgrind/test-packets \ |
78f3f316 | 161 | tests/valgrind/test-random \ |
b6fa4447 | 162 | tests/valgrind/test-reconnect \ |
9efd308e | 163 | tests/valgrind/test-rstp \ |
b6fa4447 | 164 | tests/valgrind/test-sha1 \ |
829a7d02 | 165 | tests/valgrind/test-stp \ |
b6fa4447 | 166 | tests/valgrind/test-type-props \ |
6e170b4c | 167 | tests/valgrind/test-unix-socket \ |
b6fa4447 | 168 | tests/valgrind/test-uuid \ |
10a24935 | 169 | tests/valgrind/test-vconn |
b6fa4447 BP |
170 | |
171 | $(valgrind_wrappers): tests/valgrind-wrapper.in | |
172 | @test -d tests/valgrind || mkdir tests/valgrind | |
ef44aa50 BP |
173 | $(AM_V_GEN) sed -e 's,[@]wrap_program[@],$@,' \ |
174 | $(top_srcdir)/tests/valgrind-wrapper.in > $@.tmp && \ | |
175 | chmod +x $@.tmp && \ | |
b6fa4447 BP |
176 | mv $@.tmp $@ |
177 | CLEANFILES += $(valgrind_wrappers) | |
178 | EXTRA_DIST += tests/valgrind-wrapper.in | |
179 | ||
180 | VALGRIND = valgrind --log-file=valgrind.%p --leak-check=full \ | |
75b87ae5 | 181 | --suppressions=$(abs_top_srcdir)/tests/glibc.supp \ |
b6fa4447 | 182 | --suppressions=$(abs_top_srcdir)/tests/openssl.supp --num-callers=20 |
75b87ae5 | 183 | EXTRA_DIST += tests/glibc.supp tests/openssl.supp |
16496eea BP |
184 | check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) \ |
185 | $(valgrind_wrappers) $(check_DATA) | |
b6fa4447 BP |
186 | $(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS) |
187 | @echo | |
188 | @echo '----------------------------------------------------------------------' | |
189 | @echo 'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*' | |
190 | @echo '----------------------------------------------------------------------' | |
191 | \f | |
81a114e5 BP |
192 | # OFTest support. |
193 | ||
194 | check-oftest: all | |
ef44aa50 | 195 | $(AM_V_at)srcdir='$(srcdir)' $(SHELL) $(srcdir)/tests/run-oftest |
81a114e5 | 196 | EXTRA_DIST += tests/run-oftest |
e3c7ed29 BP |
197 | |
198 | # Ryu support. | |
199 | check-ryu: all | |
ef44aa50 | 200 | $(AM_V_at)srcdir='$(srcdir)' $(SHELL) $(srcdir)/tests/run-ryu |
e3c7ed29 | 201 | EXTRA_DIST += tests/run-ryu |
81a114e5 | 202 | \f |
69c2bdfe | 203 | # Run kmod tests. Assume kernel modules has been installed or linked into the kernel |
f7526200 DDP |
204 | check-kernel: all tests/atconfig tests/atlocal $(SYSTEM_KMOD_TESTSUITE) |
205 | $(SHELL) '$(SYSTEM_KMOD_TESTSUITE)' -C tests AUTOTEST_PATH='$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS) | |
69c2bdfe AZ |
206 | |
207 | # Testing the out of tree Kernel module | |
f7526200 | 208 | check-kmod: all tests/atconfig tests/atlocal $(SYSTEM_KMOD_TESTSUITE) |
69c2bdfe | 209 | $(MAKE) modules_install |
95bad473 | 210 | modprobe -r openvswitch |
69c2bdfe AZ |
211 | $(MAKE) check-kernel |
212 | ||
d7c5426b DDP |
213 | check-system-userspace: all tests/atconfig tests/atlocal $(SYSTEM_USERSPACE_TESTSUITE) |
214 | $(SHELL) '$(SYSTEM_USERSPACE_TESTSUITE)' -C tests AUTOTEST_PATH='$(AUTOTEST_PATH)' $(TESTSUITEFLAGS) | |
215 | ||
1b233b95 BP |
216 | clean-local: |
217 | test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean | |
218 | ||
1b233b95 | 219 | AUTOTEST = $(AUTOM4TE) --language=autotest |
83e09b5d GS |
220 | |
221 | if WIN32 | |
ddd347c2 | 222 | $(TESTSUITE): package.m4 $(TESTSUITE_AT) $(COMMON_MACROS_AT) $(TESTSUITE_PATCH) |
dcd03218 FL |
223 | $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' -o testsuite.tmp $@.at |
224 | patch -p0 testsuite.tmp $(TESTSUITE_PATCH) | |
225 | $(AM_V_at)mv testsuite.tmp $@ | |
83e09b5d GS |
226 | else |
227 | $(TESTSUITE): package.m4 $(TESTSUITE_AT) $(COMMON_MACROS_AT) | |
228 | $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at | |
229 | $(AM_V_at)mv $@.tmp $@ | |
230 | endif | |
69c2bdfe | 231 | |
d7c5426b DDP |
232 | $(SYSTEM_KMOD_TESTSUITE): package.m4 $(SYSTEM_TESTSUITE_AT) $(SYSTEM_KMOD_TESTSUITE_AT) $(COMMON_MACROS_AT) |
233 | $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at | |
234 | $(AM_V_at)mv $@.tmp $@ | |
235 | ||
236 | $(SYSTEM_USERSPACE_TESTSUITE): package.m4 $(SYSTEM_TESTSUITE_AT) $(SYSTEM_USERSPACE_TESTSUITE_AT) $(COMMON_MACROS_AT) | |
ef44aa50 BP |
237 | $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at |
238 | $(AM_V_at)mv $@.tmp $@ | |
1b233b95 BP |
239 | |
240 | # The `:;' works around a Bash 3.2 bug when the output is not writeable. | |
241 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac | |
ef44aa50 | 242 | $(AM_V_GEN):;{ \ |
1b233b95 | 243 | echo '# Signature of the current package.' && \ |
f99cd6ee BP |
244 | echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \ |
245 | echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \ | |
246 | echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \ | |
247 | echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \ | |
248 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \ | |
1b233b95 BP |
249 | } >'$(srcdir)/package.m4' |
250 | ||
f85f8ebb | 251 | noinst_PROGRAMS += tests/test-ovsdb |
90ffd534 BP |
252 | tests_test_ovsdb_SOURCES = tests/test-ovsdb.c |
253 | nodist_tests_test_ovsdb_SOURCES = tests/idltest.c tests/idltest.h | |
7360012b | 254 | EXTRA_DIST += tests/uuidfilt.pl tests/ovsdb-monitor-sort.pl |
96d87817 | 255 | tests_test_ovsdb_LDADD = ovsdb/libovsdb.la lib/libopenvswitch.la |
00732bf5 | 256 | |
acf72f13 TG |
257 | noinst_PROGRAMS += tests/test-lib |
258 | tests_test_lib_SOURCES = \ | |
259 | tests/test-lib.c | |
260 | tests_test_lib_LDADD = lib/libopenvswitch.la | |
261 | ||
00732bf5 | 262 | # idltest schema and IDL |
2c84fdf2 | 263 | OVSIDL_BUILT += tests/idltest.c tests/idltest.h tests/idltest.ovsidl |
00732bf5 | 264 | IDLTEST_IDL_FILES = tests/idltest.ovsschema tests/idltest.ann |
d18e52e3 | 265 | EXTRA_DIST += $(IDLTEST_IDL_FILES) tests/idltest2.ovsschema |
00732bf5 | 266 | tests/idltest.ovsidl: $(IDLTEST_IDL_FILES) |
ef44aa50 | 267 | $(AM_V_GEN)$(OVSDB_IDLC) -C $(srcdir) annotate $(IDLTEST_IDL_FILES) > $@.tmp && \ |
00732bf5 BP |
268 | mv $@.tmp $@ |
269 | ||
b0fc010a | 270 | tests/idltest.c: tests/idltest.h |
f85f8ebb | 271 | |
95fb793a | 272 | if DPDK_NETDEV |
e96981de SF |
273 | noinst_PROGRAMS += tests/test-dpdkr |
274 | tests_test_dpdkr_SOURCES = \ | |
275 | tests/dpdk/ring_client.c | |
276 | tests_test_dpdkr_LDADD = lib/libopenvswitch.la $(LIBS) | |
95fb793a | 277 | endif |
278 | ||
3932d8db | 279 | noinst_PROGRAMS += tests/ovstest |
eadd1644 AZ |
280 | tests_ovstest_SOURCES = \ |
281 | tests/ovstest.c \ | |
282 | tests/ovstest.h \ | |
283 | tests/test-aes128.c \ | |
284 | tests/test-atomic.c \ | |
285 | tests/test-bundle.c \ | |
286 | tests/test-byte-order.c \ | |
287 | tests/test-classifier.c \ | |
0e666160 | 288 | tests/test-cmap.c \ |
eadd1644 | 289 | tests/test-csum.c \ |
eadd1644 AZ |
290 | tests/test-flows.c \ |
291 | tests/test-hash.c \ | |
292 | tests/test-heap.c \ | |
293 | tests/test-hindex.c \ | |
294 | tests/test-hmap.c \ | |
295 | tests/test-json.c \ | |
296 | tests/test-jsonrpc.c \ | |
297 | tests/test-list.c \ | |
298 | tests/test-lockfile.c \ | |
299 | tests/test-multipath.c \ | |
300 | tests/test-netflow.c \ | |
301 | tests/test-odp.c \ | |
38876d31 | 302 | tests/test-ofpbuf.c \ |
10b1662b | 303 | tests/test-ovn.c \ |
eadd1644 AZ |
304 | tests/test-packets.c \ |
305 | tests/test-random.c \ | |
306 | tests/test-reconnect.c \ | |
9efd308e | 307 | tests/test-rstp.c \ |
eadd1644 AZ |
308 | tests/test-sflow.c \ |
309 | tests/test-sha1.c \ | |
310 | tests/test-stp.c \ | |
eadd1644 AZ |
311 | tests/test-util.c \ |
312 | tests/test-uuid.c \ | |
f831a472 | 313 | tests/test-bitmap.c \ |
99eef98b DF |
314 | tests/test-vconn.c \ |
315 | tests/test-aa.c | |
7882cfb1 GS |
316 | |
317 | if !WIN32 | |
318 | tests_ovstest_SOURCES += \ | |
319 | tests/test-unix-socket.c | |
320 | endif | |
321 | ||
10b1662b | 322 | tests_ovstest_LDADD = lib/libopenvswitch.la ovn/lib/libovn.la |
eadd1644 | 323 | dist_check_SCRIPTS = tests/flowgen.pl |
d138cd2c | 324 | |
78f172aa BP |
325 | noinst_PROGRAMS += tests/test-strtok_r |
326 | tests_test_strtok_r_SOURCES = tests/test-strtok_r.c | |
327 | ||
064af421 BP |
328 | noinst_PROGRAMS += tests/test-type-props |
329 | tests_test_type_props_SOURCES = tests/test-type-props.c | |
330 | ||
99155935 | 331 | # Python tests. |
79982e90 | 332 | CHECK_PYFILES = \ |
0a68ffd2 | 333 | tests/appctl.py \ |
99155935 BP |
334 | tests/test-daemon.py \ |
335 | tests/test-json.py \ | |
336 | tests/test-jsonrpc.py \ | |
337 | tests/test-ovsdb.py \ | |
1b0fdca5 | 338 | tests/test-reconnect.py \ |
8ed182d8 | 339 | tests/MockXenAPI.py \ |
cd57233c | 340 | tests/test-unix-socket.py \ |
0a68ffd2 | 341 | tests/test-unixctl.py \ |
8ed182d8 | 342 | tests/test-vlog.py |
79982e90 EJ |
343 | EXTRA_DIST += $(CHECK_PYFILES) |
344 | PYCOV_CLEAN_FILES += $(CHECK_PYFILES:.py=.py,cover) .coverage | |
15b619e2 BP |
345 | |
346 | if HAVE_OPENSSL | |
347 | TESTPKI_FILES = \ | |
348 | tests/testpki-cacert.pem \ | |
349 | tests/testpki-cert.pem \ | |
350 | tests/testpki-privkey.pem \ | |
351 | tests/testpki-req.pem \ | |
352 | tests/testpki-cert2.pem \ | |
353 | tests/testpki-privkey2.pem \ | |
354 | tests/testpki-req2.pem | |
355 | check_DATA += $(TESTPKI_FILES) | |
356 | CLEANFILES += $(TESTPKI_FILES) | |
357 | ||
ef44aa50 BP |
358 | tests/testpki-cacert.pem: tests/pki/stamp |
359 | $(AM_V_GEN)cp tests/pki/switchca/cacert.pem $@ | |
360 | tests/testpki-cert.pem: tests/pki/stamp | |
361 | $(AM_V_GEN)cp tests/pki/test-cert.pem $@ | |
362 | tests/testpki-req.pem: tests/pki/stamp | |
363 | $(AM_V_GEN)cp tests/pki/test-req.pem $@ | |
364 | tests/testpki-privkey.pem: tests/pki/stamp | |
365 | $(AM_V_GEN)cp tests/pki/test-privkey.pem $@ | |
366 | tests/testpki-cert2.pem: tests/pki/stamp | |
367 | $(AM_V_GEN)cp tests/pki/test2-cert.pem $@ | |
368 | tests/testpki-req2.pem: tests/pki/stamp | |
369 | $(AM_V_GEN)cp tests/pki/test2-req.pem $@ | |
370 | tests/testpki-privkey2.pem: tests/pki/stamp | |
371 | $(AM_V_GEN)cp tests/pki/test2-privkey.pem $@ | |
15b619e2 BP |
372 | |
373 | OVS_PKI = $(SHELL) $(srcdir)/utilities/ovs-pki.in --dir=tests/pki --log=tests/ovs-pki.log | |
374 | tests/pki/stamp: | |
ef44aa50 BP |
375 | $(AM_V_at)rm -f tests/pki/stamp |
376 | $(AM_V_at)rm -rf tests/pki | |
377 | $(AM_V_GEN)$(OVS_PKI) init && \ | |
378 | $(OVS_PKI) req+sign tests/pki/test && \ | |
379 | $(OVS_PKI) req+sign tests/pki/test2 && \ | |
15b619e2 BP |
380 | : > tests/pki/stamp |
381 | CLEANFILES += tests/ovs-pki.log | |
382 | ||
383 | CLEAN_LOCAL += clean-pki | |
384 | clean-pki: | |
385 | rm -f tests/pki/stamp | |
386 | rm -rf tests/pki | |
387 | endif |