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 check_PROGRAMS = bootstrap/h_app_empty
31 bootstrap_h_app_empty_SOURCES = bootstrap/h_app_empty.cpp
32 bootstrap_h_app_empty_LDADD = $(ATF_CXX_LIBS)
34 check_PROGRAMS += bootstrap/h_app_opts_args
35 bootstrap_h_app_opts_args_SOURCES = bootstrap/h_app_opts_args.cpp
36 bootstrap_h_app_opts_args_LDADD = $(ATF_CXX_LIBS)
38 check_PROGRAMS += bootstrap/h_tp_basic_c
39 bootstrap_h_tp_basic_c_SOURCES = bootstrap/h_tp_basic_c.c
40 bootstrap_h_tp_basic_c_LDADD = libatf-c.la
42 check_PROGRAMS += bootstrap/h_tp_basic_cpp
43 bootstrap_h_tp_basic_cpp_SOURCES = bootstrap/h_tp_basic_cpp.cpp
44 bootstrap_h_tp_basic_cpp_LDADD = $(ATF_CXX_LIBS)
46 check_SCRIPTS = bootstrap/h_tp_basic_sh
47 CLEANFILES += bootstrap/h_tp_basic_sh
48 EXTRA_DIST += bootstrap/h_tp_basic_sh.sh
49 bootstrap/h_tp_basic_sh: $(srcdir)/bootstrap/h_tp_basic_sh.sh
50 test -d bootstrap || mkdir -p bootstrap
51 @src=$(srcdir)/bootstrap/h_tp_basic_sh.sh; dst=$@; $(BUILD_SH_TP)
53 check_SCRIPTS += bootstrap/h_tp_atf_check_sh
54 CLEANFILES += bootstrap/h_tp_atf_check_sh
55 EXTRA_DIST += bootstrap/h_tp_atf_check_sh.sh
56 bootstrap/h_tp_atf_check_sh: \
57 $(srcdir)/bootstrap/h_tp_atf_check_sh.sh
58 test -d bootstrap || mkdir -p bootstrap
59 @src=$(srcdir)/bootstrap/h_tp_atf_check_sh.sh; dst=$@; $(BUILD_SH_TP)
61 check_SCRIPTS += bootstrap/h_tp_fail
62 CLEANFILES += bootstrap/h_tp_fail
63 EXTRA_DIST += bootstrap/h_tp_fail.sh
64 bootstrap/h_tp_fail: $(srcdir)/bootstrap/h_tp_fail.sh
65 test -d bootstrap || mkdir -p bootstrap
66 @src=$(srcdir)/bootstrap/h_tp_fail.sh; dst=$@; $(BUILD_SH_TP)
68 check_SCRIPTS += bootstrap/h_tp_pass
69 CLEANFILES += bootstrap/h_tp_pass
70 EXTRA_DIST += bootstrap/h_tp_pass.sh
71 bootstrap/h_tp_pass: $(srcdir)/bootstrap/h_tp_pass.sh
72 test -d bootstrap || mkdir -p bootstrap
73 @src=$(srcdir)/bootstrap/h_tp_pass.sh; dst=$@; $(BUILD_SH_TP)
83 EXTRA_DIST += bootstrap/testsuite \
84 bootstrap/package.m4 \
85 bootstrap/testsuite.at \
88 testsuite_incs= $(srcdir)/bootstrap/t_application_help.at \
89 $(srcdir)/bootstrap/t_application_opts_args.at \
90 $(srcdir)/bootstrap/t_atf_config.at \
91 $(srcdir)/bootstrap/t_atf_run.at \
92 $(srcdir)/bootstrap/t_subr_atf_check.at \
93 $(srcdir)/bootstrap/t_test_program_compare.at \
94 $(srcdir)/bootstrap/t_test_program_filter.at \
95 $(srcdir)/bootstrap/t_test_program_list.at \
96 $(srcdir)/bootstrap/t_test_program_run.at
98 @target_srcdir@bootstrap/package.m4: $(top_srcdir)/configure.ac
100 echo '# Signature of the current package.'; \
101 echo 'm4_define(AT_PACKAGE_NAME, @PACKAGE_NAME@)'; \
102 echo 'm4_define(AT_PACKAGE_TARNAME, @PACKAGE_TARNAME@)'; \
103 echo 'm4_define(AT_PACKAGE_VERSION, @PACKAGE_VERSION@)'; \
104 echo 'm4_define(AT_PACKAGE_STRING, @PACKAGE_STRING@)'; \
105 echo 'm4_define(AT_PACKAGE_BUGREPORT, @PACKAGE_BUGREPORT@)'; \
106 echo 'm4_define(ENABLE_TOOLS, @ENABLE_TOOLS@)'; \
107 } >$(srcdir)/bootstrap/package.m4
109 @target_srcdir@bootstrap/testsuite: $(srcdir)/bootstrap/testsuite.at \
111 @target_srcdir@bootstrap/package.m4
112 autom4te --language=Autotest -I $(srcdir) \
113 -I $(srcdir)/bootstrap \
114 $(srcdir)/bootstrap/testsuite.at -o $@.tmp
117 INSTALLCHECK_TARGETS += installcheck-bootstrap
118 PHONY_TARGETS += installcheck-bootstrap
119 installcheck-bootstrap: @target_srcdir@bootstrap/testsuite check
120 $(TESTS_ENVIRONMENT) $(srcdir)/bootstrap/testsuite
122 # vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8