ovsdb: Monitor support.
[openvswitch] / tests / automake.mk
1 EXTRA_DIST += \
2         $(TESTSUITE_AT) \
3         $(TESTSUITE) \
4         tests/atlocal.in \
5         $(srcdir)/package.m4 \
6         $(srcdir)/tests/testsuite
7 TESTSUITE_AT = \
8         tests/testsuite.at \
9         tests/lcov-pre.at \
10         tests/library.at \
11         tests/dir_name.at \
12         tests/aes128.at \
13         tests/uuid.at \
14         tests/json.at \
15         tests/jsonrpc.at \
16         tests/timeval.at \
17         tests/lockfile.at \
18         tests/reconnect.at \
19         tests/ovsdb.at \
20         tests/ovsdb-log.at \
21         tests/ovsdb-types.at \
22         tests/ovsdb-data.at \
23         tests/ovsdb-column.at \
24         tests/ovsdb-table.at \
25         tests/ovsdb-row.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 \
31         tests/ovsdb-file.at \
32         tests/ovsdb-server.at \
33         tests/ovsdb-monitor.at \
34         tests/stp.at \
35         tests/ovs-vsctl.at \
36         tests/lcov-post.at
37 TESTSUITE = $(srcdir)/tests/testsuite
38 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
39
40 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
41         $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:ovsdb:tests' $(TESTSUITEFLAGS)
42
43 clean-local:
44         test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
45
46 AUTOM4TE = autom4te
47 AUTOTEST = $(AUTOM4TE) --language=autotest
48 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
49         $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
50         mv $@.tmp $@
51
52 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
53 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
54         :;{ \
55           echo '# Signature of the current package.' && \
56           echo 'm4_define([AT_PACKAGE_NAME],      [@PACKAGE_NAME@])' && \
57           echo 'm4_define([AT_PACKAGE_TARNAME],   [@PACKAGE_TARNAME@])' && \
58           echo 'm4_define([AT_PACKAGE_VERSION],   [@PACKAGE_VERSION@])' && \
59           echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])' && \
60           echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
61         } >'$(srcdir)/package.m4'
62
63 noinst_PROGRAMS += tests/test-aes128
64 tests_test_aes128_SOURCES = tests/test-aes128.c
65 tests_test_aes128_LDADD = lib/libopenvswitch.a
66
67 noinst_PROGRAMS += tests/test-classifier
68 tests_test_classifier_SOURCES = tests/test-classifier.c
69 tests_test_classifier_LDADD = lib/libopenvswitch.a
70
71 noinst_PROGRAMS += tests/test-csum
72 tests_test_csum_SOURCES = tests/test-csum.c
73 tests_test_csum_LDADD = lib/libopenvswitch.a
74
75 noinst_PROGRAMS += tests/test-dir_name
76 tests_test_dir_name_SOURCES = tests/test-dir_name.c
77 tests_test_dir_name_LDADD = lib/libopenvswitch.a
78
79 noinst_PROGRAMS += tests/test-flows
80 tests_test_flows_SOURCES = tests/test-flows.c
81 tests_test_flows_LDADD = lib/libopenvswitch.a
82 dist_check_SCRIPTS = tests/flowgen.pl
83
84 noinst_PROGRAMS += tests/test-hash
85 tests_test_hash_SOURCES = tests/test-hash.c
86 tests_test_hash_LDADD = lib/libopenvswitch.a
87
88 noinst_PROGRAMS += tests/test-hmap
89 tests_test_hmap_SOURCES = tests/test-hmap.c
90 tests_test_hmap_LDADD = lib/libopenvswitch.a
91
92 noinst_PROGRAMS += tests/test-json
93 tests_test_json_SOURCES = tests/test-json.c
94 tests_test_json_LDADD = lib/libopenvswitch.a
95
96 noinst_PROGRAMS += tests/test-jsonrpc
97 tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c
98 tests_test_jsonrpc_LDADD = lib/libopenvswitch.a
99
100 noinst_PROGRAMS += tests/test-list
101 tests_test_list_SOURCES = tests/test-list.c
102 tests_test_list_LDADD = lib/libopenvswitch.a
103
104 noinst_PROGRAMS += tests/test-lockfile
105 tests_test_lockfile_SOURCES = tests/test-lockfile.c
106 tests_test_lockfile_LDADD = lib/libopenvswitch.a
107
108 noinst_PROGRAMS += tests/test-ovsdb
109 tests_test_ovsdb_SOURCES = tests/test-ovsdb.c
110 tests_test_ovsdb_LDADD = ovsdb/libovsdb.a lib/libopenvswitch.a
111 EXTRA_DIST += tests/uuidfilt.pl
112
113 noinst_PROGRAMS += tests/test-reconnect
114 tests_test_reconnect_SOURCES = tests/test-reconnect.c
115 tests_test_reconnect_LDADD = lib/libopenvswitch.a
116
117 noinst_PROGRAMS += tests/test-sha1
118 tests_test_sha1_SOURCES = tests/test-sha1.c
119 tests_test_sha1_LDADD = lib/libopenvswitch.a
120
121 noinst_PROGRAMS += tests/test-timeval
122 tests_test_timeval_SOURCES = tests/test-timeval.c
123 tests_test_timeval_LDADD = lib/libopenvswitch.a
124
125 noinst_PROGRAMS += tests/test-type-props
126 tests_test_type_props_SOURCES = tests/test-type-props.c
127
128 noinst_PROGRAMS += tests/test-dhcp-client
129 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
130 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
131
132 noinst_PROGRAMS += tests/test-stp
133 tests_test_stp_SOURCES = tests/test-stp.c
134 tests_test_stp_LDADD = lib/libopenvswitch.a
135
136 noinst_PROGRAMS += tests/test-uuid
137 tests_test_uuid_SOURCES = tests/test-uuid.c
138 tests_test_uuid_LDADD = lib/libopenvswitch.a
139
140 noinst_PROGRAMS += tests/test-vconn
141 tests_test_vconn_SOURCES = tests/test-vconn.c
142 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
143