6 $(srcdir)/tests
/testsuite
9 tests
/ovsdb-macros.at \
13 tests
/check-structs.at \
32 tests
/ofproto-dpif.at \
33 tests
/ofproto-macros.at \
37 tests
/ovsdb-types.at \
39 tests
/ovsdb-column.at \
40 tests
/ovsdb-table.at \
42 tests
/ovsdb-schema.at \
43 tests
/ovsdb-condition.at \
44 tests
/ovsdb-mutation.at \
45 tests
/ovsdb-query.at \
46 tests
/ovsdb-transaction.at \
47 tests
/ovsdb-execution.at \
48 tests
/ovsdb-trigger.at \
50 tests
/ovsdb-server.at \
51 tests
/ovsdb-monitor.at \
54 tests
/ovs-monitor-ipsec.at \
55 tests
/ovs-xapi-sync.at \
57 tests
/interface-reconfigure.at \
59 TESTSUITE
= $(srcdir)/tests
/testsuite
60 DISTCLEANFILES
+= tests
/atconfig tests
/atlocal
62 AUTOTEST_PATH
= utilities
:vswitchd
:ovsdb
:tests
64 check-local
: tests
/atconfig tests
/atlocal
$(TESTSUITE
)
65 $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
70 tests
/lcov
/ovs-appctl \
71 tests
/lcov
/ovs-vsctl \
72 tests
/lcov
/ovsdb-client \
73 tests
/lcov
/ovsdb-server \
74 tests
/lcov
/ovsdb-tool \
75 tests
/lcov
/test-aes128 \
76 tests
/lcov
/test-bundle \
77 tests
/lcov
/test-byte-order \
78 tests
/lcov
/test-classifier \
79 tests
/lcov
/test-csum \
80 tests
/lcov
/test-file_name \
81 tests
/lcov
/test-flows \
82 tests
/lcov
/test-hash \
83 tests
/lcov
/test-hmap \
84 tests
/lcov
/test-json \
85 tests
/lcov
/test-jsonrpc \
86 tests
/lcov
/test-list \
87 tests
/lcov
/test-lockfile \
88 tests
/lcov
/test-multipath \
90 tests
/lcov
/test-ovsdb \
91 tests
/lcov
/test-packets \
92 tests
/lcov
/test-random \
93 tests
/lcov
/test-reconnect \
94 tests
/lcov
/test-sha1 \
96 tests
/lcov
/test-timeval \
97 tests
/lcov
/test-type-props \
98 tests
/lcov
/test-unix-socket \
99 tests
/lcov
/test-uuid \
100 tests
/lcov
/test-vconn
102 $(lcov_wrappers
): tests
/lcov-wrapper.in
103 @
test -d tests
/lcov || mkdir tests
/lcov
104 sed
-e
's,[@]abs_top_builddir[@],$(abs_top_builddir),' \
105 -e
's,[@]wrap_program[@],$@,' \
106 $(top_srcdir
)/tests
/lcov-wrapper.in
> $@.tmp
109 CLEANFILES
+= $(lcov_wrappers
)
110 EXTRA_DIST
+= tests
/lcov-wrapper.in
112 LCOV
= lcov
-b
$(abs_top_builddir
) -d
$(abs_top_builddir
) -q
113 check-lcov
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) $(lcov_wrappers
)
114 rm -fr tests
/coverage.html tests
/coverage.
info
115 $(LCOV
) -c
-i
-o
- > tests
/coverage.
info
116 $(SHELL
) '$(TESTSUITE)' -C tests CHECK_LCOV
=true DISABLE_LCOV
=false AUTOTEST_PATH
='tests/lcov:$(AUTOTEST_PATH)' $(TESTSUITEFLAGS
); \
118 echo
"Producing coverage.html..."; \
119 cd tests
&& genhtml
-q
-o coverage.html coverage.
info; \
124 valgrind_wrappers
= \
125 tests
/valgrind
/ovs-appctl \
126 tests
/valgrind
/ovs-vsctl \
127 tests
/valgrind
/ovsdb-client \
128 tests
/valgrind
/ovsdb-server \
129 tests
/valgrind
/ovsdb-tool \
130 tests
/valgrind
/test-aes128 \
131 tests
/valgrind
/test-bundle \
132 tests
/valgrind
/test-byte-order \
133 tests
/valgrind
/test-classifier \
134 tests
/valgrind
/test-csum \
135 tests
/valgrind
/test-file_name \
136 tests
/valgrind
/test-flows \
137 tests
/valgrind
/test-hash \
138 tests
/valgrind
/test-hmap \
139 tests
/valgrind
/test-json \
140 tests
/valgrind
/test-jsonrpc \
141 tests
/valgrind
/test-list \
142 tests
/valgrind
/test-lockfile \
143 tests
/valgrind
/test-multipath \
144 tests
/valgrind
/test-odp \
145 tests
/valgrind
/test-ovsdb \
146 tests
/valgrind
/test-packets \
147 tests
/valgrind
/test-random \
148 tests
/valgrind
/test-reconnect \
149 tests
/valgrind
/test-sha1 \
150 tests
/valgrind
/test-stp \
151 tests
/valgrind
/test-timeval \
152 tests
/valgrind
/test-type-props \
153 tests
/valgrind
/test-unix-socket \
154 tests
/valgrind
/test-uuid \
155 tests
/valgrind
/test-vconn
157 $(valgrind_wrappers
): tests
/valgrind-wrapper.in
158 @
test -d tests
/valgrind || mkdir tests
/valgrind
159 sed
-e
's,[@]wrap_program[@],$@,' \
160 $(top_srcdir
)/tests
/valgrind-wrapper.in
> $@.tmp
163 CLEANFILES
+= $(valgrind_wrappers
)
164 EXTRA_DIST
+= tests
/valgrind-wrapper.in
166 VALGRIND
= valgrind
--log-file
=valgrind.
%p
--leak-check
=full \
167 --suppressions
=$(abs_top_srcdir
)/tests
/openssl.supp
--num-callers
=20
168 EXTRA_DIST
+= tests
/openssl.supp
169 check-valgrind
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) $(valgrind_wrappers
)
170 $(SHELL
) '$(TESTSUITE)' -C tests CHECK_VALGRIND
=true VALGRIND
='$(VALGRIND)' AUTOTEST_PATH
='tests/valgrind:$(AUTOTEST_PATH)' -d
$(TESTSUITEFLAGS
)
172 @echo
'----------------------------------------------------------------------'
173 @echo
'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*'
174 @echo
'----------------------------------------------------------------------'
177 test ! -f
'$(TESTSUITE)' ||
$(SHELL
) '$(TESTSUITE)' -C tests
--clean
180 AUTOTEST
= $(AUTOM4TE
) --language
=autotest
181 $(TESTSUITE
): package.m4
$(TESTSUITE_AT
)
182 $(AUTOTEST
) -I
'$(srcdir)' -o
$@.tmp
$@.at
185 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
186 $(srcdir)/package.m4
: $(top_srcdir
)/configure.ac
188 echo
'# Signature of the current package.' && \
189 echo
'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
190 echo
'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
191 echo
'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
192 echo
'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
193 echo
'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
194 } >'$(srcdir)/package.m4'
196 noinst_PROGRAMS
+= tests
/test-aes128
197 tests_test_aes128_SOURCES
= tests
/test-aes128.c
198 tests_test_aes128_LDADD
= lib
/libopenvswitch.a
200 noinst_PROGRAMS
+= tests
/test-bundle
201 tests_test_bundle_SOURCES
= tests
/test-bundle.c
202 tests_test_bundle_LDADD
= lib
/libopenvswitch.a
204 noinst_PROGRAMS
+= tests
/test-classifier
205 tests_test_classifier_SOURCES
= tests
/test-classifier.c
206 tests_test_classifier_LDADD
= lib
/libopenvswitch.a
208 noinst_PROGRAMS
+= tests
/test-csum
209 tests_test_csum_SOURCES
= tests
/test-csum.c
210 tests_test_csum_LDADD
= lib
/libopenvswitch.a
212 noinst_PROGRAMS
+= tests
/test-file_name
213 tests_test_file_name_SOURCES
= tests
/test-file_name.c
214 tests_test_file_name_LDADD
= lib
/libopenvswitch.a
216 noinst_PROGRAMS
+= tests
/test-flows
217 tests_test_flows_SOURCES
= tests
/test-flows.c
218 tests_test_flows_LDADD
= lib
/libopenvswitch.a
219 dist_check_SCRIPTS
= tests
/flowgen.pl
221 noinst_PROGRAMS
+= tests
/test-hash
222 tests_test_hash_SOURCES
= tests
/test-hash.c
223 tests_test_hash_LDADD
= lib
/libopenvswitch.a
225 noinst_PROGRAMS
+= tests
/test-hmap
226 tests_test_hmap_SOURCES
= tests
/test-hmap.c
227 tests_test_hmap_LDADD
= lib
/libopenvswitch.a
229 noinst_PROGRAMS
+= tests
/test-json
230 tests_test_json_SOURCES
= tests
/test-json.c
231 tests_test_json_LDADD
= lib
/libopenvswitch.a
233 noinst_PROGRAMS
+= tests
/test-jsonrpc
234 tests_test_jsonrpc_SOURCES
= tests
/test-jsonrpc.c
235 tests_test_jsonrpc_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
237 noinst_PROGRAMS
+= tests
/test-list
238 tests_test_list_SOURCES
= tests
/test-list.c
239 tests_test_list_LDADD
= lib
/libopenvswitch.a
241 noinst_PROGRAMS
+= tests
/test-lockfile
242 tests_test_lockfile_SOURCES
= tests
/test-lockfile.c
243 tests_test_lockfile_LDADD
= lib
/libopenvswitch.a
245 noinst_PROGRAMS
+= tests
/test-multipath
246 tests_test_multipath_SOURCES
= tests
/test-multipath.c
247 tests_test_multipath_LDADD
= lib
/libopenvswitch.a
249 noinst_PROGRAMS
+= tests
/test-packets
250 tests_test_packets_SOURCES
= tests
/test-packets.c
251 tests_test_packets_LDADD
= lib
/libopenvswitch.a
253 noinst_PROGRAMS
+= tests
/test-random
254 tests_test_random_SOURCES
= tests
/test-random.c
255 tests_test_random_LDADD
= lib
/libopenvswitch.a
257 noinst_PROGRAMS
+= tests
/test-stp
258 tests_test_stp_SOURCES
= tests
/test-stp.c
259 tests_test_stp_LDADD
= lib
/libopenvswitch.a
261 noinst_PROGRAMS
+= tests
/test-unix-socket
262 tests_test_unix_socket_SOURCES
= tests
/test-unix-socket.c
263 tests_test_unix_socket_LDADD
= lib
/libopenvswitch.a
265 noinst_PROGRAMS
+= tests
/test-odp
266 tests_test_odp_SOURCES
= tests
/test-odp.c
267 tests_test_odp_LDADD
= lib
/libopenvswitch.a
269 noinst_PROGRAMS
+= tests
/test-ovsdb
270 tests_test_ovsdb_SOURCES
= \
274 EXTRA_DIST
+= tests
/uuidfilt.pl tests
/ovsdb-monitor-sort.pl
275 tests_test_ovsdb_LDADD
= ovsdb
/libovsdb.a lib
/libopenvswitch.a
$(SSL_LIBS
)
277 # idltest schema and IDL
278 OVSIDL_BUILT
+= tests
/idltest.c tests
/idltest.h tests
/idltest.ovsidl
279 IDLTEST_IDL_FILES
= tests
/idltest.ovsschema tests
/idltest.ann
280 EXTRA_DIST
+= $(IDLTEST_IDL_FILES
)
281 tests
/idltest.ovsidl
: $(IDLTEST_IDL_FILES
)
282 $(OVSDB_IDLC
) -C
$(srcdir) annotate
$(IDLTEST_IDL_FILES
) > $@.tmp
285 tests
/idltest.c
: tests
/idltest.h
287 noinst_PROGRAMS
+= tests
/test-reconnect
288 tests_test_reconnect_SOURCES
= tests
/test-reconnect.c
289 tests_test_reconnect_LDADD
= lib
/libopenvswitch.a
291 noinst_PROGRAMS
+= tests
/test-sha1
292 tests_test_sha1_SOURCES
= tests
/test-sha1.c
293 tests_test_sha1_LDADD
= lib
/libopenvswitch.a
295 noinst_PROGRAMS
+= tests
/test-timeval
296 tests_test_timeval_SOURCES
= tests
/test-timeval.c
297 tests_test_timeval_LDADD
= lib
/libopenvswitch.a
299 noinst_PROGRAMS
+= tests
/test-strtok_r
300 tests_test_strtok_r_SOURCES
= tests
/test-strtok_r.c
302 noinst_PROGRAMS
+= tests
/test-type-props
303 tests_test_type_props_SOURCES
= tests
/test-type-props.c
305 noinst_PROGRAMS
+= tests
/test-util
306 tests_test_util_SOURCES
= tests
/test-util.c
307 tests_test_util_LDADD
= lib
/libopenvswitch.a
309 noinst_PROGRAMS
+= tests
/test-uuid
310 tests_test_uuid_SOURCES
= tests
/test-uuid.c
311 tests_test_uuid_LDADD
= lib
/libopenvswitch.a
313 noinst_PROGRAMS
+= tests
/test-vconn
314 tests_test_vconn_SOURCES
= tests
/test-vconn.c
315 tests_test_vconn_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
317 noinst_PROGRAMS
+= tests
/test-byte-order
318 tests_test_byte_order_SOURCES
= tests
/test-byte-order.c
319 tests_test_byte_order_LDADD
= lib
/libopenvswitch.a
323 tests
/test-daemon.py \
325 tests
/test-jsonrpc.py \
326 tests
/test-ovsdb.py \
327 tests
/test-reconnect.py \
328 tests
/MockXenAPI.py \
333 tests
/testpki-cacert.pem \
334 tests
/testpki-cert.pem \
335 tests
/testpki-privkey.pem \
336 tests
/testpki-req.pem \
337 tests
/testpki-cert2.pem \
338 tests
/testpki-privkey2.pem \
339 tests
/testpki-req2.pem
340 check_DATA
+= $(TESTPKI_FILES
)
341 CLEANFILES
+= $(TESTPKI_FILES
)
343 tests
/testpki-cacert.pem
: tests
/pki
/stamp
; cp tests
/pki
/switchca
/cacert.pem
$@
344 tests
/testpki-cert.pem
: tests
/pki
/stamp
; cp tests
/pki
/test-cert.pem
$@
345 tests
/testpki-req.pem
: tests
/pki
/stamp
; cp tests
/pki
/test-req.pem
$@
346 tests
/testpki-privkey.pem
: tests
/pki
/stamp
; cp tests
/pki
/test-privkey.pem
$@
347 tests
/testpki-cert2.pem
: tests
/pki
/stamp
; cp tests
/pki
/test2-cert.pem
$@
348 tests
/testpki-req2.pem
: tests
/pki
/stamp
; cp tests
/pki
/test2-req.pem
$@
349 tests
/testpki-privkey2.pem
: tests
/pki
/stamp
; cp tests
/pki
/test2-privkey.pem
$@
351 OVS_PKI
= $(SHELL
) $(srcdir)/utilities
/ovs-pki.in
--dir=tests
/pki
--log
=tests
/ovs-pki.log
353 rm -f tests
/pki
/stamp
356 $(OVS_PKI
) req
+sign tests
/pki
/test
357 $(OVS_PKI
) req
+sign tests
/pki
/test2
359 CLEANFILES
+= tests
/ovs-pki.log
361 CLEAN_LOCAL
+= clean-pki
363 rm -f tests
/pki
/stamp