6 $(srcdir)/tests
/testsuite
9 tests
/ovsdb-macros.at \
14 tests
/check-structs.at \
17 tests
/ofp-actions.at \
39 tests
/ovs-vswitchd.at \
40 tests
/ofproto-dpif.at \
41 tests
/vlan-splinters.at \
42 tests
/ofproto-macros.at \
46 tests
/ovsdb-types.at \
48 tests
/ovsdb-column.at \
49 tests
/ovsdb-table.at \
51 tests
/ovsdb-schema.at \
52 tests
/ovsdb-condition.at \
53 tests
/ovsdb-mutation.at \
54 tests
/ovsdb-query.at \
55 tests
/ovsdb-transaction.at \
56 tests
/ovsdb-execution.at \
57 tests
/ovsdb-trigger.at \
59 tests
/ovsdb-server.at \
60 tests
/ovsdb-monitor.at \
63 tests
/ovs-monitor-ipsec.at \
64 tests
/ovs-xapi-sync.at \
66 tests
/interface-reconfigure.at \
69 TESTSUITE
= $(srcdir)/tests
/testsuite
70 DISTCLEANFILES
+= tests
/atconfig tests
/atlocal
72 AUTOTEST_PATH
= utilities
:vswitchd
:ovsdb
:vtep
:tests
74 check-local
: tests
/atconfig tests
/atlocal
$(TESTSUITE
)
75 $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
77 # Python Coverage support.
78 # Requires coverage.py http://nedbatchelder.com/code/coverage/.
81 COVERAGE_FILE
='$(abs_srcdir)/.coverage'
82 check-pycov
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) clean-pycov
83 PYTHONDONTWRITEBYTECODE
=yes COVERAGE_FILE
=$(COVERAGE_FILE
) PYTHON
='$(COVERAGE) run -p' $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
84 @cd
$(srcdir) && $(COVERAGE
) combine
&& COVERAGE_FILE
=$(COVERAGE_FILE
) $(COVERAGE
) annotate
86 @echo
'----------------------------------------------------------------------'
87 @echo
'Annotated coverage source has the ",cover" extension.'
88 @echo
'----------------------------------------------------------------------'
90 @COVERAGE_FILE
=$(COVERAGE_FILE
) $(COVERAGE
) report
95 tests
/valgrind
/ovs-appctl \
96 tests
/valgrind
/ovs-ofctl \
97 tests
/valgrind
/ovs-vsctl \
98 tests
/valgrind
/ovs-vswitchd \
99 tests
/valgrind
/ovsdb-client \
100 tests
/valgrind
/ovsdb-server \
101 tests
/valgrind
/ovsdb-tool \
102 tests
/valgrind
/test-aes128 \
103 tests
/valgrind
/test-atomic \
104 tests
/valgrind
/test-bundle \
105 tests
/valgrind
/test-byte-order \
106 tests
/valgrind
/test-classifier \
107 tests
/valgrind
/test-csum \
108 tests
/valgrind
/test-file_name \
109 tests
/valgrind
/test-flows \
110 tests
/valgrind
/test-hash \
111 tests
/valgrind
/test-heap \
112 tests
/valgrind
/test-hindex \
113 tests
/valgrind
/test-hmap \
114 tests
/valgrind
/test-json \
115 tests
/valgrind
/test-jsonrpc \
116 tests
/valgrind
/test-list \
117 tests
/valgrind
/test-lockfile \
118 tests
/valgrind
/test-multipath \
119 tests
/valgrind
/test-odp \
120 tests
/valgrind
/test-ovsdb \
121 tests
/valgrind
/test-packets \
122 tests
/valgrind
/test-random \
123 tests
/valgrind
/test-reconnect \
124 tests
/valgrind
/test-sha1 \
125 tests
/valgrind
/test-stp \
126 tests
/valgrind
/test-type-props \
127 tests
/valgrind
/test-unix-socket \
128 tests
/valgrind
/test-uuid \
129 tests
/valgrind
/test-vconn
131 $(valgrind_wrappers
): tests
/valgrind-wrapper.in
132 @
test -d tests
/valgrind || mkdir tests
/valgrind
133 sed
-e
's,[@]wrap_program[@],$@,' \
134 $(top_srcdir
)/tests
/valgrind-wrapper.in
> $@.tmp
137 CLEANFILES
+= $(valgrind_wrappers
)
138 EXTRA_DIST
+= tests
/valgrind-wrapper.in
140 VALGRIND
= valgrind
--log-file
=valgrind.
%p
--leak-check
=full \
141 --suppressions
=$(abs_top_srcdir
)/tests
/glibc.supp \
142 --suppressions
=$(abs_top_srcdir
)/tests
/openssl.supp
--num-callers
=20
143 EXTRA_DIST
+= tests
/glibc.supp tests
/openssl.supp
144 check-valgrind
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) \
145 $(valgrind_wrappers
) $(check_DATA
)
146 $(SHELL
) '$(TESTSUITE)' -C tests CHECK_VALGRIND
=true VALGRIND
='$(VALGRIND)' AUTOTEST_PATH
='tests/valgrind:$(AUTOTEST_PATH)' -d
$(TESTSUITEFLAGS
)
148 @echo
'----------------------------------------------------------------------'
149 @echo
'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*'
150 @echo
'----------------------------------------------------------------------'
155 srcdir='$(srcdir)' $(SHELL
) $(srcdir)/tests
/run-oftest
156 EXTRA_DIST
+= tests
/run-oftest
159 test ! -f
'$(TESTSUITE)' ||
$(SHELL
) '$(TESTSUITE)' -C tests
--clean
161 AUTOTEST
= $(AUTOM4TE
) --language
=autotest
162 $(TESTSUITE
): package.m4
$(TESTSUITE_AT
)
163 $(AUTOTEST
) -I
'$(srcdir)' -o
$@.tmp
$@.at
166 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
167 $(srcdir)/package.m4
: $(top_srcdir
)/configure.ac
169 echo
'# Signature of the current package.' && \
170 echo
'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
171 echo
'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
172 echo
'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
173 echo
'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
174 echo
'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
175 } >'$(srcdir)/package.m4'
177 noinst_PROGRAMS
+= tests
/test-aes128
178 tests_test_aes128_SOURCES
= tests
/test-aes128.c
179 tests_test_aes128_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
181 noinst_PROGRAMS
+= tests
/test-atomic
182 tests_test_atomic_SOURCES
= tests
/test-atomic.c
183 tests_test_atomic_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
185 noinst_PROGRAMS
+= tests
/test-bundle
186 tests_test_bundle_SOURCES
= tests
/test-bundle.c
187 tests_test_bundle_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
189 noinst_PROGRAMS
+= tests
/test-classifier
190 tests_test_classifier_SOURCES
= tests
/test-classifier.c
191 tests_test_classifier_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
193 noinst_PROGRAMS
+= tests
/test-controller
194 MAN_ROOTS
+= tests
/test-controller
.8.in
195 DISTCLEANFILES
+= utilities
/test-controller
.8
196 noinst_man_MANS
+= tests
/test-controller
.8
197 tests_test_controller_SOURCES
= tests
/test-controller.c
198 tests_test_controller_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
200 noinst_PROGRAMS
+= tests
/test-csum
201 tests_test_csum_SOURCES
= tests
/test-csum.c
202 tests_test_csum_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
204 noinst_PROGRAMS
+= tests
/test-file_name
205 tests_test_file_name_SOURCES
= tests
/test-file_name.c
206 tests_test_file_name_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
208 noinst_PROGRAMS
+= tests
/test-flows
209 tests_test_flows_SOURCES
= tests
/test-flows.c
210 tests_test_flows_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
211 dist_check_SCRIPTS
= tests
/flowgen.pl
213 noinst_PROGRAMS
+= tests
/test-hash
214 tests_test_hash_SOURCES
= tests
/test-hash.c
215 tests_test_hash_LDADD
= lib
/libopenvswitch.a
217 noinst_PROGRAMS
+= tests
/test-heap
218 tests_test_heap_SOURCES
= tests
/test-heap.c
219 tests_test_heap_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
221 noinst_PROGRAMS
+= tests
/test-hindex
222 tests_test_hindex_SOURCES
= tests
/test-hindex.c
223 tests_test_hindex_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
225 noinst_PROGRAMS
+= tests
/test-hmap
226 tests_test_hmap_SOURCES
= tests
/test-hmap.c
227 tests_test_hmap_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
229 noinst_PROGRAMS
+= tests
/test-json
230 tests_test_json_SOURCES
= tests
/test-json.c
231 tests_test_json_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
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
$(SSL_LIBS
)
241 noinst_PROGRAMS
+= tests
/test-lockfile
242 tests_test_lockfile_SOURCES
= tests
/test-lockfile.c
243 tests_test_lockfile_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
245 noinst_PROGRAMS
+= tests
/test-multipath
246 tests_test_multipath_SOURCES
= tests
/test-multipath.c
247 tests_test_multipath_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
249 noinst_PROGRAMS
+= tests
/test-packets
250 tests_test_packets_SOURCES
= tests
/test-packets.c
251 tests_test_packets_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
253 noinst_PROGRAMS
+= tests
/test-random
254 tests_test_random_SOURCES
= tests
/test-random.c
255 tests_test_random_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
257 noinst_PROGRAMS
+= tests
/test-stp
258 tests_test_stp_SOURCES
= tests
/test-stp.c
259 tests_test_stp_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
261 noinst_PROGRAMS
+= tests
/test-sflow
262 tests_test_sflow_SOURCES
= tests
/test-sflow.c
263 tests_test_sflow_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
265 noinst_PROGRAMS
+= tests
/test-netflow
266 tests_test_netflow_SOURCES
= tests
/test-netflow.c
267 tests_test_netflow_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
269 noinst_PROGRAMS
+= tests
/test-unix-socket
270 tests_test_unix_socket_SOURCES
= tests
/test-unix-socket.c
271 tests_test_unix_socket_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
273 noinst_PROGRAMS
+= tests
/test-odp
274 tests_test_odp_SOURCES
= tests
/test-odp.c
275 tests_test_odp_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
277 noinst_PROGRAMS
+= tests
/test-ovsdb
278 tests_test_ovsdb_SOURCES
= \
282 EXTRA_DIST
+= tests
/uuidfilt.pl tests
/ovsdb-monitor-sort.pl
283 tests_test_ovsdb_LDADD
= ovsdb
/libovsdb.a lib
/libopenvswitch.a
$(SSL_LIBS
)
285 # idltest schema and IDL
286 OVSIDL_BUILT
+= tests
/idltest.c tests
/idltest.h tests
/idltest.ovsidl
287 IDLTEST_IDL_FILES
= tests
/idltest.ovsschema tests
/idltest.ann
288 EXTRA_DIST
+= $(IDLTEST_IDL_FILES
)
289 tests
/idltest.ovsidl
: $(IDLTEST_IDL_FILES
)
290 $(OVSDB_IDLC
) -C
$(srcdir) annotate
$(IDLTEST_IDL_FILES
) > $@.tmp
293 tests
/idltest.c
: tests
/idltest.h
295 noinst_PROGRAMS
+= tests
/test-reconnect
296 tests_test_reconnect_SOURCES
= tests
/test-reconnect.c
297 tests_test_reconnect_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
299 noinst_PROGRAMS
+= tests
/test-sha1
300 tests_test_sha1_SOURCES
= tests
/test-sha1.c
301 tests_test_sha1_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
303 noinst_PROGRAMS
+= tests
/test-strtok_r
304 tests_test_strtok_r_SOURCES
= tests
/test-strtok_r.c
306 noinst_PROGRAMS
+= tests
/test-type-props
307 tests_test_type_props_SOURCES
= tests
/test-type-props.c
309 noinst_PROGRAMS
+= tests
/test-util
310 tests_test_util_SOURCES
= tests
/test-util.c
311 tests_test_util_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
313 noinst_PROGRAMS
+= tests
/test-uuid
314 tests_test_uuid_SOURCES
= tests
/test-uuid.c
315 tests_test_uuid_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
317 noinst_PROGRAMS
+= tests
/test-vconn
318 tests_test_vconn_SOURCES
= tests
/test-vconn.c
319 tests_test_vconn_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
321 noinst_PROGRAMS
+= tests
/test-byte-order
322 tests_test_byte_order_SOURCES
= tests
/test-byte-order.c
323 tests_test_byte_order_LDADD
= lib
/libopenvswitch.a
328 tests
/test-daemon.py \
330 tests
/test-jsonrpc.py \
331 tests
/test-ovsdb.py \
332 tests
/test-reconnect.py \
333 tests
/MockXenAPI.py \
334 tests
/test-unix-socket.py \
335 tests
/test-unixctl.py \
337 EXTRA_DIST
+= $(CHECK_PYFILES
)
338 PYCOV_CLEAN_FILES
+= $(CHECK_PYFILES
:.py
=.py
,cover
) .coverage
342 tests
/testpki-cacert.pem \
343 tests
/testpki-cert.pem \
344 tests
/testpki-privkey.pem \
345 tests
/testpki-req.pem \
346 tests
/testpki-cert2.pem \
347 tests
/testpki-privkey2.pem \
348 tests
/testpki-req2.pem
349 check_DATA
+= $(TESTPKI_FILES
)
350 CLEANFILES
+= $(TESTPKI_FILES
)
352 tests
/testpki-cacert.pem
: tests
/pki
/stamp
; cp tests
/pki
/switchca
/cacert.pem
$@
353 tests
/testpki-cert.pem
: tests
/pki
/stamp
; cp tests
/pki
/test-cert.pem
$@
354 tests
/testpki-req.pem
: tests
/pki
/stamp
; cp tests
/pki
/test-req.pem
$@
355 tests
/testpki-privkey.pem
: tests
/pki
/stamp
; cp tests
/pki
/test-privkey.pem
$@
356 tests
/testpki-cert2.pem
: tests
/pki
/stamp
; cp tests
/pki
/test2-cert.pem
$@
357 tests
/testpki-req2.pem
: tests
/pki
/stamp
; cp tests
/pki
/test2-req.pem
$@
358 tests
/testpki-privkey2.pem
: tests
/pki
/stamp
; cp tests
/pki
/test2-privkey.pem
$@
360 OVS_PKI
= $(SHELL
) $(srcdir)/utilities
/ovs-pki.in
--dir=tests
/pki
--log
=tests
/ovs-pki.log
362 rm -f tests
/pki
/stamp
365 $(OVS_PKI
) req
+sign tests
/pki
/test
366 $(OVS_PKI
) req
+sign tests
/pki
/test2
368 CLEANFILES
+= tests
/ovs-pki.log
370 CLEAN_LOCAL
+= clean-pki
372 rm -f tests
/pki
/stamp