6 $(srcdir)/tests/testsuite
20 tests/ovsdb-types.at \
22 tests/ovsdb-column.at \
23 tests/ovsdb-table.at \
25 tests/ovsdb-condition.at \
26 tests/ovsdb-query.at \
27 tests/ovsdb-transaction.at \
28 tests/ovsdb-execution.at \
29 tests/ovsdb-trigger.at \
33 TESTSUITE = $(srcdir)/tests/testsuite
34 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
36 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
37 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:tests' $(TESTSUITEFLAGS)
40 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
43 AUTOTEST = $(AUTOM4TE) --language=autotest
44 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
45 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
48 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
49 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
51 echo '# Signature of the current package.' && \
52 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
53 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
54 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
55 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
56 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
57 } >'$(srcdir)/package.m4'
59 noinst_PROGRAMS += tests/test-aes128
60 tests_test_aes128_SOURCES = tests/test-aes128.c
61 tests_test_aes128_LDADD = lib/libopenvswitch.a
63 noinst_PROGRAMS += tests/test-classifier
64 tests_test_classifier_SOURCES = tests/test-classifier.c
65 tests_test_classifier_LDADD = lib/libopenvswitch.a
67 noinst_PROGRAMS += tests/test-csum
68 tests_test_csum_SOURCES = tests/test-csum.c
69 tests_test_csum_LDADD = lib/libopenvswitch.a
71 noinst_PROGRAMS += tests/test-dir_name
72 tests_test_dir_name_SOURCES = tests/test-dir_name.c
73 tests_test_dir_name_LDADD = lib/libopenvswitch.a
75 noinst_PROGRAMS += tests/test-flows
76 tests_test_flows_SOURCES = tests/test-flows.c
77 tests_test_flows_LDADD = lib/libopenvswitch.a
78 dist_check_SCRIPTS = tests/flowgen.pl
80 noinst_PROGRAMS += tests/test-hash
81 tests_test_hash_SOURCES = tests/test-hash.c
82 tests_test_hash_LDADD = lib/libopenvswitch.a
84 noinst_PROGRAMS += tests/test-hmap
85 tests_test_hmap_SOURCES = tests/test-hmap.c
86 tests_test_hmap_LDADD = lib/libopenvswitch.a
88 noinst_PROGRAMS += tests/test-json
89 tests_test_json_SOURCES = tests/test-json.c
90 tests_test_json_LDADD = lib/libopenvswitch.a
92 noinst_PROGRAMS += tests/test-jsonrpc
93 tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
94 tests_test_jsonrpc_LDADD = lib/libopenvswitch.a
96 noinst_PROGRAMS += tests/test-list
97 tests_test_list_SOURCES = tests/test-list.c
98 tests_test_list_LDADD = lib/libopenvswitch.a
100 noinst_PROGRAMS += tests/test-lockfile
101 tests_test_lockfile_SOURCES = tests/test-lockfile.c
102 tests_test_lockfile_LDADD = lib/libopenvswitch.a
104 noinst_PROGRAMS += tests/test-ovsdb
105 tests_test_ovsdb_SOURCES = tests/test-ovsdb.c
106 tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
107 EXTRA_DIST += tests/uuidfilt.pl
109 noinst_PROGRAMS += tests/test-sha1
110 tests_test_sha1_SOURCES = tests/test-sha1.c
111 tests_test_sha1_LDADD = lib/libopenvswitch.a
113 noinst_PROGRAMS += tests/test-timeval
114 tests_test_timeval_SOURCES = tests/test-timeval.c
115 tests_test_timeval_LDADD = lib/libopenvswitch.a
117 noinst_PROGRAMS += tests/test-type-props
118 tests_test_type_props_SOURCES = tests/test-type-props.c
120 noinst_PROGRAMS += tests/test-dhcp-client
121 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
122 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
124 noinst_PROGRAMS += tests/test-stp
125 tests_test_stp_SOURCES = tests/test-stp.c
126 tests_test_stp_LDADD = lib/libopenvswitch.a
128 noinst_PROGRAMS += tests/test-uuid
129 tests_test_uuid_SOURCES = tests/test-uuid.c
130 tests_test_uuid_LDADD = lib/libopenvswitch.a
132 noinst_PROGRAMS += tests/test-vconn
133 tests_test_vconn_SOURCES = tests/test-vconn.c
134 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)