6 $(srcdir)/tests
/testsuite
9 tests
/ovsdb-macros.at \
12 tests
/check-structs.at \
28 tests
/ovsdb-types.at \
30 tests
/ovsdb-column.at \
31 tests
/ovsdb-table.at \
33 tests
/ovsdb-schema.at \
34 tests
/ovsdb-condition.at \
35 tests
/ovsdb-mutation.at \
36 tests
/ovsdb-query.at \
37 tests
/ovsdb-transaction.at \
38 tests
/ovsdb-execution.at \
39 tests
/ovsdb-trigger.at \
41 tests
/ovsdb-server.at \
42 tests
/ovsdb-monitor.at \
44 tests
/ovsdb-idl-py.at \
46 tests
/interface-reconfigure.at
47 TESTSUITE
= $(srcdir)/tests
/testsuite
48 DISTCLEANFILES
+= tests
/atconfig tests
/atlocal
$(TESTSUITE
)
50 AUTOTEST_PATH
= utilities
:vswitchd
:ovsdb
:tests
52 check-local
: tests
/atconfig tests
/atlocal
$(TESTSUITE
)
53 $(SHELL
) '$(TESTSUITE)' -C tests AUTOTEST_PATH
=$(AUTOTEST_PATH
) $(TESTSUITEFLAGS
)
58 tests
/lcov
/ovs-appctl \
59 tests
/lcov
/ovs-vsctl \
60 tests
/lcov
/ovsdb-client \
61 tests
/lcov
/ovsdb-server \
62 tests
/lcov
/ovsdb-tool \
63 tests
/lcov
/test-aes128 \
64 tests
/lcov
/test-byte-order \
65 tests
/lcov
/test-classifier \
66 tests
/lcov
/test-csum \
67 tests
/lcov
/test-dhcp-client \
68 tests
/lcov
/test-dir_name \
69 tests
/lcov
/test-flows \
70 tests
/lcov
/test-hash \
71 tests
/lcov
/test-hmap \
72 tests
/lcov
/test-json \
73 tests
/lcov
/test-jsonrpc \
74 tests
/lcov
/test-list \
75 tests
/lcov
/test-lockfile \
76 tests
/lcov
/test-ovsdb \
77 tests
/lcov
/test-reconnect \
78 tests
/lcov
/test-sha1 \
79 tests
/lcov
/test-timeval \
80 tests
/lcov
/test-type-props \
81 tests
/lcov
/test-uuid \
84 $(lcov_wrappers
): tests
/lcov-wrapper.in
85 @
test -d tests
/lcov || mkdir tests
/lcov
86 sed
-e
's,[@]abs_top_builddir[@],$(abs_top_builddir),' \
87 -e
's,[@]wrap_program[@],$@,' \
88 $(top_srcdir
)/tests
/lcov-wrapper.in
> $@.tmp
91 CLEANFILES
+= $(lcov_wrappers
)
92 EXTRA_DIST
+= tests
/lcov-wrapper.in
94 LCOV
= lcov
-b
$(abs_top_builddir
) -d
$(abs_top_builddir
) -q
95 check-lcov
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) $(lcov_wrappers
)
96 rm -fr tests
/coverage.html tests
/coverage.
info
97 $(LCOV
) -c
-i
-o
- > tests
/coverage.
info
98 $(SHELL
) '$(TESTSUITE)' -C tests CHECK_LCOV
=true DISABLE_LCOV
=false AUTOTEST_PATH
='tests/lcov:$(AUTOTEST_PATH)' $(TESTSUITEFLAGS
); \
100 echo
"Producing coverage.html..."; \
101 cd tests
&& genhtml
-q
-o coverage.html coverage.
info; \
106 valgrind_wrappers
= \
107 tests
/valgrind
/ovs-appctl \
108 tests
/valgrind
/ovs-vsctl \
109 tests
/valgrind
/ovsdb-client \
110 tests
/valgrind
/ovsdb-server \
111 tests
/valgrind
/ovsdb-tool \
112 tests
/valgrind
/test-aes128 \
113 tests
/valgrind
/test-byte-order \
114 tests
/valgrind
/test-classifier \
115 tests
/valgrind
/test-csum \
116 tests
/valgrind
/test-dhcp-client \
117 tests
/valgrind
/test-dir_name \
118 tests
/valgrind
/test-flows \
119 tests
/valgrind
/test-hash \
120 tests
/valgrind
/test-hmap \
121 tests
/valgrind
/test-json \
122 tests
/valgrind
/test-jsonrpc \
123 tests
/valgrind
/test-list \
124 tests
/valgrind
/test-lockfile \
125 tests
/valgrind
/test-ovsdb \
126 tests
/valgrind
/test-reconnect \
127 tests
/valgrind
/test-sha1 \
128 tests
/valgrind
/test-timeval \
129 tests
/valgrind
/test-type-props \
130 tests
/valgrind
/test-uuid \
131 tests
/valgrind
/test-vconn
133 $(valgrind_wrappers
): tests
/valgrind-wrapper.in
134 @
test -d tests
/valgrind || mkdir tests
/valgrind
135 sed
-e
's,[@]wrap_program[@],$@,' \
136 $(top_srcdir
)/tests
/valgrind-wrapper.in
> $@.tmp
139 CLEANFILES
+= $(valgrind_wrappers
)
140 EXTRA_DIST
+= tests
/valgrind-wrapper.in
142 VALGRIND
= valgrind
--log-file
=valgrind.
%p
--leak-check
=full \
143 --suppressions
=$(abs_top_srcdir
)/tests
/openssl.supp
--num-callers
=20
144 EXTRA_DIST
+= tests
/openssl.supp
145 check-valgrind
: all tests
/atconfig tests
/atlocal
$(TESTSUITE
) $(valgrind_wrappers
)
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
'----------------------------------------------------------------------'
153 test ! -f
'$(TESTSUITE)' ||
$(SHELL
) '$(TESTSUITE)' -C tests
--clean
156 AUTOTEST
= $(AUTOM4TE
) --language
=autotest
157 $(TESTSUITE
): package.m4
$(TESTSUITE_AT
)
158 $(AUTOTEST
) -I
'$(srcdir)' -o
$@.tmp
$@.at
161 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
162 $(srcdir)/package.m4
: $(top_srcdir
)/configure.ac
164 echo
'# Signature of the current package.' && \
165 echo
'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
166 echo
'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
167 echo
'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
168 echo
'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
169 echo
'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
170 } >'$(srcdir)/package.m4'
172 noinst_PROGRAMS
+= tests
/test-aes128
173 tests_test_aes128_SOURCES
= tests
/test-aes128.c
174 tests_test_aes128_LDADD
= lib
/libopenvswitch.a
176 noinst_PROGRAMS
+= tests
/test-classifier
177 tests_test_classifier_SOURCES
= tests
/test-classifier.c
178 tests_test_classifier_LDADD
= lib
/libopenvswitch.a
180 noinst_PROGRAMS
+= tests
/test-csum
181 tests_test_csum_SOURCES
= tests
/test-csum.c
182 tests_test_csum_LDADD
= lib
/libopenvswitch.a
184 noinst_PROGRAMS
+= tests
/test-dir_name
185 tests_test_dir_name_SOURCES
= tests
/test-dir_name.c
186 tests_test_dir_name_LDADD
= lib
/libopenvswitch.a
188 noinst_PROGRAMS
+= tests
/test-flows
189 tests_test_flows_SOURCES
= tests
/test-flows.c
190 tests_test_flows_LDADD
= lib
/libopenvswitch.a
191 dist_check_SCRIPTS
= tests
/flowgen.pl
193 noinst_PROGRAMS
+= tests
/test-hash
194 tests_test_hash_SOURCES
= tests
/test-hash.c
195 tests_test_hash_LDADD
= lib
/libopenvswitch.a
197 noinst_PROGRAMS
+= tests
/test-hmap
198 tests_test_hmap_SOURCES
= tests
/test-hmap.c
199 tests_test_hmap_LDADD
= lib
/libopenvswitch.a
201 noinst_PROGRAMS
+= tests
/test-json
202 tests_test_json_SOURCES
= tests
/test-json.c
203 tests_test_json_LDADD
= lib
/libopenvswitch.a
205 noinst_PROGRAMS
+= tests
/test-jsonrpc
206 tests_test_jsonrpc_SOURCES
= tests
/test-jsonrpc.c
207 tests_test_jsonrpc_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
209 noinst_PROGRAMS
+= tests
/test-list
210 tests_test_list_SOURCES
= tests
/test-list.c
211 tests_test_list_LDADD
= lib
/libopenvswitch.a
213 noinst_PROGRAMS
+= tests
/test-lockfile
214 tests_test_lockfile_SOURCES
= tests
/test-lockfile.c
215 tests_test_lockfile_LDADD
= lib
/libopenvswitch.a
217 noinst_PROGRAMS
+= tests
/test-ovsdb
218 tests_test_ovsdb_SOURCES
= \
222 EXTRA_DIST
+= tests
/uuidfilt.pl tests
/ovsdb-monitor-sort.pl
223 tests_test_ovsdb_LDADD
= ovsdb
/libovsdb.a lib
/libopenvswitch.a
$(SSL_LIBS
)
225 # idltest schema and IDL
226 OVSIDL_BUILT
+= tests
/idltest.c tests
/idltest.h tests
/idltest.ovsidl
227 IDLTEST_IDL_FILES
= tests
/idltest.ovsschema tests
/idltest.ann
228 EXTRA_DIST
+= $(IDLTEST_IDL_FILES
)
229 tests
/idltest.ovsidl
: $(IDLTEST_IDL_FILES
)
230 $(OVSDB_IDLC
) -C
$(srcdir) annotate
$(IDLTEST_IDL_FILES
) > $@.tmp
233 tests
/idltest.c
: tests
/idltest.h
235 noinst_PROGRAMS
+= tests
/test-reconnect
236 tests_test_reconnect_SOURCES
= tests
/test-reconnect.c
237 tests_test_reconnect_LDADD
= lib
/libopenvswitch.a
239 noinst_PROGRAMS
+= tests
/test-sha1
240 tests_test_sha1_SOURCES
= tests
/test-sha1.c
241 tests_test_sha1_LDADD
= lib
/libopenvswitch.a
243 noinst_PROGRAMS
+= tests
/test-timeval
244 tests_test_timeval_SOURCES
= tests
/test-timeval.c
245 tests_test_timeval_LDADD
= lib
/libopenvswitch.a
247 noinst_PROGRAMS
+= tests
/test-strtok_r
248 tests_test_strtok_r_SOURCES
= tests
/test-strtok_r.c
250 noinst_PROGRAMS
+= tests
/test-type-props
251 tests_test_type_props_SOURCES
= tests
/test-type-props.c
253 noinst_PROGRAMS
+= tests
/test-dhcp-client
254 tests_test_dhcp_client_SOURCES
= tests
/test-dhcp-client.c
255 tests_test_dhcp_client_LDADD
= lib
/libopenvswitch.a
257 noinst_PROGRAMS
+= tests
/test-uuid
258 tests_test_uuid_SOURCES
= tests
/test-uuid.c
259 tests_test_uuid_LDADD
= lib
/libopenvswitch.a
261 noinst_PROGRAMS
+= tests
/test-vconn
262 tests_test_vconn_SOURCES
= tests
/test-vconn.c
263 tests_test_vconn_LDADD
= lib
/libopenvswitch.a
$(SSL_LIBS
)
265 tests
/testpki-cacert.pem \
266 tests
/testpki-cert.pem \
267 tests
/testpki-cert2.pem \
268 tests
/testpki-privkey.pem \
269 tests
/testpki-privkey2.pem \
270 tests
/testpki-req.pem \
271 tests
/testpki-req2.pem
273 noinst_PROGRAMS
+= tests
/test-byte-order
274 tests_test_byte_order_SOURCES
= tests
/test-byte-order.c
275 tests_test_byte_order_LDADD
= lib
/libopenvswitch.a
279 tests
/test-daemon.py \
281 tests
/test-jsonrpc.py \
282 tests
/test-ovsdb.py \
283 tests
/test-reconnect.py