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