6 $(srcdir)/tests
/testsuite
9 tests
/ovsdb-macros.at \
14 tests
/check-structs.at \
17 tests
/ofp-actions.at \
38 tests
/tunnel-push-pop.at \
41 tests
/ovs-vswitchd.at \
42 tests
/dpif-netdev.at \
43 tests
/ofproto-dpif.at \
45 tests
/vlan-splinters.at \
46 tests
/ofproto-macros.at \
50 tests
/ovsdb-types.at \
52 tests
/ovsdb-column.at \
53 tests
/ovsdb-table.at \
55 tests
/ovsdb-schema.at \
56 tests
/ovsdb-condition.at \
57 tests
/ovsdb-mutation.at \
58 tests
/ovsdb-query.at \
59 tests
/ovsdb-transaction.at \
60 tests
/ovsdb-execution.at \
61 tests
/ovsdb-trigger.at \
63 tests
/ovsdb-server.at \
64 tests
/ovsdb-monitor.at \
67 tests
/ovs-monitor-ipsec.at \
68 tests
/ovs-xapi-sync.at \
71 tests
/interface-reconfigure.at \
74 TESTSUITE
= $(srcdir)/tests
/testsuite
75 DISTCLEANFILES
+= tests
/atconfig tests
/atlocal
77 AUTOTEST_PATH
= utilities
:vswitchd
:ovsdb
:vtep
:tests
79 check-local
: tests
/atconfig tests
/atlocal
$(TESTSUITE
)
80 $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
82 # Python Coverage support.
83 # Requires coverage.py http://nedbatchelder.com/code/coverage/.
86 COVERAGE_FILE
='$(abs_srcdir)/.coverage'
87 check-pycov
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) clean-pycov
88 PYTHONDONTWRITEBYTECODE
=yes COVERAGE_FILE
=$(COVERAGE_FILE
) PYTHON
='$(COVERAGE) run -p' $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
89 @cd
$(srcdir) && $(COVERAGE
) combine
&& COVERAGE_FILE
=$(COVERAGE_FILE
) $(COVERAGE
) annotate
91 @echo
'----------------------------------------------------------------------'
92 @echo
'Annotated coverage source has the ",cover" extension.'
93 @echo
'----------------------------------------------------------------------'
95 @COVERAGE_FILE
=$(COVERAGE_FILE
) $(COVERAGE
) report
100 tests
/valgrind
/ovs-appctl \
101 tests
/valgrind
/ovs-ofctl \
102 tests
/valgrind
/ovstest \
103 tests
/valgrind
/ovs-vsctl \
104 tests
/valgrind
/ovs-vswitchd \
105 tests
/valgrind
/ovsdb-client \
106 tests
/valgrind
/ovsdb-server \
107 tests
/valgrind
/ovsdb-tool \
108 tests
/valgrind
/test-aes128 \
109 tests
/valgrind
/test-atomic \
110 tests
/valgrind
/test-bundle \
111 tests
/valgrind
/test-byte-order \
112 tests
/valgrind
/test-classifier \
113 tests
/valgrind
/test-cmap \
114 tests
/valgrind
/test-csum \
115 tests
/valgrind
/test-flows \
116 tests
/valgrind
/test-hash \
117 tests
/valgrind
/test-hindex \
118 tests
/valgrind
/test-hmap \
119 tests
/valgrind
/test-json \
120 tests
/valgrind
/test-jsonrpc \
121 tests
/valgrind
/test-list \
122 tests
/valgrind
/test-lockfile \
123 tests
/valgrind
/test-multipath \
124 tests
/valgrind
/test-odp \
125 tests
/valgrind
/test-ovsdb \
126 tests
/valgrind
/test-packets \
127 tests
/valgrind
/test-random \
128 tests
/valgrind
/test-reconnect \
129 tests
/valgrind
/test-rstp \
130 tests
/valgrind
/test-sha1 \
131 tests
/valgrind
/test-stp \
132 tests
/valgrind
/test-type-props \
133 tests
/valgrind
/test-unix-socket \
134 tests
/valgrind
/test-uuid \
135 tests
/valgrind
/test-vconn
137 $(valgrind_wrappers
): tests
/valgrind-wrapper.in
138 @
test -d tests
/valgrind || mkdir tests
/valgrind
139 $(AM_V_GEN
) sed
-e
's,[@]wrap_program[@],$@,' \
140 $(top_srcdir
)/tests
/valgrind-wrapper.in
> $@.tmp
&& \
143 CLEANFILES
+= $(valgrind_wrappers
)
144 EXTRA_DIST
+= tests
/valgrind-wrapper.in
146 VALGRIND
= valgrind
--log-file
=valgrind.
%p
--leak-check
=full \
147 --suppressions
=$(abs_top_srcdir
)/tests
/glibc.supp \
148 --suppressions
=$(abs_top_srcdir
)/tests
/openssl.supp
--num-callers
=20
149 EXTRA_DIST
+= tests
/glibc.supp tests
/openssl.supp
150 check-valgrind
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) \
151 $(valgrind_wrappers
) $(check_DATA
)
152 $(SHELL
) '$(TESTSUITE)' -C tests CHECK_VALGRIND
=true VALGRIND
='$(VALGRIND)' AUTOTEST_PATH
='tests/valgrind:$(AUTOTEST_PATH)' -d
$(TESTSUITEFLAGS
)
154 @echo
'----------------------------------------------------------------------'
155 @echo
'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*'
156 @echo
'----------------------------------------------------------------------'
161 $(AM_V_at
)srcdir='$(srcdir)' $(SHELL
) $(srcdir)/tests
/run-oftest
162 EXTRA_DIST
+= tests
/run-oftest
166 $(AM_V_at
)srcdir='$(srcdir)' $(SHELL
) $(srcdir)/tests
/run-ryu
167 EXTRA_DIST
+= tests
/run-ryu
170 test ! -f
'$(TESTSUITE)' ||
$(SHELL
) '$(TESTSUITE)' -C tests
--clean
172 AUTOTEST
= $(AUTOM4TE
) --language
=autotest
173 $(TESTSUITE
): package.m4
$(TESTSUITE_AT
)
174 $(AM_V_GEN
)$(AUTOTEST
) -I
'$(srcdir)' -o
$@.tmp
$@.at
175 $(AM_V_at
)mv
$@.tmp
$@
177 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
178 $(srcdir)/package.m4
: $(top_srcdir
)/configure.ac
180 echo
'# Signature of the current package.' && \
181 echo
'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
182 echo
'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
183 echo
'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
184 echo
'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
185 echo
'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
186 } >'$(srcdir)/package.m4'
188 noinst_PROGRAMS
+= tests
/test-ovsdb
189 tests_test_ovsdb_SOURCES
= \
193 EXTRA_DIST
+= tests
/uuidfilt.pl tests
/ovsdb-monitor-sort.pl
194 tests_test_ovsdb_LDADD
= ovsdb
/libovsdb.la lib
/libopenvswitch.la
196 noinst_PROGRAMS
+= tests
/test-lib
197 tests_test_lib_SOURCES
= \
199 tests_test_lib_LDADD
= lib
/libopenvswitch.la
201 # idltest schema and IDL
202 OVSIDL_BUILT
+= tests
/idltest.c tests
/idltest.h tests
/idltest.ovsidl
203 IDLTEST_IDL_FILES
= tests
/idltest.ovsschema tests
/idltest.ann
204 EXTRA_DIST
+= $(IDLTEST_IDL_FILES
)
205 tests
/idltest.ovsidl
: $(IDLTEST_IDL_FILES
)
206 $(AM_V_GEN
)$(OVSDB_IDLC
) -C
$(srcdir) annotate
$(IDLTEST_IDL_FILES
) > $@.tmp
&& \
209 tests
/idltest.c
: tests
/idltest.h
212 noinst_PROGRAMS
+= tests
/test-dpdkr
213 tests_test_dpdkr_SOURCES
= \
214 tests
/dpdk
/ring_client.c
215 tests_test_dpdkr_LDADD
= lib
/libopenvswitch.la
$(LIBS
)
218 noinst_PROGRAMS
+= tests
/ovstest
219 tests_ovstest_SOURCES
= \
222 tests
/test-aes128.c \
223 tests
/test-atomic.c \
224 tests
/test-bundle.c \
225 tests
/test-byte-order.c \
226 tests
/test-classifier.c \
232 tests
/test-hindex.c \
235 tests
/test-jsonrpc.c \
237 tests
/test-lockfile.c \
238 tests
/test-multipath.c \
239 tests
/test-netflow.c \
241 tests
/test-packets.c \
242 tests
/test-random.c \
243 tests
/test-reconnect.c \
250 tests
/test-bitmap.c \
254 tests_ovstest_SOURCES
+= \
255 tests
/test-unix-socket.c
258 tests_ovstest_LDADD
= lib
/libopenvswitch.la
259 dist_check_SCRIPTS
= tests
/flowgen.pl
261 noinst_PROGRAMS
+= tests
/test-strtok_r
262 tests_test_strtok_r_SOURCES
= tests
/test-strtok_r.c
264 noinst_PROGRAMS
+= tests
/test-type-props
265 tests_test_type_props_SOURCES
= tests
/test-type-props.c
270 tests
/test-daemon.py \
272 tests
/test-jsonrpc.py \
273 tests
/test-ovsdb.py \
274 tests
/test-reconnect.py \
275 tests
/MockXenAPI.py \
276 tests
/test-unix-socket.py \
277 tests
/test-unixctl.py \
279 EXTRA_DIST
+= $(CHECK_PYFILES
)
280 PYCOV_CLEAN_FILES
+= $(CHECK_PYFILES
:.py
=.py
,cover
) .coverage
284 tests
/testpki-cacert.pem \
285 tests
/testpki-cert.pem \
286 tests
/testpki-privkey.pem \
287 tests
/testpki-req.pem \
288 tests
/testpki-cert2.pem \
289 tests
/testpki-privkey2.pem \
290 tests
/testpki-req2.pem
291 check_DATA
+= $(TESTPKI_FILES
)
292 CLEANFILES
+= $(TESTPKI_FILES
)
294 tests
/testpki-cacert.pem
: tests
/pki
/stamp
295 $(AM_V_GEN
)cp tests
/pki
/switchca
/cacert.pem
$@
296 tests
/testpki-cert.pem
: tests
/pki
/stamp
297 $(AM_V_GEN
)cp tests
/pki
/test-cert.pem
$@
298 tests
/testpki-req.pem
: tests
/pki
/stamp
299 $(AM_V_GEN
)cp tests
/pki
/test-req.pem
$@
300 tests
/testpki-privkey.pem
: tests
/pki
/stamp
301 $(AM_V_GEN
)cp tests
/pki
/test-privkey.pem
$@
302 tests
/testpki-cert2.pem
: tests
/pki
/stamp
303 $(AM_V_GEN
)cp tests
/pki
/test2-cert.pem
$@
304 tests
/testpki-req2.pem
: tests
/pki
/stamp
305 $(AM_V_GEN
)cp tests
/pki
/test2-req.pem
$@
306 tests
/testpki-privkey2.pem
: tests
/pki
/stamp
307 $(AM_V_GEN
)cp tests
/pki
/test2-privkey.pem
$@
309 OVS_PKI
= $(SHELL
) $(srcdir)/utilities
/ovs-pki.in
--dir=tests
/pki
--log
=tests
/ovs-pki.log
311 $(AM_V_at
)rm -f tests
/pki
/stamp
312 $(AM_V_at
)rm -rf tests
/pki
313 $(AM_V_GEN
)$(OVS_PKI
) init
&& \
314 $(OVS_PKI
) req
+sign tests
/pki
/test && \
315 $(OVS_PKI
) req
+sign tests
/pki
/test2
&& \
317 CLEANFILES
+= tests
/ovs-pki.log
319 CLEAN_LOCAL
+= clean-pki
321 rm -f tests
/pki
/stamp