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 30bin_PROGRAMS += atf-run/atf-run 31atf_run_atf_run_SOURCES = atf-run/atf-run.cpp \ 32 atf-run/atffile.cpp \ 33 atf-run/atffile.hpp \ 34 atf-run/config.cpp \ 35 atf-run/config.hpp \ 36 atf-run/fs.cpp \ 37 atf-run/fs.hpp \ 38 atf-run/io.cpp \ 39 atf-run/io.hpp \ 40 atf-run/requirements.cpp \ 41 atf-run/requirements.hpp \ 42 atf-run/signals.cpp \ 43 atf-run/signals.hpp \ 44 atf-run/test-program.cpp \ 45 atf-run/test-program.hpp \ 46 atf-run/timer.cpp \ 47 atf-run/timer.hpp \ 48 atf-run/user.cpp \ 49 atf-run/user.hpp 50atf_run_atf_run_LDADD = libatf-c++.la 51dist_man_MANS += atf-run/atf-run.1 52 53tests_atf_run_DATA = atf-run/Atffile 54tests_atf_rundir = $(pkgtestsdir)/atf-run 55EXTRA_DIST += $(tests_atf_run_DATA) 56 57tests_atf_run_PROGRAMS = atf-run/atffile_test 58atf_run_atffile_test_SOURCES = atf-run/atffile_test.cpp \ 59 atf-run/atffile.cpp 60atf_run_atffile_test_CPPFLAGS = -I$(srcdir)/atf-c++/detail 61atf_run_atffile_test_LDADD = atf-c++/detail/libtest_helpers.la libatf-c++.la 62 63tests_atf_run_PROGRAMS += atf-run/bad_metadata_helper 64atf_run_bad_metadata_helper_SOURCES = atf-run/bad_metadata_helper.c 65atf_run_bad_metadata_helper_LDADD = libatf-c.la 66 67tests_atf_run_PROGRAMS += atf-run/config_test 68atf_run_config_test_SOURCES = atf-run/config_test.cpp \ 69 atf-run/config.cpp 70atf_run_config_test_CPPFLAGS = -I$(srcdir)/atf-c++/detail 71atf_run_config_test_LDADD = atf-c++/detail/libtest_helpers.la libatf-c++.la 72 73tests_atf_run_PROGRAMS += atf-run/expect_helpers 74atf_run_expect_helpers_SOURCES = atf-run/expect_helpers.c 75atf_run_expect_helpers_LDADD = libatf-c.la 76 77tests_atf_run_PROGRAMS += atf-run/fs_test 78atf_run_fs_test_SOURCES = atf-run/fs_test.cpp \ 79 atf-run/fs.cpp \ 80 atf-run/user.cpp 81atf_run_fs_test_LDADD = libatf-c++.la 82 83tests_atf_run_PROGRAMS += atf-run/io_test 84atf_run_io_test_SOURCES = atf-run/io_test.cpp \ 85 atf-run/io.cpp \ 86 atf-run/signals.cpp 87atf_run_io_test_LDADD = atf-c++/detail/libtest_helpers.la libatf-c++.la 88 89tests_atf_run_PROGRAMS += atf-run/misc_helpers 90atf_run_misc_helpers_SOURCES = atf-run/misc_helpers.cpp 91atf_run_misc_helpers_LDADD = libatf-c++.la 92 93tests_atf_run_PROGRAMS += atf-run/pass_helper 94atf_run_pass_helper_SOURCES = atf-run/pass_helper.cpp 95atf_run_pass_helper_LDADD = libatf-c++.la 96 97tests_atf_run_PROGRAMS += atf-run/several_tcs_helper 98atf_run_several_tcs_helper_SOURCES = atf-run/several_tcs_helper.c 99atf_run_several_tcs_helper_LDADD = libatf-c.la 100 101tests_atf_run_PROGRAMS += atf-run/requirements_test 102atf_run_requirements_test_SOURCES = atf-run/requirements_test.cpp \ 103 atf-run/requirements.cpp \ 104 atf-run/user.cpp 105atf_run_requirements_test_LDADD = libatf-c++.la 106 107tests_atf_run_PROGRAMS += atf-run/signals_test 108atf_run_signals_test_SOURCES = atf-run/signals_test.cpp atf-run/signals.cpp 109atf_run_signals_test_LDADD = libatf-c++.la 110 111tests_atf_run_PROGRAMS += atf-run/test_program_test 112atf_run_test_program_test_SOURCES = atf-run/test_program_test.cpp \ 113 atf-run/fs.cpp \ 114 atf-run/io.cpp \ 115 atf-run/requirements.cpp \ 116 atf-run/signals.cpp \ 117 atf-run/test-program.cpp \ 118 atf-run/timer.cpp \ 119 atf-run/user.cpp 120atf_run_test_program_test_CPPFLAGS = -I$(srcdir)/atf-c++/detail 121atf_run_test_program_test_LDADD = atf-c++/detail/libtest_helpers.la libatf-c++.la 122 123tests_atf_run_PROGRAMS += atf-run/user_test 124atf_run_user_test_SOURCES = atf-run/user_test.cpp atf-run/user.cpp 125atf_run_user_test_LDADD = libatf-c++.la 126 127tests_atf_run_PROGRAMS += atf-run/zero_tcs_helper 128atf_run_zero_tcs_helper_SOURCES = atf-run/zero_tcs_helper.c 129atf_run_zero_tcs_helper_LDADD = libatf-c.la 130 131tests_atf_run_SCRIPTS = atf-run/integration_test 132CLEANFILES += atf-run/integration_test 133EXTRA_DIST += atf-run/integration_test.sh 134atf-run/integration_test: $(srcdir)/atf-run/integration_test.sh 135 test -d atf-run || mkdir -p atf-run 136 @src="$(srcdir)/atf-run/integration_test.sh"; \ 137 dst="atf-run/integration_test"; $(BUILD_SH_TP) 138 139hooksdir = $(pkgdatadir) 140hooks_DATA = atf-run/share/atf-run.hooks 141EXTRA_DIST += $(hooks_DATA) 142 143egdir = $(atf_egdir) 144eg_DATA = atf-run/sample/atf-run.hooks 145eg_DATA += atf-run/sample/common.conf 146EXTRA_DIST += $(eg_DATA) 147 148# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8 149