6 $(srcdir)/tests/testsuite
21 tests/ovsdb-types.at \
23 tests/ovsdb-column.at \
24 tests/ovsdb-table.at \
26 tests/ovsdb-condition.at \
27 tests/ovsdb-query.at \
28 tests/ovsdb-transaction.at \
29 tests/ovsdb-execution.at \
30 tests/ovsdb-trigger.at \
32 tests/ovsdb-server.at \
36 TESTSUITE = $(srcdir)/tests/testsuite
37 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
39 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
40 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:ovsdb:tests' $(TESTSUITEFLAGS)
43 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
46 AUTOTEST = $(AUTOM4TE) --language=autotest
47 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
48 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
51 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
52 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
54 echo '# Signature of the current package.' && \
55 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
56 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
57 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
58 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
59 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
60 } >'$(srcdir)/package.m4'
62 noinst_PROGRAMS += tests/test-aes128
63 tests_test_aes128_SOURCES = tests/test-aes128.c
64 tests_test_aes128_LDADD = lib/libopenvswitch.a
66 noinst_PROGRAMS += tests/test-classifier
67 tests_test_classifier_SOURCES = tests/test-classifier.c
68 tests_test_classifier_LDADD = lib/libopenvswitch.a
70 noinst_PROGRAMS += tests/test-csum
71 tests_test_csum_SOURCES = tests/test-csum.c
72 tests_test_csum_LDADD = lib/libopenvswitch.a
74 noinst_PROGRAMS += tests/test-dir_name
75 tests_test_dir_name_SOURCES = tests/test-dir_name.c
76 tests_test_dir_name_LDADD = lib/libopenvswitch.a
78 noinst_PROGRAMS += tests/test-flows
79 tests_test_flows_SOURCES = tests/test-flows.c
80 tests_test_flows_LDADD = lib/libopenvswitch.a
81 dist_check_SCRIPTS = tests/flowgen.pl
83 noinst_PROGRAMS += tests/test-hash
84 tests_test_hash_SOURCES = tests/test-hash.c
85 tests_test_hash_LDADD = lib/libopenvswitch.a
87 noinst_PROGRAMS += tests/test-hmap
88 tests_test_hmap_SOURCES = tests/test-hmap.c
89 tests_test_hmap_LDADD = lib/libopenvswitch.a
91 noinst_PROGRAMS += tests/test-json
92 tests_test_json_SOURCES = tests/test-json.c
93 tests_test_json_LDADD = lib/libopenvswitch.a
95 noinst_PROGRAMS += tests/test-jsonrpc
96 tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
97 tests_test_jsonrpc_LDADD = lib/libopenvswitch.a
99 noinst_PROGRAMS += tests/test-list
100 tests_test_list_SOURCES = tests/test-list.c
101 tests_test_list_LDADD = lib/libopenvswitch.a
103 noinst_PROGRAMS += tests/test-lockfile
104 tests_test_lockfile_SOURCES = tests/test-lockfile.c
105 tests_test_lockfile_LDADD = lib/libopenvswitch.a
107 noinst_PROGRAMS += tests/test-ovsdb
108 tests_test_ovsdb_SOURCES = tests/test-ovsdb.c
109 tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
110 EXTRA_DIST += tests/uuidfilt.pl
112 noinst_PROGRAMS += tests/test-reconnect
113 tests_test_reconnect_SOURCES = tests/test-reconnect.c
114 tests_test_reconnect_LDADD = lib/libopenvswitch.a
116 noinst_PROGRAMS += tests/test-sha1
117 tests_test_sha1_SOURCES = tests/test-sha1.c
118 tests_test_sha1_LDADD = lib/libopenvswitch.a
120 noinst_PROGRAMS += tests/test-timeval
121 tests_test_timeval_SOURCES = tests/test-timeval.c
122 tests_test_timeval_LDADD = lib/libopenvswitch.a
124 noinst_PROGRAMS += tests/test-type-props
125 tests_test_type_props_SOURCES = tests/test-type-props.c
127 noinst_PROGRAMS += tests/test-dhcp-client
128 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
129 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
131 noinst_PROGRAMS += tests/test-stp
132 tests_test_stp_SOURCES = tests/test-stp.c
133 tests_test_stp_LDADD = lib/libopenvswitch.a
135 noinst_PROGRAMS += tests/test-uuid
136 tests_test_uuid_SOURCES = tests/test-uuid.c
137 tests_test_uuid_LDADD = lib/libopenvswitch.a
139 noinst_PROGRAMS += tests/test-vconn
140 tests_test_vconn_SOURCES = tests/test-vconn.c
141 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)