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