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 30check_PROGRAMS = bootstrap/h_app_empty 31bootstrap_h_app_empty_SOURCES = bootstrap/h_app_empty.cpp 32bootstrap_h_app_empty_LDADD = libatf-c++.la 33 34check_PROGRAMS += bootstrap/h_app_opts_args 35bootstrap_h_app_opts_args_SOURCES = bootstrap/h_app_opts_args.cpp 36bootstrap_h_app_opts_args_LDADD = libatf-c++.la 37 38check_PROGRAMS += bootstrap/h_tp_basic_c 39bootstrap_h_tp_basic_c_SOURCES = bootstrap/h_tp_basic_c.c 40bootstrap_h_tp_basic_c_LDADD = libatf-c.la 41 42check_PROGRAMS += bootstrap/h_tp_basic_cpp 43bootstrap_h_tp_basic_cpp_SOURCES = bootstrap/h_tp_basic_cpp.cpp 44bootstrap_h_tp_basic_cpp_LDADD = libatf-c++.la 45 46check_SCRIPTS = bootstrap/h_tp_basic_sh 47CLEANFILES += bootstrap/h_tp_basic_sh 48EXTRA_DIST += bootstrap/h_tp_basic_sh.sh 49bootstrap/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) 52 53check_SCRIPTS += bootstrap/h_tp_atf_check_sh 54CLEANFILES += bootstrap/h_tp_atf_check_sh 55EXTRA_DIST += bootstrap/h_tp_atf_check_sh.sh 56bootstrap/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) 60 61check_SCRIPTS += bootstrap/h_tp_fail 62CLEANFILES += bootstrap/h_tp_fail 63EXTRA_DIST += bootstrap/h_tp_fail.sh 64bootstrap/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) 67 68check_SCRIPTS += bootstrap/h_tp_pass 69CLEANFILES += bootstrap/h_tp_pass 70EXTRA_DIST += bootstrap/h_tp_pass.sh 71bootstrap/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) 74 75DISTCLEANFILES = \ 76 bootstrap/atconfig \ 77 testsuite.lineno \ 78 testsuite.log 79 80distclean-local: 81 -rm -rf testsuite.dir 82 83EXTRA_DIST += bootstrap/testsuite \ 84 bootstrap/package.m4 \ 85 bootstrap/testsuite.at \ 86 $(testsuite_incs) 87 88testsuite_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 97 98@target_srcdir@bootstrap/package.m4: $(top_srcdir)/configure.ac 99 { \ 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 } >$(srcdir)/bootstrap/package.m4 107 108@target_srcdir@bootstrap/testsuite: $(srcdir)/bootstrap/testsuite.at \ 109 $(testsuite_incs) \ 110 @target_srcdir@bootstrap/package.m4 111 autom4te --language=Autotest -I $(srcdir) \ 112 -I $(srcdir)/bootstrap \ 113 $(srcdir)/bootstrap/testsuite.at -o $@.tmp 114 mv $@.tmp $@ 115 116installcheck-local: installcheck-bootstrap 117.PHONY: installcheck-bootstrap 118installcheck-bootstrap: @target_srcdir@bootstrap/testsuite check 119 $(TESTS_ENVIRONMENT) $(srcdir)/bootstrap/testsuite 120 121# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8 122