6 $(srcdir)/tests/testsuite
16 TESTSUITE = $(srcdir)/tests/testsuite
17 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
19 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
20 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:tests' $(TESTSUITEFLAGS)
23 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
26 AUTOTEST = $(AUTOM4TE) --language=autotest
27 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
28 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
31 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
32 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
34 echo '# Signature of the current package.' && \
35 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
36 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
37 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
38 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
39 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
40 } >'$(srcdir)/package.m4'
42 noinst_PROGRAMS += tests/test-classifier
43 tests_test_classifier_SOURCES = tests/test-classifier.c
44 tests_test_classifier_LDADD = lib/libopenvswitch.a
46 noinst_PROGRAMS += tests/test-csum
47 tests_test_csum_SOURCES = tests/test-csum.c
48 tests_test_csum_LDADD = lib/libopenvswitch.a
50 noinst_PROGRAMS += tests/test-flows
51 tests_test_flows_SOURCES = tests/test-flows.c
52 tests_test_flows_LDADD = lib/libopenvswitch.a
53 dist_check_SCRIPTS = tests/flowgen.pl
55 noinst_PROGRAMS += tests/test-hash
56 tests_test_hash_SOURCES = tests/test-hash.c
57 tests_test_hash_LDADD = lib/libopenvswitch.a
59 noinst_PROGRAMS += tests/test-hmap
60 tests_test_hmap_SOURCES = tests/test-hmap.c
61 tests_test_hmap_LDADD = lib/libopenvswitch.a
63 noinst_PROGRAMS += tests/test-list
64 tests_test_list_SOURCES = tests/test-list.c
65 tests_test_list_LDADD = lib/libopenvswitch.a
67 noinst_PROGRAMS += tests/test-lockfile
68 tests_test_lockfile_SOURCES = tests/test-lockfile.c
69 tests_test_lockfile_LDADD = lib/libopenvswitch.a
71 noinst_PROGRAMS += tests/test-sha1
72 tests_test_sha1_SOURCES = tests/test-sha1.c
73 tests_test_sha1_LDADD = lib/libopenvswitch.a
75 noinst_PROGRAMS += tests/test-timeval
76 tests_test_timeval_SOURCES = tests/test-timeval.c
77 tests_test_timeval_LDADD = lib/libopenvswitch.a
79 noinst_PROGRAMS += tests/test-type-props
80 tests_test_type_props_SOURCES = tests/test-type-props.c
82 noinst_PROGRAMS += tests/test-dhcp-client
83 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
84 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
86 noinst_PROGRAMS += tests/test-stp
87 tests_test_stp_SOURCES = tests/test-stp.c
88 tests_test_stp_LDADD = lib/libopenvswitch.a
90 noinst_PROGRAMS += tests/test-vconn
91 tests_test_vconn_SOURCES = tests/test-vconn.c
92 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)