2 # Automated Testing Framework (atf)
4 # Copyright (c) 2007 The NetBSD Foundation, Inc.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
10 # 1. Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
16 # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17 # CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 # IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 # GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 bin_PROGRAMS += atf-run/atf-run
31 atf_run_atf_run_CPPFLAGS = "-DGDB=\"$(GDB)\""
32 atf_run_atf_run_SOURCES = atf-run/atf-run.cpp \
41 atf-run/requirements.cpp \
42 atf-run/requirements.hpp \
45 atf-run/test-program.cpp \
46 atf-run/test-program.hpp \
51 atf_run_atf_run_LDADD = $(ATF_CXX_LIBS)
52 dist_man_MANS += atf-run/atf-run.1
54 tests_atf_run_DATA = atf-run/Atffile \
56 tests_atf_rundir = $(pkgtestsdir)/atf-run
57 EXTRA_DIST += $(tests_atf_run_DATA)
59 tests_atf_run_PROGRAMS = atf-run/atffile_test
60 atf_run_atffile_test_SOURCES = atf-run/atffile_test.cpp \
62 atf_run_atffile_test_CPPFLAGS = -I$(srcdir)/atf-c++/detail
63 atf_run_atffile_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
65 tests_atf_run_PROGRAMS += atf-run/bad_metadata_helper
66 atf_run_bad_metadata_helper_SOURCES = atf-run/bad_metadata_helper.c
67 atf_run_bad_metadata_helper_LDADD = libatf-c.la
69 tests_atf_run_PROGRAMS += atf-run/config_test
70 atf_run_config_test_SOURCES = atf-run/config_test.cpp \
72 atf_run_config_test_CPPFLAGS = -I$(srcdir)/atf-c++/detail
73 atf_run_config_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
75 tests_atf_run_PROGRAMS += atf-run/expect_helpers
76 atf_run_expect_helpers_SOURCES = atf-run/expect_helpers.c
77 atf_run_expect_helpers_LDADD = libatf-c.la
79 tests_atf_run_PROGRAMS += atf-run/fs_test
80 atf_run_fs_test_SOURCES = atf-run/fs_test.cpp \
83 atf_run_fs_test_LDADD = $(ATF_CXX_LIBS)
85 tests_atf_run_PROGRAMS += atf-run/io_test
86 atf_run_io_test_SOURCES = atf-run/io_test.cpp \
89 atf_run_io_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
91 tests_atf_run_PROGRAMS += atf-run/misc_helpers
92 atf_run_misc_helpers_SOURCES = atf-run/misc_helpers.cpp
93 atf_run_misc_helpers_LDADD = $(ATF_CXX_LIBS)
95 tests_atf_run_PROGRAMS += atf-run/pass_helper
96 atf_run_pass_helper_SOURCES = atf-run/pass_helper.cpp
97 atf_run_pass_helper_LDADD = $(ATF_CXX_LIBS)
99 tests_atf_run_PROGRAMS += atf-run/several_tcs_helper
100 atf_run_several_tcs_helper_SOURCES = atf-run/several_tcs_helper.c
101 atf_run_several_tcs_helper_LDADD = libatf-c.la
103 tests_atf_run_PROGRAMS += atf-run/requirements_test
104 atf_run_requirements_test_SOURCES = atf-run/requirements_test.cpp \
105 atf-run/requirements.cpp \
107 atf_run_requirements_test_LDADD = $(ATF_CXX_LIBS)
109 tests_atf_run_PROGRAMS += atf-run/signals_test
110 atf_run_signals_test_SOURCES = atf-run/signals_test.cpp atf-run/signals.cpp
111 atf_run_signals_test_LDADD = $(ATF_CXX_LIBS)
113 tests_atf_run_PROGRAMS += atf-run/test_program_test
114 atf_run_test_program_test_SOURCES = atf-run/test_program_test.cpp \
117 atf-run/requirements.cpp \
118 atf-run/signals.cpp \
119 atf-run/test-program.cpp \
122 atf_run_test_program_test_CPPFLAGS = -I$(srcdir)/atf-c++/detail
123 atf_run_test_program_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
125 tests_atf_run_PROGRAMS += atf-run/user_test
126 atf_run_user_test_SOURCES = atf-run/user_test.cpp atf-run/user.cpp
127 atf_run_user_test_LDADD = $(ATF_CXX_LIBS)
129 tests_atf_run_PROGRAMS += atf-run/zero_tcs_helper
130 atf_run_zero_tcs_helper_SOURCES = atf-run/zero_tcs_helper.c
131 atf_run_zero_tcs_helper_LDADD = libatf-c.la
133 tests_atf_run_SCRIPTS = atf-run/integration_test
134 CLEANFILES += atf-run/integration_test
135 EXTRA_DIST += atf-run/integration_test.sh
136 atf-run/integration_test: $(srcdir)/atf-run/integration_test.sh
137 test -d atf-run || mkdir -p atf-run
138 @src="$(srcdir)/atf-run/integration_test.sh"; \
139 dst="atf-run/integration_test"; $(BUILD_SH_TP)
141 hooksdir = $(pkgdatadir)
142 hooks_DATA = atf-run/share/atf-run.hooks
143 EXTRA_DIST += $(hooks_DATA)
146 eg_DATA = atf-run/sample/atf-run.hooks
147 eg_DATA += atf-run/sample/common.conf
148 EXTRA_DIST += $(eg_DATA)
150 # vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8