6 $(srcdir)/tests
/testsuite
9 tests
/ovsdb-macros.at \
14 tests
/check-structs.at \
17 tests
/ofp-actions.at \
37 tests
/tunnel-push-pop.at \
40 tests
/ovs-vswitchd.at \
41 tests
/dpif-netdev.at \
42 tests
/ofproto-dpif.at \
44 tests
/vlan-splinters.at \
45 tests
/ofproto-macros.at \
49 tests
/ovsdb-types.at \
51 tests
/ovsdb-column.at \
52 tests
/ovsdb-table.at \
54 tests
/ovsdb-schema.at \
55 tests
/ovsdb-condition.at \
56 tests
/ovsdb-mutation.at \
57 tests
/ovsdb-query.at \
58 tests
/ovsdb-transaction.at \
59 tests
/ovsdb-execution.at \
60 tests
/ovsdb-trigger.at \
62 tests
/ovsdb-server.at \
63 tests
/ovsdb-monitor.at \
66 tests
/ovs-monitor-ipsec.at \
67 tests
/ovs-xapi-sync.at \
70 tests
/interface-reconfigure.at \
73 TESTSUITE
= $(srcdir)/tests
/testsuite
74 DISTCLEANFILES
+= tests
/atconfig tests
/atlocal
76 AUTOTEST_PATH
= utilities
:vswitchd
:ovsdb
:vtep
:tests
78 check-local
: tests
/atconfig tests
/atlocal
$(TESTSUITE
)
79 $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
81 # Python Coverage support.
82 # Requires coverage.py http://nedbatchelder.com/code/coverage/.
85 COVERAGE_FILE
='$(abs_srcdir)/.coverage'
86 check-pycov
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) clean-pycov
87 PYTHONDONTWRITEBYTECODE
=yes COVERAGE_FILE
=$(COVERAGE_FILE
) PYTHON
='$(COVERAGE) run -p' $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
88 @cd
$(srcdir) && $(COVERAGE
) combine
&& COVERAGE_FILE
=$(COVERAGE_FILE
) $(COVERAGE
) annotate
90 @echo
'----------------------------------------------------------------------'
91 @echo
'Annotated coverage source has the ",cover" extension.'
92 @echo
'----------------------------------------------------------------------'
94 @COVERAGE_FILE
=$(COVERAGE_FILE
) $(COVERAGE
) report
99 tests
/valgrind
/ovs-appctl \
100 tests
/valgrind
/ovs-ofctl \
101 tests
/valgrind
/ovstest \
102 tests
/valgrind
/ovs-vsctl \
103 tests
/valgrind
/ovs-vswitchd \
104 tests
/valgrind
/ovsdb-client \
105 tests
/valgrind
/ovsdb-server \
106 tests
/valgrind
/ovsdb-tool \
107 tests
/valgrind
/test-aes128 \
108 tests
/valgrind
/test-atomic \
109 tests
/valgrind
/test-bundle \
110 tests
/valgrind
/test-byte-order \
111 tests
/valgrind
/test-classifier \
112 tests
/valgrind
/test-cmap \
113 tests
/valgrind
/test-csum \
114 tests
/valgrind
/test-flows \
115 tests
/valgrind
/test-hash \
116 tests
/valgrind
/test-hindex \
117 tests
/valgrind
/test-hmap \
118 tests
/valgrind
/test-json \
119 tests
/valgrind
/test-jsonrpc \
120 tests
/valgrind
/test-list \
121 tests
/valgrind
/test-lockfile \
122 tests
/valgrind
/test-multipath \
123 tests
/valgrind
/test-odp \
124 tests
/valgrind
/test-ovsdb \
125 tests
/valgrind
/test-packets \
126 tests
/valgrind
/test-random \
127 tests
/valgrind
/test-reconnect \
128 tests
/valgrind
/test-rstp \
129 tests
/valgrind
/test-sha1 \
130 tests
/valgrind
/test-stp \
131 tests
/valgrind
/test-type-props \
132 tests
/valgrind
/test-unix-socket \
133 tests
/valgrind
/test-uuid \
134 tests
/valgrind
/test-vconn
136 $(valgrind_wrappers
): tests
/valgrind-wrapper.in
137 @
test -d tests
/valgrind || mkdir tests
/valgrind
138 $(AM_V_GEN
) sed
-e
's,[@]wrap_program[@],$@,' \
139 $(top_srcdir
)/tests
/valgrind-wrapper.in
> $@.tmp
&& \
142 CLEANFILES
+= $(valgrind_wrappers
)
143 EXTRA_DIST
+= tests
/valgrind-wrapper.in
145 VALGRIND
= valgrind
--log-file
=valgrind.
%p
--leak-check
=full \
146 --suppressions
=$(abs_top_srcdir
)/tests
/glibc.supp \
147 --suppressions
=$(abs_top_srcdir
)/tests
/openssl.supp
--num-callers
=20
148 EXTRA_DIST
+= tests
/glibc.supp tests
/openssl.supp
149 check-valgrind
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) \
150 $(valgrind_wrappers
) $(check_DATA
)
151 $(SHELL
) '$(TESTSUITE)' -C tests CHECK_VALGRIND
=true VALGRIND
='$(VALGRIND)' AUTOTEST_PATH
='tests/valgrind:$(AUTOTEST_PATH)' -d
$(TESTSUITEFLAGS
)
153 @echo
'----------------------------------------------------------------------'
154 @echo
'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*'
155 @echo
'----------------------------------------------------------------------'
160 $(AM_V_at
)srcdir='$(srcdir)' $(SHELL
) $(srcdir)/tests
/run-oftest
161 EXTRA_DIST
+= tests
/run-oftest
165 $(AM_V_at
)srcdir='$(srcdir)' $(SHELL
) $(srcdir)/tests
/run-ryu
166 EXTRA_DIST
+= tests
/run-ryu
169 test ! -f
'$(TESTSUITE)' ||
$(SHELL
) '$(TESTSUITE)' -C tests
--clean
171 AUTOTEST
= $(AUTOM4TE
) --language
=autotest
172 $(TESTSUITE
): package.m4
$(TESTSUITE_AT
)
173 $(AM_V_GEN
)$(AUTOTEST
) -I
'$(srcdir)' -o
$@.tmp
$@.at
174 $(AM_V_at
)mv
$@.tmp
$@
176 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
177 $(srcdir)/package.m4
: $(top_srcdir
)/configure.ac
179 echo
'# Signature of the current package.' && \
180 echo
'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
181 echo
'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
182 echo
'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
183 echo
'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
184 echo
'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
185 } >'$(srcdir)/package.m4'
187 noinst_PROGRAMS
+= tests
/test-ovsdb
188 tests_test_ovsdb_SOURCES
= \
192 EXTRA_DIST
+= tests
/uuidfilt.pl tests
/ovsdb-monitor-sort.pl
193 tests_test_ovsdb_LDADD
= ovsdb
/libovsdb.la lib
/libopenvswitch.la
195 # idltest schema and IDL
196 OVSIDL_BUILT
+= tests
/idltest.c tests
/idltest.h tests
/idltest.ovsidl
197 IDLTEST_IDL_FILES
= tests
/idltest.ovsschema tests
/idltest.ann
198 EXTRA_DIST
+= $(IDLTEST_IDL_FILES
)
199 tests
/idltest.ovsidl
: $(IDLTEST_IDL_FILES
)
200 $(AM_V_GEN
)$(OVSDB_IDLC
) -C
$(srcdir) annotate
$(IDLTEST_IDL_FILES
) > $@.tmp
&& \
203 tests
/idltest.c
: tests
/idltest.h
206 noinst_PROGRAMS
+= tests
/test-dpdkr
207 tests_test_dpdkr_SOURCES
= \
208 tests
/dpdk
/ring_client.c
209 tests_test_dpdkr_LDADD
= lib
/libopenvswitch.la
$(LIBS
)
212 noinst_PROGRAMS
+= tests
/ovstest
213 tests_ovstest_SOURCES
= \
216 tests
/test-aes128.c \
217 tests
/test-atomic.c \
218 tests
/test-bundle.c \
219 tests
/test-byte-order.c \
220 tests
/test-classifier.c \
226 tests
/test-hindex.c \
229 tests
/test-jsonrpc.c \
231 tests
/test-lockfile.c \
232 tests
/test-multipath.c \
233 tests
/test-netflow.c \
235 tests
/test-packets.c \
236 tests
/test-random.c \
237 tests
/test-reconnect.c \
244 tests
/test-bitmap.c \
248 tests_ovstest_SOURCES
+= \
249 tests
/test-unix-socket.c
252 tests_ovstest_LDADD
= lib
/libopenvswitch.la
253 dist_check_SCRIPTS
= tests
/flowgen.pl
255 noinst_PROGRAMS
+= tests
/test-strtok_r
256 tests_test_strtok_r_SOURCES
= tests
/test-strtok_r.c
258 noinst_PROGRAMS
+= tests
/test-type-props
259 tests_test_type_props_SOURCES
= tests
/test-type-props.c
264 tests
/test-daemon.py \
266 tests
/test-jsonrpc.py \
267 tests
/test-ovsdb.py \
268 tests
/test-reconnect.py \
269 tests
/MockXenAPI.py \
270 tests
/test-unix-socket.py \
271 tests
/test-unixctl.py \
273 EXTRA_DIST
+= $(CHECK_PYFILES
)
274 PYCOV_CLEAN_FILES
+= $(CHECK_PYFILES
:.py
=.py
,cover
) .coverage
278 tests
/testpki-cacert.pem \
279 tests
/testpki-cert.pem \
280 tests
/testpki-privkey.pem \
281 tests
/testpki-req.pem \
282 tests
/testpki-cert2.pem \
283 tests
/testpki-privkey2.pem \
284 tests
/testpki-req2.pem
285 check_DATA
+= $(TESTPKI_FILES
)
286 CLEANFILES
+= $(TESTPKI_FILES
)
288 tests
/testpki-cacert.pem
: tests
/pki
/stamp
289 $(AM_V_GEN
)cp tests
/pki
/switchca
/cacert.pem
$@
290 tests
/testpki-cert.pem
: tests
/pki
/stamp
291 $(AM_V_GEN
)cp tests
/pki
/test-cert.pem
$@
292 tests
/testpki-req.pem
: tests
/pki
/stamp
293 $(AM_V_GEN
)cp tests
/pki
/test-req.pem
$@
294 tests
/testpki-privkey.pem
: tests
/pki
/stamp
295 $(AM_V_GEN
)cp tests
/pki
/test-privkey.pem
$@
296 tests
/testpki-cert2.pem
: tests
/pki
/stamp
297 $(AM_V_GEN
)cp tests
/pki
/test2-cert.pem
$@
298 tests
/testpki-req2.pem
: tests
/pki
/stamp
299 $(AM_V_GEN
)cp tests
/pki
/test2-req.pem
$@
300 tests
/testpki-privkey2.pem
: tests
/pki
/stamp
301 $(AM_V_GEN
)cp tests
/pki
/test2-privkey.pem
$@
303 OVS_PKI
= $(SHELL
) $(srcdir)/utilities
/ovs-pki.in
--dir=tests
/pki
--log
=tests
/ovs-pki.log
305 $(AM_V_at
)rm -f tests
/pki
/stamp
306 $(AM_V_at
)rm -rf tests
/pki
307 $(AM_V_GEN
)$(OVS_PKI
) init
&& \
308 $(OVS_PKI
) req
+sign tests
/pki
/test && \
309 $(OVS_PKI
) req
+sign tests
/pki
/test2
&& \
311 CLEANFILES
+= tests
/ovs-pki.log
313 CLEAN_LOCAL
+= clean-pki
315 rm -f tests
/pki
/stamp