]>
Commit | Line | Data |
---|---|---|
1b233b95 BP |
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 \ | |
c2b07021 | 9 | tests/lcov-pre.at \ |
1b233b95 | 10 | tests/library.at \ |
29d4af60 | 11 | tests/dir_name.at \ |
d918d9d1 BP |
12 | tests/aes128.at \ |
13 | tests/uuid.at \ | |
f38b84ea | 14 | tests/json.at \ |
f2129093 | 15 | tests/jsonrpc.at \ |
e7cfedd6 | 16 | tests/timeval.at \ |
ac718c9d | 17 | tests/lockfile.at \ |
f85f8ebb BP |
18 | tests/ovsdb.at \ |
19 | tests/ovsdb-file.at \ | |
20 | tests/ovsdb-types.at \ | |
21 | tests/ovsdb-data.at \ | |
22 | tests/ovsdb-column.at \ | |
23 | tests/ovsdb-table.at \ | |
24 | tests/ovsdb-row.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 \ | |
c2b07021 | 30 | tests/stp.at \ |
3b135da3 | 31 | tests/ovs-vsctl.at \ |
c2b07021 | 32 | tests/lcov-post.at |
1b233b95 BP |
33 | TESTSUITE = $(srcdir)/tests/testsuite |
34 | DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE) | |
35 | ||
36 | check-local: tests/atconfig tests/atlocal $(TESTSUITE) | |
37 | $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:tests' $(TESTSUITEFLAGS) | |
38 | ||
39 | clean-local: | |
40 | test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean | |
41 | ||
42 | AUTOM4TE = autom4te | |
43 | AUTOTEST = $(AUTOM4TE) --language=autotest | |
44 | $(TESTSUITE): package.m4 $(TESTSUITE_AT) | |
45 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at | |
46 | mv $@.tmp $@ | |
47 | ||
48 | # The `:;' works around a Bash 3.2 bug when the output is not writeable. | |
49 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac | |
50 | :;{ \ | |
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' | |
58 | ||
d918d9d1 BP |
59 | noinst_PROGRAMS += tests/test-aes128 |
60 | tests_test_aes128_SOURCES = tests/test-aes128.c | |
61 | tests_test_aes128_LDADD = lib/libopenvswitch.a | |
62 | ||
064af421 BP |
63 | noinst_PROGRAMS += tests/test-classifier |
64 | tests_test_classifier_SOURCES = tests/test-classifier.c | |
65 | tests_test_classifier_LDADD = lib/libopenvswitch.a | |
66 | ||
21effc03 BP |
67 | noinst_PROGRAMS += tests/test-csum |
68 | tests_test_csum_SOURCES = tests/test-csum.c | |
69 | tests_test_csum_LDADD = lib/libopenvswitch.a | |
70 | ||
29d4af60 BP |
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 | |
74 | ||
064af421 BP |
75 | noinst_PROGRAMS += tests/test-flows |
76 | tests_test_flows_SOURCES = tests/test-flows.c | |
77 | tests_test_flows_LDADD = lib/libopenvswitch.a | |
1b233b95 | 78 | dist_check_SCRIPTS = tests/flowgen.pl |
064af421 | 79 | |
064af421 BP |
80 | noinst_PROGRAMS += tests/test-hash |
81 | tests_test_hash_SOURCES = tests/test-hash.c | |
82 | tests_test_hash_LDADD = lib/libopenvswitch.a | |
83 | ||
064af421 BP |
84 | noinst_PROGRAMS += tests/test-hmap |
85 | tests_test_hmap_SOURCES = tests/test-hmap.c | |
86 | tests_test_hmap_LDADD = lib/libopenvswitch.a | |
87 | ||
f38b84ea BP |
88 | noinst_PROGRAMS += tests/test-json |
89 | tests_test_json_SOURCES = tests/test-json.c | |
90 | tests_test_json_LDADD = lib/libopenvswitch.a | |
91 | ||
f2129093 BP |
92 | noinst_PROGRAMS += tests/test-jsonrpc |
93 | tests_test_jsonrpc_SOURCES = tests/test-jsonrpc.c | |
94 | tests_test_jsonrpc_LDADD = lib/libopenvswitch.a | |
95 | ||
064af421 BP |
96 | noinst_PROGRAMS += tests/test-list |
97 | tests_test_list_SOURCES = tests/test-list.c | |
98 | tests_test_list_LDADD = lib/libopenvswitch.a | |
99 | ||
ac718c9d BP |
100 | noinst_PROGRAMS += tests/test-lockfile |
101 | tests_test_lockfile_SOURCES = tests/test-lockfile.c | |
102 | tests_test_lockfile_LDADD = lib/libopenvswitch.a | |
103 | ||
f85f8ebb BP |
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 | |
108 | ||
d138cd2c BP |
109 | noinst_PROGRAMS += tests/test-sha1 |
110 | tests_test_sha1_SOURCES = tests/test-sha1.c | |
111 | tests_test_sha1_LDADD = lib/libopenvswitch.a | |
112 | ||
e7cfedd6 BP |
113 | noinst_PROGRAMS += tests/test-timeval |
114 | tests_test_timeval_SOURCES = tests/test-timeval.c | |
115 | tests_test_timeval_LDADD = lib/libopenvswitch.a | |
116 | ||
064af421 BP |
117 | noinst_PROGRAMS += tests/test-type-props |
118 | tests_test_type_props_SOURCES = tests/test-type-props.c | |
119 | ||
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) | |
123 | ||
064af421 | 124 | noinst_PROGRAMS += tests/test-stp |
064af421 BP |
125 | tests_test_stp_SOURCES = tests/test-stp.c |
126 | tests_test_stp_LDADD = lib/libopenvswitch.a | |
1b233b95 | 127 | |
d918d9d1 BP |
128 | noinst_PROGRAMS += tests/test-uuid |
129 | tests_test_uuid_SOURCES = tests/test-uuid.c | |
130 | tests_test_uuid_LDADD = lib/libopenvswitch.a | |
131 | ||
48d973e3 BP |
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) | |
135 |