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 \
|
2009-07-27 16:42:51 -07:00
|
|
|
tests/lcov-pre.at \
|
2009-07-27 16:40:11 -07:00
|
|
|
tests/library.at \
|
2009-10-19 14:04:14 -07:00
|
|
|
tests/dir_name.at \
|
2009-09-24 15:02:36 -07:00
|
|
|
tests/aes128.at \
|
|
|
|
|
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 \
|
2009-10-14 13:14:43 -07:00
|
|
|
tests/timeval.at \
|
2009-10-14 16:52:04 -07:00
|
|
|
tests/lockfile.at \
|
2009-11-10 15:30:49 -08:00
|
|
|
tests/reconnect.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 \
|
|
|
|
|
tests/ovsdb-condition.at \
|
|
|
|
|
tests/ovsdb-query.at \
|
|
|
|
|
tests/ovsdb-transaction.at \
|
|
|
|
|
tests/ovsdb-execution.at \
|
|
|
|
|
tests/ovsdb-trigger.at \
|
2009-11-16 15:13:00 -08:00
|
|
|
tests/ovsdb-file.at \
|
|
|
|
|
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 \
|
2009-07-27 16:42:51 -07:00
|
|
|
tests/stp.at \
|
2009-09-14 10:05:13 -07:00
|
|
|
tests/ovs-vsctl.at \
|
2009-07-27 16:42:51 -07:00
|
|
|
tests/lcov-post.at
|
2009-07-27 16:40:11 -07:00
|
|
|
TESTSUITE = $(srcdir)/tests/testsuite
|
|
|
|
|
DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
|
|
|
|
|
|
|
|
|
|
check-local: tests/atconfig tests/atlocal $(TESTSUITE)
|
2009-11-16 15:13:00 -08:00
|
|
|
$(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:ovsdb:tests' $(TESTSUITEFLAGS)
|
2009-07-27 16:40:11 -07:00
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
|
test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
|
|
|
|
|
|
|
|
|
|
AUTOM4TE = autom4te
|
|
|
|
|
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.' && \
|
|
|
|
|
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@])'; \
|
|
|
|
|
} >'$(srcdir)/package.m4'
|
|
|
|
|
|
2009-09-24 15:02:36 -07:00
|
|
|
noinst_PROGRAMS += tests/test-aes128
|
|
|
|
|
tests_test_aes128_SOURCES = tests/test-aes128.c
|
|
|
|
|
tests_test_aes128_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
noinst_PROGRAMS += tests/test-classifier
|
|
|
|
|
tests_test_classifier_SOURCES = tests/test-classifier.c
|
|
|
|
|
tests_test_classifier_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-06-09 17:10:18 -07:00
|
|
|
noinst_PROGRAMS += tests/test-csum
|
|
|
|
|
tests_test_csum_SOURCES = tests/test-csum.c
|
|
|
|
|
tests_test_csum_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-10-19 14:04:14 -07:00
|
|
|
noinst_PROGRAMS += tests/test-dir_name
|
|
|
|
|
tests_test_dir_name_SOURCES = tests/test-dir_name.c
|
|
|
|
|
tests_test_dir_name_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
noinst_PROGRAMS += tests/test-flows
|
|
|
|
|
tests_test_flows_SOURCES = tests/test-flows.c
|
|
|
|
|
tests_test_flows_LDADD = lib/libopenvswitch.a
|
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
|
|
|
|
|
|
|
|
|
|
noinst_PROGRAMS += tests/test-hmap
|
|
|
|
|
tests_test_hmap_SOURCES = tests/test-hmap.c
|
|
|
|
|
tests_test_hmap_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-11-04 14:55:53 -08:00
|
|
|
noinst_PROGRAMS += tests/test-json
|
|
|
|
|
tests_test_json_SOURCES = tests/test-json.c
|
|
|
|
|
tests_test_json_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-10-26 15:04:05 -07:00
|
|
|
noinst_PROGRAMS += tests/test-jsonrpc
|
|
|
|
|
tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
|
|
|
|
|
tests_test_jsonrpc_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
noinst_PROGRAMS += tests/test-list
|
|
|
|
|
tests_test_list_SOURCES = tests/test-list.c
|
|
|
|
|
tests_test_list_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-10-14 16:52:04 -07:00
|
|
|
noinst_PROGRAMS += tests/test-lockfile
|
|
|
|
|
tests_test_lockfile_SOURCES = tests/test-lockfile.c
|
|
|
|
|
tests_test_lockfile_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-11-04 15:11:44 -08:00
|
|
|
noinst_PROGRAMS += tests/test-ovsdb
|
2009-12-02 11:26:15 -08:00
|
|
|
tests_test_ovsdb_SOURCES = tests/test-ovsdb.c tests/idltest.c tests/idltest.h
|
2009-11-04 15:11:44 -08:00
|
|
|
tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
|
2009-12-02 11:26:15 -08:00
|
|
|
EXTRA_DIST += tests/uuidfilt.pl tests/idltest.ovsidl
|
|
|
|
|
BUILT_SOURCES += tests/idltest.c tests/idltest.h
|
|
|
|
|
noinst_DATA += tests/idltest.ovsschema
|
|
|
|
|
DISTCLEANFILES += tests/idltest.ovsschema
|
2009-12-03 10:53:58 -08:00
|
|
|
tests/idltest.c tests/idltest.h tests/idltest.ovsschema: ovsdb/ovsdb-idlc.in
|
2009-12-07 17:00:14 -08:00
|
|
|
tests/idltest.c: tests/idltest.h
|
2009-12-03 17:06:29 -08:00
|
|
|
EXTRA_DIST += tests/idltest.c tests/idltest.h tests/idltest.ovsschema
|
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
|
|
|
|
|
tests_test_reconnect_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-06-10 16:45:28 -07:00
|
|
|
noinst_PROGRAMS += tests/test-sha1
|
|
|
|
|
tests_test_sha1_SOURCES = tests/test-sha1.c
|
|
|
|
|
tests_test_sha1_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-10-14 13:14:43 -07:00
|
|
|
noinst_PROGRAMS += tests/test-timeval
|
|
|
|
|
tests_test_timeval_SOURCES = tests/test-timeval.c
|
|
|
|
|
tests_test_timeval_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
2009-07-08 13:19:16 -07:00
|
|
|
noinst_PROGRAMS += tests/test-type-props
|
|
|
|
|
tests_test_type_props_SOURCES = tests/test-type-props.c
|
|
|
|
|
|
|
|
|
|
noinst_PROGRAMS += tests/test-dhcp-client
|
|
|
|
|
tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
|
|
|
|
|
tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
|
|
|
|
|
|
|
|
|
|
noinst_PROGRAMS += tests/test-stp
|
|
|
|
|
tests_test_stp_SOURCES = tests/test-stp.c
|
|
|
|
|
tests_test_stp_LDADD = lib/libopenvswitch.a
|
2009-07-27 16:40:11 -07:00
|
|
|
|
2009-09-24 15:02:36 -07:00
|
|
|
noinst_PROGRAMS += tests/test-uuid
|
|
|
|
|
tests_test_uuid_SOURCES = tests/test-uuid.c
|
|
|
|
|
tests_test_uuid_LDADD = lib/libopenvswitch.a
|
|
|
|
|
|
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)
|
|
|
|
|
|