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 30tests_test_programs_DATA = test-programs/Atffile 31tests_test_programsdir = $(pkgtestsdir)/test-programs 32EXTRA_DIST += $(tests_test_programs_DATA) 33 34tests_test_programs_PROGRAMS = test-programs/c_helpers 35test_programs_c_helpers_SOURCES = test-programs/c_helpers.c 36test_programs_c_helpers_LDADD = libatf-c.la 37 38tests_test_programs_PROGRAMS += test-programs/cpp_helpers 39test_programs_cpp_helpers_SOURCES = test-programs/cpp_helpers.cpp 40test_programs_cpp_helpers_LDADD = libatf-c++.la 41 42common_sh = $(srcdir)/test-programs/common.sh 43EXTRA_DIST += test-programs/common.sh 44 45tests_test_programs_SCRIPTS = test-programs/sh_helpers 46CLEANFILES += test-programs/sh_helpers 47EXTRA_DIST += test-programs/sh_helpers.sh 48test-programs/sh_helpers: $(srcdir)/test-programs/sh_helpers.sh 49 test -d test-programs || mkdir -p test-programs 50 @src="$(srcdir)/test-programs/sh_helpers.sh $(common_sh)"; \ 51 dst="test-programs/sh_helpers"; $(BUILD_SH_TP) 52 53tests_test_programs_SCRIPTS += test-programs/config_test 54CLEANFILES += test-programs/config_test 55EXTRA_DIST += test-programs/config_test.sh 56test-programs/config_test: $(srcdir)/test-programs/config_test.sh 57 test -d test-programs || mkdir -p test-programs 58 @src="$(srcdir)/test-programs/config_test.sh $(common_sh)"; \ 59 dst="test-programs/config_test"; $(BUILD_SH_TP) 60 61tests_test_programs_SCRIPTS += test-programs/expect_test 62CLEANFILES += test-programs/expect_test 63EXTRA_DIST += test-programs/expect_test.sh 64test-programs/expect_test: $(srcdir)/test-programs/expect_test.sh 65 test -d test-programs || mkdir -p test-programs 66 @src="$(srcdir)/test-programs/expect_test.sh $(common_sh)"; \ 67 dst="test-programs/expect_test"; $(BUILD_SH_TP) 68 69tests_test_programs_SCRIPTS += test-programs/fork_test 70CLEANFILES += test-programs/fork_test 71EXTRA_DIST += test-programs/fork_test.sh 72test-programs/fork_test: $(srcdir)/test-programs/fork_test.sh 73 test -d test-programs || mkdir -p test-programs 74 @src="$(srcdir)/test-programs/fork_test.sh $(common_sh)"; \ 75 dst="test-programs/fork_test"; $(BUILD_SH_TP) 76 77tests_test_programs_SCRIPTS += test-programs/meta_data_test 78CLEANFILES += test-programs/meta_data_test 79EXTRA_DIST += test-programs/meta_data_test.sh 80test-programs/meta_data_test: $(srcdir)/test-programs/meta_data_test.sh 81 test -d test-programs || mkdir -p test-programs 82 @src="$(srcdir)/test-programs/meta_data_test.sh $(common_sh)"; \ 83 dst="test-programs/meta_data_test"; $(BUILD_SH_TP) 84 85tests_test_programs_SCRIPTS += test-programs/result_test 86CLEANFILES += test-programs/result_test 87EXTRA_DIST += test-programs/result_test.sh 88test-programs/result_test: $(srcdir)/test-programs/result_test.sh 89 test -d test-programs || mkdir -p test-programs 90 @src="$(srcdir)/test-programs/result_test.sh $(common_sh)"; \ 91 dst="test-programs/result_test"; $(BUILD_SH_TP) 92 93tests_test_programs_SCRIPTS += test-programs/srcdir_test 94CLEANFILES += test-programs/srcdir_test 95EXTRA_DIST += test-programs/srcdir_test.sh 96test-programs/srcdir_test: $(srcdir)/test-programs/srcdir_test.sh 97 test -d test-programs || mkdir -p test-programs 98 @src="$(srcdir)/test-programs/srcdir_test.sh $(common_sh)"; \ 99 dst="test-programs/srcdir_test"; $(BUILD_SH_TP) 100 101# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8 102