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-mutation.at \
28 tests/ovsdb-query.at \
29 tests/ovsdb-transaction.at \
30 tests/ovsdb-execution.at \
31 tests/ovsdb-trigger.at \
33 tests/ovsdb-server.at \
34 tests/ovsdb-monitor.at \
39 TESTSUITE = $(srcdir)/tests/testsuite
40 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
42 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
43 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:ovsdb:tests' $(TESTSUITEFLAGS)
46 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
49 AUTOTEST = $(AUTOM4TE) --language=autotest
50 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
51 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
54 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
55 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
57 echo '# Signature of the current package.' && \
58 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
59 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
60 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
61 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
62 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
63 } >'$(srcdir)/package.m4'
65 noinst_PROGRAMS += tests/test-aes128
66 tests_test_aes128_SOURCES = tests/test-aes128.c
67 tests_test_aes128_LDADD = lib/libopenvswitch.a
69 noinst_PROGRAMS += tests/test-classifier
70 tests_test_classifier_SOURCES = tests/test-classifier.c
71 tests_test_classifier_LDADD = lib/libopenvswitch.a
73 noinst_PROGRAMS += tests/test-csum
74 tests_test_csum_SOURCES = tests/test-csum.c
75 tests_test_csum_LDADD = lib/libopenvswitch.a
77 noinst_PROGRAMS += tests/test-dir_name
78 tests_test_dir_name_SOURCES = tests/test-dir_name.c
79 tests_test_dir_name_LDADD = lib/libopenvswitch.a
81 noinst_PROGRAMS += tests/test-flows
82 tests_test_flows_SOURCES = tests/test-flows.c
83 tests_test_flows_LDADD = lib/libopenvswitch.a
84 dist_check_SCRIPTS = tests/flowgen.pl
86 noinst_PROGRAMS += tests/test-hash
87 tests_test_hash_SOURCES = tests/test-hash.c
88 tests_test_hash_LDADD = lib/libopenvswitch.a
90 noinst_PROGRAMS += tests/test-hmap
91 tests_test_hmap_SOURCES = tests/test-hmap.c
92 tests_test_hmap_LDADD = lib/libopenvswitch.a
94 noinst_PROGRAMS += tests/test-json
95 tests_test_json_SOURCES = tests/test-json.c
96 tests_test_json_LDADD = lib/libopenvswitch.a
98 noinst_PROGRAMS += tests/test-jsonrpc
99 tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
100 tests_test_jsonrpc_LDADD = lib/libopenvswitch.a
102 noinst_PROGRAMS += tests/test-list
103 tests_test_list_SOURCES = tests/test-list.c
104 tests_test_list_LDADD = lib/libopenvswitch.a
106 noinst_PROGRAMS += tests/test-lockfile
107 tests_test_lockfile_SOURCES = tests/test-lockfile.c
108 tests_test_lockfile_LDADD = lib/libopenvswitch.a
110 noinst_PROGRAMS += tests/test-ovsdb
111 tests_test_ovsdb_SOURCES = tests/test-ovsdb.c tests/idltest.c tests/idltest.h
112 tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
113 EXTRA_DIST += tests/uuidfilt.pl tests/idltest.ovsidl
114 BUILT_SOURCES += tests/idltest.c tests/idltest.h
115 noinst_DATA += tests/idltest.ovsschema
116 DISTCLEANFILES += tests/idltest.ovsschema
117 tests/idltest.c tests/idltest.h tests/idltest.ovsschema: ovsdb/ovsdb-idlc.in
118 tests/idltest.c: tests/idltest.h
119 EXTRA_DIST += tests/idltest.c tests/idltest.h tests/idltest.ovsschema
121 noinst_PROGRAMS += tests/test-reconnect
122 tests_test_reconnect_SOURCES = tests/test-reconnect.c
123 tests_test_reconnect_LDADD = lib/libopenvswitch.a
125 noinst_PROGRAMS += tests/test-sha1
126 tests_test_sha1_SOURCES = tests/test-sha1.c
127 tests_test_sha1_LDADD = lib/libopenvswitch.a
129 noinst_PROGRAMS += tests/test-timeval
130 tests_test_timeval_SOURCES = tests/test-timeval.c
131 tests_test_timeval_LDADD = lib/libopenvswitch.a
133 noinst_PROGRAMS += tests/test-type-props
134 tests_test_type_props_SOURCES = tests/test-type-props.c
136 noinst_PROGRAMS += tests/test-dhcp-client
137 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
138 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
140 noinst_PROGRAMS += tests/test-stp
141 tests_test_stp_SOURCES = tests/test-stp.c
142 tests_test_stp_LDADD = lib/libopenvswitch.a
144 noinst_PROGRAMS += tests/test-uuid
145 tests_test_uuid_SOURCES = tests/test-uuid.c
146 tests_test_uuid_LDADD = lib/libopenvswitch.a
148 noinst_PROGRAMS += tests/test-vconn
149 tests_test_vconn_SOURCES = tests/test-vconn.c
150 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)