]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/atf/atf-run/Makefile.am.inc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / atf / atf-run / Makefile.am.inc
1 #
2 # Automated Testing Framework (atf)
3 #
4 # Copyright (c) 2007 The NetBSD Foundation, Inc.
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
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.
15 #
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.
28 #
29
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 \
33                           atf-run/atffile.cpp \
34                           atf-run/atffile.hpp \
35                           atf-run/config.cpp \
36                           atf-run/config.hpp \
37                           atf-run/fs.cpp \
38                           atf-run/fs.hpp \
39                           atf-run/io.cpp \
40                           atf-run/io.hpp \
41                           atf-run/requirements.cpp \
42                           atf-run/requirements.hpp \
43                           atf-run/signals.cpp \
44                           atf-run/signals.hpp \
45                           atf-run/test-program.cpp \
46                           atf-run/test-program.hpp \
47                           atf-run/timer.cpp \
48                           atf-run/timer.hpp \
49                           atf-run/user.cpp \
50                           atf-run/user.hpp
51 atf_run_atf_run_LDADD = $(ATF_CXX_LIBS)
52 dist_man_MANS += atf-run/atf-run.1
53
54 tests_atf_run_DATA = atf-run/Atffile \
55                      atf-run/Kyuafile
56 tests_atf_rundir = $(pkgtestsdir)/atf-run
57 EXTRA_DIST += $(tests_atf_run_DATA)
58
59 tests_atf_run_PROGRAMS = atf-run/atffile_test
60 atf_run_atffile_test_SOURCES = atf-run/atffile_test.cpp \
61                                atf-run/atffile.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)
64
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
68
69 tests_atf_run_PROGRAMS += atf-run/config_test
70 atf_run_config_test_SOURCES = atf-run/config_test.cpp \
71                               atf-run/config.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)
74
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
78
79 tests_atf_run_PROGRAMS += atf-run/fs_test
80 atf_run_fs_test_SOURCES = atf-run/fs_test.cpp \
81                           atf-run/fs.cpp \
82                           atf-run/user.cpp
83 atf_run_fs_test_LDADD = $(ATF_CXX_LIBS)
84
85 tests_atf_run_PROGRAMS += atf-run/io_test
86 atf_run_io_test_SOURCES = atf-run/io_test.cpp \
87                           atf-run/io.cpp \
88                           atf-run/signals.cpp
89 atf_run_io_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
90
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)
94
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)
98
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
102
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 \
106                                     atf-run/user.cpp
107 atf_run_requirements_test_LDADD = $(ATF_CXX_LIBS)
108
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)
112
113 tests_atf_run_PROGRAMS += atf-run/test_program_test
114 atf_run_test_program_test_SOURCES = atf-run/test_program_test.cpp \
115                                     atf-run/fs.cpp \
116                                     atf-run/io.cpp \
117                                     atf-run/requirements.cpp \
118                                     atf-run/signals.cpp \
119                                     atf-run/test-program.cpp \
120                                     atf-run/timer.cpp \
121                                     atf-run/user.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)
124
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)
128
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
132
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)
140
141 hooksdir = $(pkgdatadir)
142 hooks_DATA = atf-run/share/atf-run.hooks
143 EXTRA_DIST += $(hooks_DATA)
144
145 egdir = $(atf_egdir)
146 eg_DATA = atf-run/sample/atf-run.hooks
147 eg_DATA += atf-run/sample/common.conf
148 EXTRA_DIST += $(eg_DATA)
149
150 # vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8