1#
2# Automated Testing Framework (atf)
3#
4# Copyright (c) 2007, 2008, 2009, 2010 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
30libexec_PROGRAMS += atf-sh/atf-check
31atf_sh_atf_check_SOURCES = atf-sh/atf-check.cpp
32atf_sh_atf_check_LDADD = libatf-c++.la
33dist_man_MANS += atf-sh/atf-check.1
34
35bin_PROGRAMS += atf-sh/atf-sh
36atf_sh_atf_sh_SOURCES = atf-sh/atf-sh.cpp
37atf_sh_atf_sh_LDADD = libatf-c++.la
38dist_man_MANS += atf-sh/atf-sh.1
39
40atf_sh_DATA = atf-sh/libatf-sh.subr
41atf_shdir = $(pkgdatadir)
42EXTRA_DIST += $(atf_sh_DATA)
43
44dist_man_MANS += atf-sh/atf-sh-api.3
45
46tests_atf_sh_DATA = atf-sh/Atffile
47tests_atf_shdir = $(pkgtestsdir)/atf-sh
48EXTRA_DIST += $(tests_atf_sh_DATA)
49
50tests_atf_sh_SCRIPTS = atf-sh/misc_helpers
51CLEANFILES += atf-sh/misc_helpers
52EXTRA_DIST += atf-sh/misc_helpers.sh
53atf-sh/misc_helpers: $(srcdir)/atf-sh/misc_helpers.sh
54	test -d atf-sh || mkdir -p atf-sh
55	@src="$(srcdir)/atf-sh/misc_helpers.sh"; \
56	dst="atf-sh/misc_helpers"; $(BUILD_SH_TP)
57
58tests_atf_sh_SCRIPTS += atf-sh/atf_check_test
59CLEANFILES += atf-sh/atf_check_test
60EXTRA_DIST += atf-sh/atf_check_test.sh
61atf-sh/atf_check_test: $(srcdir)/atf-sh/atf_check_test.sh
62	test -d atf-sh || mkdir -p atf-sh
63	@src="$(srcdir)/atf-sh/atf_check_test.sh"; \
64	dst="atf-sh/atf_check_test"; $(BUILD_SH_TP)
65
66tests_atf_sh_SCRIPTS += atf-sh/atf-check_test
67CLEANFILES += atf-sh/atf-check_test
68EXTRA_DIST += atf-sh/atf-check_test.sh
69atf-sh/atf-check_test: $(srcdir)/atf-sh/atf-check_test.sh
70	test -d atf-sh || mkdir -p atf-sh
71	@src="$(srcdir)/atf-sh/atf-check_test.sh"; \
72	dst="atf-sh/atf-check_test"; $(BUILD_SH_TP)
73
74tests_atf_sh_SCRIPTS += atf-sh/config_test
75CLEANFILES += atf-sh/config_test
76EXTRA_DIST += atf-sh/config_test.sh
77atf-sh/config_test: $(srcdir)/atf-sh/config_test.sh
78	test -d atf-sh || mkdir -p atf-sh
79	@src="$(srcdir)/atf-sh/config_test.sh"; \
80	dst="atf-sh/config_test"; $(BUILD_SH_TP)
81
82tests_atf_sh_SCRIPTS += atf-sh/integration_test
83CLEANFILES += atf-sh/integration_test
84EXTRA_DIST += atf-sh/integration_test.sh
85atf-sh/integration_test: $(srcdir)/atf-sh/integration_test.sh
86	test -d atf-sh || mkdir -p atf-sh
87	@src="$(srcdir)/atf-sh/integration_test.sh"; \
88	dst="atf-sh/integration_test"; $(BUILD_SH_TP)
89
90tests_atf_sh_SCRIPTS += atf-sh/normalize_test
91CLEANFILES += atf-sh/normalize_test
92EXTRA_DIST += atf-sh/normalize_test.sh
93atf-sh/normalize_test: $(srcdir)/atf-sh/normalize_test.sh
94	test -d atf-sh || mkdir -p atf-sh
95	@src="$(srcdir)/atf-sh/normalize_test.sh"; \
96	dst="atf-sh/normalize_test"; $(BUILD_SH_TP)
97
98tests_atf_sh_SCRIPTS += atf-sh/tc_test
99CLEANFILES += atf-sh/tc_test
100EXTRA_DIST += atf-sh/tc_test.sh
101atf-sh/tc_test: $(srcdir)/atf-sh/tc_test.sh
102	test -d atf-sh || mkdir -p atf-sh
103	@src="$(srcdir)/atf-sh/tc_test.sh"; \
104	dst="atf-sh/tc_test"; $(BUILD_SH_TP)
105
106tests_atf_sh_SCRIPTS += atf-sh/tp_test
107CLEANFILES += atf-sh/tp_test
108EXTRA_DIST += atf-sh/tp_test.sh
109atf-sh/tp_test: $(srcdir)/atf-sh/tp_test.sh
110	test -d atf-sh || mkdir -p atf-sh
111	@src="$(srcdir)/atf-sh/tp_test.sh"; \
112	dst="atf-sh/tp_test"; $(BUILD_SH_TP)
113
114# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
115