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