2009-07-27 16:40:11 -07:00
|
|
|
|
EXTRA_DIST += \
|
|
|
|
|
|
$(TESTSUITE_AT) \
|
|
|
|
|
|
$(TESTSUITE) \
|
|
|
|
|
|
tests/atlocal.in \
|
|
|
|
|
|
$(srcdir)/package.m4 \
|
|
|
|
|
|
$(srcdir)/tests/testsuite
|
|
|
|
|
|
TESTSUITE_AT = \
|
|
|
|
|
|
tests/testsuite.at \
|
2010-01-15 12:12:36 -08:00
|
|
|
|
tests/ovsdb-macros.at \
|
2009-07-27 16:40:11 -07:00
|
|
|
|
tests/library.at \
|
2012-01-24 15:07:41 -08:00
|
|
|
|
tests/heap.at \
|
2011-06-10 17:45:45 -07:00
|
|
|
|
tests/bundle.at \
|
2010-05-26 12:48:32 -07:00
|
|
|
|
tests/classifier.at \
|
2010-01-25 10:49:31 -08:00
|
|
|
|
tests/check-structs.at \
|
2010-01-15 12:13:46 -08:00
|
|
|
|
tests/daemon.at \
|
2010-08-25 10:26:40 -07:00
|
|
|
|
tests/daemon-py.at \
|
2012-07-03 22:17:14 -07:00
|
|
|
|
tests/ofp-actions.at \
|
2011-01-12 13:57:53 -08:00
|
|
|
|
tests/ofp-print.at \
|
2012-11-09 10:00:22 -08:00
|
|
|
|
tests/ofp-util.at \
|
2012-03-26 13:46:35 -07:00
|
|
|
|
tests/ofp-errors.at \
|
2010-10-01 13:08:14 -07:00
|
|
|
|
tests/ovs-ofctl.at \
|
2011-08-04 16:20:34 -07:00
|
|
|
|
tests/odp.at \
|
2010-12-17 14:38:50 -08:00
|
|
|
|
tests/multipath.at \
|
2013-07-27 09:58:06 +00:00
|
|
|
|
tests/bfd.at \
|
2011-11-28 18:08:49 -08:00
|
|
|
|
tests/lacp.at \
|
2011-09-12 16:19:57 -07:00
|
|
|
|
tests/learn.at \
|
2010-01-08 09:41:29 -08:00
|
|
|
|
tests/vconn.at \
|
2010-11-09 14:38:28 -08:00
|
|
|
|
tests/file_name.at \
|
2009-09-24 15:02:36 -07:00
|
|
|
|
tests/aes128.at \
|
2012-02-16 19:15:01 -08:00
|
|
|
|
tests/unixctl-py.at \
|
2009-09-24 15:02:36 -07:00
|
|
|
|
tests/uuid.at \
|
2009-11-04 14:55:53 -08:00
|
|
|
|
tests/json.at \
|
2009-10-26 15:04:05 -07:00
|
|
|
|
tests/jsonrpc.at \
|
2010-08-25 10:26:40 -07:00
|
|
|
|
tests/jsonrpc-py.at \
|
2009-10-14 13:14:43 -07:00
|
|
|
|
tests/timeval.at \
|
2013-01-08 17:33:04 -08:00
|
|
|
|
tests/tunnel.at \
|
2009-10-14 16:52:04 -07:00
|
|
|
|
tests/lockfile.at \
|
2009-11-10 15:30:49 -08:00
|
|
|
|
tests/reconnect.at \
|
2013-04-11 14:08:01 -07:00
|
|
|
|
tests/ovs-vswitchd.at \
|
2011-08-09 09:24:18 -07:00
|
|
|
|
tests/ofproto-dpif.at \
|
2013-06-25 14:00:58 -07:00
|
|
|
|
tests/vlan-splinters.at \
|
2011-02-22 13:43:14 -08:00
|
|
|
|
tests/ofproto-macros.at \
|
2010-12-02 14:57:53 -08:00
|
|
|
|
tests/ofproto.at \
|
2009-11-04 15:11:44 -08:00
|
|
|
|
tests/ovsdb.at \
|
2009-11-13 13:23:35 -08:00
|
|
|
|
tests/ovsdb-log.at \
|
2009-11-04 15:11:44 -08:00
|
|
|
|
tests/ovsdb-types.at \
|
|
|
|
|
|
tests/ovsdb-data.at \
|
|
|
|
|
|
tests/ovsdb-column.at \
|
|
|
|
|
|
tests/ovsdb-table.at \
|
|
|
|
|
|
tests/ovsdb-row.at \
|
2010-02-08 14:09:41 -08:00
|
|
|
|
tests/ovsdb-schema.at \
|
2009-11-04 15:11:44 -08:00
|
|
|
|
tests/ovsdb-condition.at \
|
2009-12-16 10:49:31 -08:00
|
|
|
|
tests/ovsdb-mutation.at \
|
2009-11-04 15:11:44 -08:00
|
|
|
|
tests/ovsdb-query.at \
|
|
|
|
|
|
tests/ovsdb-transaction.at \
|
|
|
|
|
|
tests/ovsdb-execution.at \
|
|
|
|
|
|
tests/ovsdb-trigger.at \
|
2010-02-12 11:26:54 -08:00
|
|
|
|
tests/ovsdb-tool.at \
|
2009-11-16 15:13:00 -08:00
|
|
|
|
tests/ovsdb-server.at \
|
2009-11-16 10:38:14 -08:00
|
|
|
|
tests/ovsdb-monitor.at \
|
2009-12-02 11:26:15 -08:00
|
|
|
|
tests/ovsdb-idl.at \
|
2010-02-22 16:28:30 -08:00
|
|
|
|
tests/ovs-vsctl.at \
|
2011-09-23 14:21:19 -07:00
|
|
|
|
tests/ovs-monitor-ipsec.at \
|
2011-09-26 13:07:29 -07:00
|
|
|
|
tests/ovs-xapi-sync.at \
|
2011-09-20 15:08:05 -07:00
|
|
|
|
tests/stp.at \
|
2011-09-21 15:43:27 -07:00
|
|
|
|
tests/interface-reconfigure.at \
|
|
|
|
|
|
tests/vlog.at
|
2009-07-27 16:40:11 -07:00
|
|
|
|
TESTSUITE = $(srcdir)/tests/testsuite
|
2010-11-30 10:49:51 -08:00
|
|
|
|
DISTCLEANFILES += tests/atconfig tests/atlocal
|
2009-07-27 16:40:11 -07:00
|
|
|
|
|
2010-02-01 14:04:25 -08:00
|
|
|
|
AUTOTEST_PATH = utilities:vswitchd:ovsdb:tests
|
|
|
|
|
|
|
2009-07-27 16:40:11 -07:00
|
|
|
|
check-local: tests/atconfig tests/atlocal $(TESTSUITE)
|
2010-02-01 14:04:25 -08:00
|
|
|
|
$(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS)
|
|
|
|
|
|
|
2012-02-28 16:28:08 -08:00
|
|
|
|
# Python Coverage support.
|
|
|
|
|
|
# Requires coverage.py http://nedbatchelder.com/code/coverage/.
|
|
|
|
|
|
|
|
|
|
|
|
COVERAGE = coverage
|
|
|
|
|
|
COVERAGE_FILE='$(abs_srcdir)/.coverage'
|
|
|
|
|
|
check-pycov: all tests/atconfig tests/atlocal $(TESTSUITE) clean-pycov
|
2012-05-22 10:17:00 -07:00
|
|
|
|
PYTHONDONTWRITEBYTECODE=yes COVERAGE_FILE=$(COVERAGE_FILE) PYTHON='$(COVERAGE) run -p' $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) $(TESTSUITEFLAGS)
|
2012-02-28 16:28:08 -08:00
|
|
|
|
@cd $(srcdir) && $(COVERAGE) combine && COVERAGE_FILE=$(COVERAGE_FILE) $(COVERAGE) annotate
|
|
|
|
|
|
@echo
|
|
|
|
|
|
@echo '----------------------------------------------------------------------'
|
|
|
|
|
|
@echo 'Annotated coverage source has the ",cover" extension.'
|
|
|
|
|
|
@echo '----------------------------------------------------------------------'
|
|
|
|
|
|
@echo
|
|
|
|
|
|
@COVERAGE_FILE=$(COVERAGE_FILE) $(COVERAGE) report
|
|
|
|
|
|
|
2010-02-01 14:26:07 -08:00
|
|
|
|
# valgrind support
|
|
|
|
|
|
|
|
|
|
|
|
valgrind_wrappers = \
|
|
|
|
|
|
tests/valgrind/ovs-appctl \
|
2012-01-26 14:51:19 -08:00
|
|
|
|
tests/valgrind/ovs-ofctl \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/ovs-vsctl \
|
2011-11-23 10:26:02 -08:00
|
|
|
|
tests/valgrind/ovs-vswitchd \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/ovsdb-client \
|
|
|
|
|
|
tests/valgrind/ovsdb-server \
|
|
|
|
|
|
tests/valgrind/ovsdb-tool \
|
|
|
|
|
|
tests/valgrind/test-aes128 \
|
2013-06-28 15:54:40 -07:00
|
|
|
|
tests/valgrind/test-atomic \
|
2011-06-10 17:45:45 -07:00
|
|
|
|
tests/valgrind/test-bundle \
|
2010-10-28 17:13:18 -07:00
|
|
|
|
tests/valgrind/test-byte-order \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-classifier \
|
|
|
|
|
|
tests/valgrind/test-csum \
|
2010-11-09 14:38:28 -08:00
|
|
|
|
tests/valgrind/test-file_name \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-flows \
|
|
|
|
|
|
tests/valgrind/test-hash \
|
2012-01-24 15:07:41 -08:00
|
|
|
|
tests/valgrind/test-heap \
|
2013-06-18 10:27:34 -07:00
|
|
|
|
tests/valgrind/test-hindex \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-hmap \
|
|
|
|
|
|
tests/valgrind/test-json \
|
|
|
|
|
|
tests/valgrind/test-jsonrpc \
|
|
|
|
|
|
tests/valgrind/test-list \
|
|
|
|
|
|
tests/valgrind/test-lockfile \
|
2010-12-17 14:38:50 -08:00
|
|
|
|
tests/valgrind/test-multipath \
|
2011-08-04 16:20:34 -07:00
|
|
|
|
tests/valgrind/test-odp \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-ovsdb \
|
2011-01-15 11:12:12 -08:00
|
|
|
|
tests/valgrind/test-packets \
|
2010-11-15 09:34:18 -08:00
|
|
|
|
tests/valgrind/test-random \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-reconnect \
|
|
|
|
|
|
tests/valgrind/test-sha1 \
|
2011-09-20 15:08:05 -07:00
|
|
|
|
tests/valgrind/test-stp \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-timeval \
|
|
|
|
|
|
tests/valgrind/test-type-props \
|
2010-11-09 15:58:36 -08:00
|
|
|
|
tests/valgrind/test-unix-socket \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
tests/valgrind/test-uuid \
|
2010-10-28 17:13:18 -07:00
|
|
|
|
tests/valgrind/test-vconn
|
2010-02-01 14:26:07 -08:00
|
|
|
|
|
|
|
|
|
|
$(valgrind_wrappers): tests/valgrind-wrapper.in
|
|
|
|
|
|
@test -d tests/valgrind || mkdir tests/valgrind
|
|
|
|
|
|
sed -e 's,[@]wrap_program[@],$@,' \
|
|
|
|
|
|
$(top_srcdir)/tests/valgrind-wrapper.in > $@.tmp
|
|
|
|
|
|
chmod +x $@.tmp
|
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
CLEANFILES += $(valgrind_wrappers)
|
|
|
|
|
|
EXTRA_DIST += tests/valgrind-wrapper.in
|
|
|
|
|
|
|
|
|
|
|
|
VALGRIND = valgrind --log-file=valgrind.%p --leak-check=full \
|
2012-03-27 17:20:48 -07:00
|
|
|
|
--suppressions=$(abs_top_srcdir)/tests/glibc.supp \
|
2010-02-01 14:26:07 -08:00
|
|
|
|
--suppressions=$(abs_top_srcdir)/tests/openssl.supp --num-callers=20
|
2012-03-27 17:20:48 -07:00
|
|
|
|
EXTRA_DIST += tests/glibc.supp tests/openssl.supp
|
2012-06-13 13:26:27 -07:00
|
|
|
|
check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) \
|
|
|
|
|
|
$(valgrind_wrappers) $(check_DATA)
|
2010-02-01 14:26:07 -08:00
|
|
|
|
$(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)
|
|
|
|
|
|
@echo
|
|
|
|
|
|
@echo '----------------------------------------------------------------------'
|
|
|
|
|
|
@echo 'Valgrind output can be found in tests/testsuite.dir/*/valgrind.*'
|
|
|
|
|
|
@echo '----------------------------------------------------------------------'
|
|
|
|
|
|
|
2013-05-28 11:44:21 -07:00
|
|
|
|
# OFTest support.
|
|
|
|
|
|
|
|
|
|
|
|
check-oftest: all
|
|
|
|
|
|
srcdir='$(srcdir)' $(SHELL) $(srcdir)/tests/run-oftest
|
|
|
|
|
|
EXTRA_DIST += tests/run-oftest
|
|
|
|
|
|
|
2009-07-27 16:40:11 -07:00
|
|
|
|
clean-local:
|
|
|
|
|
|
test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
|
|
|
|
|
|
|
|
|
|
|
|
AUTOTEST = $(AUTOM4TE) --language=autotest
|
|
|
|
|
|
$(TESTSUITE): package.m4 $(TESTSUITE_AT)
|
|
|
|
|
|
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
|
|
|
|
|
|
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
|
|
|
|
|
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
|
|
|
|
|
:;{ \
|
|
|
|
|
|
echo '# Signature of the current package.' && \
|
2010-01-14 11:32:00 -08:00
|
|
|
|
echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
|
|
|
|
|
|
echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
|
|
|
|
|
|
echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
|
|
|
|
|
|
echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
|
|
|
|
|
|
echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
|
2009-07-27 16:40:11 -07:00
|
|
|
|
} >'$(srcdir)/package.m4'
|
|
|
|
|
|
|
2009-09-24 15:02:36 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-aes128
|
|
|
|
|
|
tests_test_aes128_SOURCES = tests/test-aes128.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_aes128_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-09-24 15:02:36 -07:00
|
|
|
|
|
2013-06-28 15:54:40 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-atomic
|
|
|
|
|
|
tests_test_atomic_SOURCES = tests/test-atomic.c
|
|
|
|
|
|
tests_test_atomic_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
|
|
|
|
|
|
2011-06-10 17:45:45 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-bundle
|
|
|
|
|
|
tests_test_bundle_SOURCES = tests/test-bundle.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_bundle_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2011-06-10 17:45:45 -07:00
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-classifier
|
|
|
|
|
|
tests_test_classifier_SOURCES = tests/test-classifier.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_classifier_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
2009-06-09 17:10:18 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-csum
|
|
|
|
|
|
tests_test_csum_SOURCES = tests/test-csum.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_csum_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-06-09 17:10:18 -07:00
|
|
|
|
|
2010-11-09 14:38:28 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-file_name
|
|
|
|
|
|
tests_test_file_name_SOURCES = tests/test-file_name.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_file_name_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-10-19 14:04:14 -07:00
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-flows
|
|
|
|
|
|
tests_test_flows_SOURCES = tests/test-flows.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_flows_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-07-27 16:40:11 -07:00
|
|
|
|
dist_check_SCRIPTS = tests/flowgen.pl
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
|
|
|
noinst_PROGRAMS += tests/test-hash
|
|
|
|
|
|
tests_test_hash_SOURCES = tests/test-hash.c
|
|
|
|
|
|
tests_test_hash_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
|
2012-01-24 15:07:41 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-heap
|
|
|
|
|
|
tests_test_heap_SOURCES = tests/test-heap.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_heap_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2012-01-24 15:07:41 -08:00
|
|
|
|
|
2013-06-18 10:27:34 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-hindex
|
|
|
|
|
|
tests_test_hindex_SOURCES = tests/test-hindex.c
|
|
|
|
|
|
tests_test_hindex_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
|
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-hmap
|
|
|
|
|
|
tests_test_hmap_SOURCES = tests/test-hmap.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_hmap_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
2009-11-04 14:55:53 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-json
|
|
|
|
|
|
tests_test_json_SOURCES = tests/test-json.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_json_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-11-04 14:55:53 -08:00
|
|
|
|
|
2009-10-26 15:04:05 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-jsonrpc
|
|
|
|
|
|
tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
|
2009-12-21 13:13:48 -08:00
|
|
|
|
tests_test_jsonrpc_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-10-26 15:04:05 -07:00
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-list
|
|
|
|
|
|
tests_test_list_SOURCES = tests/test-list.c
|
2012-11-06 13:14:55 -08:00
|
|
|
|
tests_test_list_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
2009-10-14 16:52:04 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-lockfile
|
|
|
|
|
|
tests_test_lockfile_SOURCES = tests/test-lockfile.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_lockfile_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-10-14 16:52:04 -07:00
|
|
|
|
|
2010-12-17 14:38:50 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-multipath
|
|
|
|
|
|
tests_test_multipath_SOURCES = tests/test-multipath.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_multipath_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2010-12-17 14:38:50 -08:00
|
|
|
|
|
2011-01-15 11:12:12 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-packets
|
|
|
|
|
|
tests_test_packets_SOURCES = tests/test-packets.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_packets_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2011-01-15 11:12:12 -08:00
|
|
|
|
|
2010-11-15 09:34:18 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-random
|
|
|
|
|
|
tests_test_random_SOURCES = tests/test-random.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_random_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2010-11-15 09:34:18 -08:00
|
|
|
|
|
2011-09-20 15:08:05 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-stp
|
|
|
|
|
|
tests_test_stp_SOURCES = tests/test-stp.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_stp_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2011-09-20 15:08:05 -07:00
|
|
|
|
|
2013-03-27 23:02:21 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-sflow
|
|
|
|
|
|
tests_test_sflow_SOURCES = tests/test-sflow.c
|
|
|
|
|
|
tests_test_sflow_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
|
|
|
|
|
|
2011-12-19 14:46:16 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-netflow
|
|
|
|
|
|
tests_test_netflow_SOURCES = tests/test-netflow.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_netflow_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2011-12-19 14:46:16 -08:00
|
|
|
|
|
2010-11-09 15:58:36 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-unix-socket
|
|
|
|
|
|
tests_test_unix_socket_SOURCES = tests/test-unix-socket.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_unix_socket_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2010-11-09 15:58:36 -08:00
|
|
|
|
|
2011-08-04 16:20:34 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-odp
|
|
|
|
|
|
tests_test_odp_SOURCES = tests/test-odp.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_odp_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2011-08-04 16:20:34 -07:00
|
|
|
|
|
2009-11-04 15:11:44 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-ovsdb
|
2010-01-07 15:52:58 -08:00
|
|
|
|
tests_test_ovsdb_SOURCES = \
|
|
|
|
|
|
tests/test-ovsdb.c \
|
|
|
|
|
|
tests/idltest.c \
|
|
|
|
|
|
tests/idltest.h
|
2010-03-15 15:41:54 -07:00
|
|
|
|
EXTRA_DIST += tests/uuidfilt.pl tests/ovsdb-monitor-sort.pl
|
2010-02-23 15:48:28 -08:00
|
|
|
|
tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a $(SSL_LIBS)
|
2010-01-07 15:52:58 -08:00
|
|
|
|
|
|
|
|
|
|
# idltest schema and IDL
|
2011-10-18 09:29:54 -07:00
|
|
|
|
OVSIDL_BUILT += tests/idltest.c tests/idltest.h tests/idltest.ovsidl
|
2010-01-07 15:52:58 -08:00
|
|
|
|
IDLTEST_IDL_FILES = tests/idltest.ovsschema tests/idltest.ann
|
|
|
|
|
|
EXTRA_DIST += $(IDLTEST_IDL_FILES)
|
|
|
|
|
|
tests/idltest.ovsidl: $(IDLTEST_IDL_FILES)
|
|
|
|
|
|
$(OVSDB_IDLC) -C $(srcdir) annotate $(IDLTEST_IDL_FILES) > $@.tmp
|
|
|
|
|
|
mv $@.tmp $@
|
|
|
|
|
|
|
2009-12-07 17:00:14 -08:00
|
|
|
|
tests/idltest.c: tests/idltest.h
|
2009-11-04 15:11:44 -08:00
|
|
|
|
|
2009-11-10 15:30:49 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-reconnect
|
|
|
|
|
|
tests_test_reconnect_SOURCES = tests/test-reconnect.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_reconnect_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-11-10 15:30:49 -08:00
|
|
|
|
|
2009-06-10 16:45:28 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-sha1
|
|
|
|
|
|
tests_test_sha1_SOURCES = tests/test-sha1.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_sha1_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-06-10 16:45:28 -07:00
|
|
|
|
|
2009-10-14 13:14:43 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-timeval
|
|
|
|
|
|
tests_test_timeval_SOURCES = tests/test-timeval.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_timeval_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-10-14 13:14:43 -07:00
|
|
|
|
|
2010-01-06 10:00:56 -08:00
|
|
|
|
noinst_PROGRAMS += tests/test-strtok_r
|
|
|
|
|
|
tests_test_strtok_r_SOURCES = tests/test-strtok_r.c
|
|
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-type-props
|
|
|
|
|
|
tests_test_type_props_SOURCES = tests/test-type-props.c
|
|
|
|
|
|
|
2011-07-22 10:20:52 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-util
|
|
|
|
|
|
tests_test_util_SOURCES = tests/test-util.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_util_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2011-07-22 10:20:52 -07:00
|
|
|
|
|
2009-09-24 15:02:36 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-uuid
|
|
|
|
|
|
tests_test_uuid_SOURCES = tests/test-uuid.c
|
2012-02-14 20:53:59 -08:00
|
|
|
|
tests_test_uuid_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2009-09-24 15:02:36 -07:00
|
|
|
|
|
2009-06-12 17:10:09 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-vconn
|
|
|
|
|
|
tests_test_vconn_SOURCES = tests/test-vconn.c
|
|
|
|
|
|
tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
|
2010-08-25 10:26:40 -07:00
|
|
|
|
|
2010-10-28 17:13:18 -07:00
|
|
|
|
noinst_PROGRAMS += tests/test-byte-order
|
|
|
|
|
|
tests_test_byte_order_SOURCES = tests/test-byte-order.c
|
|
|
|
|
|
tests_test_byte_order_LDADD = lib/libopenvswitch.a
|
2010-05-11 16:44:03 -07:00
|
|
|
|
|
2010-08-25 10:26:40 -07:00
|
|
|
|
# Python tests.
|
2012-02-28 16:28:08 -08:00
|
|
|
|
CHECK_PYFILES = \
|
2012-02-16 19:15:01 -08:00
|
|
|
|
tests/appctl.py \
|
2010-08-25 10:26:40 -07:00
|
|
|
|
tests/test-daemon.py \
|
|
|
|
|
|
tests/test-json.py \
|
|
|
|
|
|
tests/test-jsonrpc.py \
|
|
|
|
|
|
tests/test-ovsdb.py \
|
2011-09-26 13:07:29 -07:00
|
|
|
|
tests/test-reconnect.py \
|
2011-09-21 15:43:27 -07:00
|
|
|
|
tests/MockXenAPI.py \
|
2013-02-13 11:21:20 -08:00
|
|
|
|
tests/test-unix-socket.py \
|
2012-02-16 19:15:01 -08:00
|
|
|
|
tests/test-unixctl.py \
|
2011-09-21 15:43:27 -07:00
|
|
|
|
tests/test-vlog.py
|
2012-02-28 16:28:08 -08:00
|
|
|
|
EXTRA_DIST += $(CHECK_PYFILES)
|
|
|
|
|
|
PYCOV_CLEAN_FILES += $(CHECK_PYFILES:.py=.py,cover) .coverage
|
2011-01-10 12:54:26 -08:00
|
|
|
|
|
|
|
|
|
|
if HAVE_OPENSSL
|
|
|
|
|
|
TESTPKI_FILES = \
|
|
|
|
|
|
tests/testpki-cacert.pem \
|
|
|
|
|
|
tests/testpki-cert.pem \
|
|
|
|
|
|
tests/testpki-privkey.pem \
|
|
|
|
|
|
tests/testpki-req.pem \
|
|
|
|
|
|
tests/testpki-cert2.pem \
|
|
|
|
|
|
tests/testpki-privkey2.pem \
|
|
|
|
|
|
tests/testpki-req2.pem
|
|
|
|
|
|
check_DATA += $(TESTPKI_FILES)
|
|
|
|
|
|
CLEANFILES += $(TESTPKI_FILES)
|
|
|
|
|
|
|
|
|
|
|
|
tests/testpki-cacert.pem: tests/pki/stamp; cp tests/pki/switchca/cacert.pem $@
|
|
|
|
|
|
tests/testpki-cert.pem: tests/pki/stamp; cp tests/pki/test-cert.pem $@
|
|
|
|
|
|
tests/testpki-req.pem: tests/pki/stamp; cp tests/pki/test-req.pem $@
|
|
|
|
|
|
tests/testpki-privkey.pem: tests/pki/stamp; cp tests/pki/test-privkey.pem $@
|
|
|
|
|
|
tests/testpki-cert2.pem: tests/pki/stamp; cp tests/pki/test2-cert.pem $@
|
|
|
|
|
|
tests/testpki-req2.pem: tests/pki/stamp; cp tests/pki/test2-req.pem $@
|
|
|
|
|
|
tests/testpki-privkey2.pem: tests/pki/stamp; cp tests/pki/test2-privkey.pem $@
|
|
|
|
|
|
|
|
|
|
|
|
OVS_PKI = $(SHELL) $(srcdir)/utilities/ovs-pki.in --dir=tests/pki --log=tests/ovs-pki.log
|
|
|
|
|
|
tests/pki/stamp:
|
|
|
|
|
|
rm -f tests/pki/stamp
|
|
|
|
|
|
rm -rf tests/pki
|
|
|
|
|
|
$(OVS_PKI) init
|
|
|
|
|
|
$(OVS_PKI) req+sign tests/pki/test
|
|
|
|
|
|
$(OVS_PKI) req+sign tests/pki/test2
|
|
|
|
|
|
: > tests/pki/stamp
|
|
|
|
|
|
CLEANFILES += tests/ovs-pki.log
|
|
|
|
|
|
|
|
|
|
|
|
CLEAN_LOCAL += clean-pki
|
|
|
|
|
|
clean-pki:
|
|
|
|
|
|
rm -f tests/pki/stamp
|
|
|
|
|
|
rm -rf tests/pki
|
|
|
|
|
|
endif
|