6 $(srcdir)/tests/testsuite
11 TESTSUITE = $(srcdir)/tests/testsuite
12 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
14 check-local: tests/atconfig tests/atlocal $(TESTSUITE)
15 $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH='utilities:vswitchd:tests' $(TESTSUITEFLAGS)
18 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C tests --clean
21 AUTOTEST = $(AUTOM4TE) --language=autotest
22 $(TESTSUITE): package.m4 $(TESTSUITE_AT)
23 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
26 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
27 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
29 echo '# Signature of the current package.' && \
30 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
31 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
32 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
33 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
34 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
35 } >'$(srcdir)/package.m4'
37 noinst_PROGRAMS += tests/test-classifier
38 tests_test_classifier_SOURCES = tests/test-classifier.c
39 tests_test_classifier_LDADD = lib/libopenvswitch.a
41 noinst_PROGRAMS += tests/test-csum
42 tests_test_csum_SOURCES = tests/test-csum.c
43 tests_test_csum_LDADD = lib/libopenvswitch.a
45 noinst_PROGRAMS += tests/test-flows
46 tests_test_flows_SOURCES = tests/test-flows.c
47 tests_test_flows_LDADD = lib/libopenvswitch.a
48 dist_check_SCRIPTS = tests/flowgen.pl
50 noinst_PROGRAMS += tests/test-hash
51 tests_test_hash_SOURCES = tests/test-hash.c
52 tests_test_hash_LDADD = lib/libopenvswitch.a
54 noinst_PROGRAMS += tests/test-hmap
55 tests_test_hmap_SOURCES = tests/test-hmap.c
56 tests_test_hmap_LDADD = lib/libopenvswitch.a
58 noinst_PROGRAMS += tests/test-list
59 tests_test_list_SOURCES = tests/test-list.c
60 tests_test_list_LDADD = lib/libopenvswitch.a
62 noinst_PROGRAMS += tests/test-sha1
63 tests_test_sha1_SOURCES = tests/test-sha1.c
64 tests_test_sha1_LDADD = lib/libopenvswitch.a
66 noinst_PROGRAMS += tests/test-type-props
67 tests_test_type_props_SOURCES = tests/test-type-props.c
69 noinst_PROGRAMS += tests/test-dhcp-client
70 tests_test_dhcp_client_SOURCES = tests/test-dhcp-client.c
71 tests_test_dhcp_client_LDADD = lib/libopenvswitch.a $(FAULT_LIBS)
73 noinst_PROGRAMS += tests/test-stp
74 tests_test_stp_SOURCES = tests/test-stp.c
75 tests_test_stp_LDADD = lib/libopenvswitch.a
77 noinst_PROGRAMS += tests/test-vconn
78 tests_test_vconn_SOURCES = tests/test-vconn.c
79 tests_test_vconn_LDADD = lib/libopenvswitch.a $(SSL_LIBS)