Implement RFC 4122-compliant UUIDs.
[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/aes128.at \
12         tests/uuid.at \
13         tests/json.at \
14         tests/timeval.at \
15         tests/lockfile.at \
16         tests/stp.at \
17         tests/ovs-vsctl.at \
18         tests/lcov-post.at
19 TESTSUITE = $(srcdir)/tests/testsuite
20 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
21
22 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
23         $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:tests' $(TESTSUITEFLAGS)
24
25 clean-local:
26         test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
27
28 AUTOM4TE = autom4te
29 AUTOTEST = $(AUTOM4TE) --language=autotest
30 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
31         $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
32         mv $@.tmp $@
33
34 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
35 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
36         :;{ \
37           echo '# Signature of the current package.' && \
38           echo 'm4_define([AT_PACKAGE_NAME],      [@PACKAGE_NAME@])' && \
39           echo 'm4_define([AT_PACKAGE_TARNAME],   [@PACKAGE_TARNAME@])' && \
40           echo 'm4_define([AT_PACKAGE_VERSION],   [@PACKAGE_VERSION@])' && \
41           echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])' && \
42           echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
43         } >'$(srcdir)/package.m4'
44
45 noinst_PROGRAMS += tests/test-aes128
46 tests_test_aes128_SOURCES = tests/test-aes128.c
47 tests_test_aes128_LDADD = lib/libopenvswitch.a
48
49 noinst_PROGRAMS += tests/test-classifier
50 tests_test_classifier_SOURCES = tests/test-classifier.c
51 tests_test_classifier_LDADD = lib/libopenvswitch.a
52
53 noinst_PROGRAMS += tests/test-csum
54 tests_test_csum_SOURCES = tests/test-csum.c
55 tests_test_csum_LDADD = lib/libopenvswitch.a
56
57 noinst_PROGRAMS += tests/test-flows
58 tests_test_flows_SOURCES = tests/test-flows.c
59 tests_test_flows_LDADD = lib/libopenvswitch.a
60 dist_check_SCRIPTS = tests/flowgen.pl
61
62 noinst_PROGRAMS += tests/test-hash
63 tests_test_hash_SOURCES = tests/test-hash.c
64 tests_test_hash_LDADD = lib/libopenvswitch.a
65
66 noinst_PROGRAMS += tests/test-hmap
67 tests_test_hmap_SOURCES = tests/test-hmap.c
68 tests_test_hmap_LDADD = lib/libopenvswitch.a
69
70 noinst_PROGRAMS += tests/test-json
71 tests_test_json_SOURCES = tests/test-json.c
72 tests_test_json_LDADD = lib/libopenvswitch.a
73
74 noinst_PROGRAMS += tests/test-list
75 tests_test_list_SOURCES = tests/test-list.c
76 tests_test_list_LDADD = lib/libopenvswitch.a
77
78 noinst_PROGRAMS += tests/test-lockfile
79 tests_test_lockfile_SOURCES = tests/test-lockfile.c
80 tests_test_lockfile_LDADD = lib/libopenvswitch.a
81
82 noinst_PROGRAMS += tests/test-sha1
83 tests_test_sha1_SOURCES = tests/test-sha1.c
84 tests_test_sha1_LDADD = lib/libopenvswitch.a
85
86 noinst_PROGRAMS += tests/test-timeval
87 tests_test_timeval_SOURCES = tests/test-timeval.c
88 tests_test_timeval_LDADD = lib/libopenvswitch.a
89
90 noinst_PROGRAMS += tests/test-type-props
91 tests_test_type_props_SOURCES = tests/test-type-props.c
92
93 noinst_PROGRAMS += tests/test-dhcp-client
94 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
95 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
96
97 noinst_PROGRAMS += tests/test-stp
98 tests_test_stp_SOURCES = tests/test-stp.c
99 tests_test_stp_LDADD = lib/libopenvswitch.a
100
101 noinst_PROGRAMS += tests/test-uuid
102 tests_test_uuid_SOURCES = tests/test-uuid.c
103 tests_test_uuid_LDADD = lib/libopenvswitch.a
104
105 noinst_PROGRAMS += tests/test-vconn
106 tests_test_vconn_SOURCES = tests/test-vconn.c
107 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
108