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-classifier \
65 tests/lcov/test-csum \
66 tests/lcov/test-dhcp-client \
67 tests/lcov/test-dir_name \
68 tests/lcov/test-flows \
69 tests/lcov/test-hash \
70 tests/lcov/test-hmap \
71 tests/lcov/test-json \
72 tests/lcov/test-jsonrpc \
73 tests/lcov/test-list \
74 tests/lcov/test-lockfile \
75 tests/lcov/test-ovsdb \
76 tests/lcov/test-reconnect \
77 tests/lcov/test-sha1 \
78 tests/lcov/test-timeval \
79 tests/lcov/test-type-props \
80 tests/lcov/test-uuid \
83 $(lcov_wrappers): tests/lcov-wrapper.in
84 @test -d tests/lcov || mkdir tests/lcov
85 sed -e 's,[@]abs_top_builddir[@],$(abs_top_builddir),' \
86 -e 's,[@]wrap_program[@],$@,' \
87 $(top_srcdir)/tests/lcov-wrapper.in > $@.tmp
90 CLEANFILES += $(lcov_wrappers)
91 EXTRA_DIST += tests/lcov-wrapper.in
93 LCOV = lcov -b $(abs_top_builddir) -d $(abs_top_builddir) -q
94 check-lcov: all tests/atconfig tests/atlocal $(TESTSUITE) $(lcov_wrappers)
95 rm -fr tests/coverage.html tests/coverage.info
96 $(LCOV) -c -i -o - > tests/coverage.info
97 $(SHELL) '$(TESTSUITE)' -C tests CHECK_LCOV=true DISABLE_LCOV=false AUTOTEST_PATH='tests/lcov:$(AUTOTEST_PATH)' $(TESTSUITEFLAGS); \
99 echo "Producing coverage.html..."; \
100 cd tests && genhtml -q -o coverage.html coverage.info; \
105 valgrind_wrappers = \
106 tests/valgrind/ovs-appctl \
107 tests/valgrind/ovs-vsctl \
108 tests/valgrind/ovsdb-client \
109 tests/valgrind/ovsdb-server \
110 tests/valgrind/ovsdb-tool \
111 tests/valgrind/test-aes128 \
112 tests/valgrind/test-classifier \
113 tests/valgrind/test-csum \
114 tests/valgrind/test-dhcp-client \
115 tests/valgrind/test-dir_name \
116 tests/valgrind/test-flows \
117 tests/valgrind/test-hash \
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-ovsdb \
124 tests/valgrind/test-reconnect \
125 tests/valgrind/test-sha1 \
126 tests/valgrind/test-timeval \
127 tests/valgrind/test-type-props \
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/openssl.supp --num-callers=20
142 EXTRA_DIST += tests/openssl.supp
143 check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) $(valgrind_wrappers)
144 $(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)
146 @echo '----------------------------------------------------------------------'
147 @echo 'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*'
148 @echo '----------------------------------------------------------------------'
151 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
154 AUTOTEST = $(AUTOM4TE) --language=autotest
155 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
156 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
159 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
160 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
162 echo '# Signature of the current package.' && \
163 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
164 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
165 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
166 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
167 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
168 } >'$(srcdir)/package.m4'
170 noinst_PROGRAMS += tests/test-aes128
171 tests_test_aes128_SOURCES = tests/test-aes128.c
172 tests_test_aes128_LDADD = lib/libopenvswitch.a
174 noinst_PROGRAMS += tests/test-classifier
175 tests_test_classifier_SOURCES = tests/test-classifier.c
176 tests_test_classifier_LDADD = lib/libopenvswitch.a
178 noinst_PROGRAMS += tests/test-csum
179 tests_test_csum_SOURCES = tests/test-csum.c
180 tests_test_csum_LDADD = lib/libopenvswitch.a
182 noinst_PROGRAMS += tests/test-dir_name
183 tests_test_dir_name_SOURCES = tests/test-dir_name.c
184 tests_test_dir_name_LDADD = lib/libopenvswitch.a
186 noinst_PROGRAMS += tests/test-flows
187 tests_test_flows_SOURCES = tests/test-flows.c
188 tests_test_flows_LDADD = lib/libopenvswitch.a
189 dist_check_SCRIPTS = tests/flowgen.pl
191 noinst_PROGRAMS += tests/test-hash
192 tests_test_hash_SOURCES = tests/test-hash.c
193 tests_test_hash_LDADD = lib/libopenvswitch.a
195 noinst_PROGRAMS += tests/test-hmap
196 tests_test_hmap_SOURCES = tests/test-hmap.c
197 tests_test_hmap_LDADD = lib/libopenvswitch.a
199 noinst_PROGRAMS += tests/test-json
200 tests_test_json_SOURCES = tests/test-json.c
201 tests_test_json_LDADD = lib/libopenvswitch.a
203 noinst_PROGRAMS += tests/test-jsonrpc
204 tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
205 tests_test_jsonrpc_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
207 noinst_PROGRAMS += tests/test-list
208 tests_test_list_SOURCES = tests/test-list.c
209 tests_test_list_LDADD = lib/libopenvswitch.a
211 noinst_PROGRAMS += tests/test-lockfile
212 tests_test_lockfile_SOURCES = tests/test-lockfile.c
213 tests_test_lockfile_LDADD = lib/libopenvswitch.a
215 noinst_PROGRAMS += tests/test-ovsdb
216 tests_test_ovsdb_SOURCES = \
220 EXTRA_DIST += tests/uuidfilt.pl tests/ovsdb-monitor-sort.pl
221 tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
223 # idltest schema and IDL
224 OVSIDL_BUILT += tests/idltest.c tests/idltest.h tests/idltest.ovsidl
225 IDLTEST_IDL_FILES = tests/idltest.ovsschema tests/idltest.ann
226 EXTRA_DIST += $(IDLTEST_IDL_FILES)
227 tests/idltest.ovsidl: $(IDLTEST_IDL_FILES)
228 $(OVSDB_IDLC) -C $(srcdir) annotate $(IDLTEST_IDL_FILES) > $@.tmp
231 tests/idltest.c: tests/idltest.h
233 noinst_PROGRAMS += tests/test-reconnect
234 tests_test_reconnect_SOURCES = tests/test-reconnect.c
235 tests_test_reconnect_LDADD = lib/libopenvswitch.a
237 noinst_PROGRAMS += tests/test-sha1
238 tests_test_sha1_SOURCES = tests/test-sha1.c
239 tests_test_sha1_LDADD = lib/libopenvswitch.a
241 noinst_PROGRAMS += tests/test-timeval
242 tests_test_timeval_SOURCES = tests/test-timeval.c
243 tests_test_timeval_LDADD = lib/libopenvswitch.a
245 noinst_PROGRAMS += tests/test-strtok_r
246 tests_test_strtok_r_SOURCES = tests/test-strtok_r.c
248 noinst_PROGRAMS += tests/test-type-props
249 tests_test_type_props_SOURCES = tests/test-type-props.c
251 noinst_PROGRAMS += tests/test-dhcp-client
252 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
253 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a
255 noinst_PROGRAMS += tests/test-uuid
256 tests_test_uuid_SOURCES = tests/test-uuid.c
257 tests_test_uuid_LDADD = lib/libopenvswitch.a
259 noinst_PROGRAMS += tests/test-vconn
260 tests_test_vconn_SOURCES = tests/test-vconn.c
261 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
263 tests/testpki-cacert.pem \
264 tests/testpki-cert.pem \
265 tests/testpki-cert2.pem \
266 tests/testpki-privkey.pem \
267 tests/testpki-privkey2.pem \
268 tests/testpki-req.pem \
269 tests/testpki-req2.pem
273 tests/test-daemon.py \
275 tests/test-jsonrpc.py \
276 tests/test-ovsdb.py \
277 tests/test-reconnect.py