aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2014-02-14 14:44:03 +0000
committerJulio Merino <jmmv@FreeBSD.org>2014-02-14 14:44:03 +0000
commit9b3afb9f3c00ca9da97167e29f437bdd3036da1a (patch)
tree907c960968fce28b8ca3cb9367140ed92c404150
parent8fee91db34c6746951ced9a348b36c5b758d576e (diff)
downloadsrc-9b3afb9f3c00ca9da97167e29f437bdd3036da1a.tar.gz
src-9b3afb9f3c00ca9da97167e29f437bdd3036da1a.zip
Import atf-0.20:vendor/atf/atf-0.20
Experimental version released on February 7th, 2014. This is the first release without the code for the deprecated tools. If you require such code, please fetch a copy of the 0.19 release and extract the 'tools' directory for your own consumption. * Removed the deprecated tools. This includes atf-config, atf-report, atf-run and atf-version.
Notes
Notes: svn path=/vendor/atf/dist/; revision=261888 svn path=/vendor/atf/atf-0.20/; revision=261889; tag=vendor/atf/atf-0.20
-rw-r--r--Atffile10
-rw-r--r--INSTALL43
-rw-r--r--Kyuafile4
-rw-r--r--Makefile.am44
-rw-r--r--Makefile.in2102
-rw-r--r--NEWS13
-rw-r--r--README27
-rw-r--r--aclocal.m41
-rwxr-xr-xadmin/check-style.sh2
-rw-r--r--atf-c++/Atffile14
-rw-r--r--atf-c++/Makefile.am.inc3
-rw-r--r--atf-c++/detail/Atffile11
-rw-r--r--atf-c++/detail/Makefile.am.inc3
-rw-r--r--atf-c/Atffile16
-rw-r--r--atf-c/Makefile.am.inc5
-rw-r--r--atf-c/detail/Atffile13
-rw-r--r--atf-c/detail/Makefile.am.inc3
-rw-r--r--atf-sh/Atffile11
-rw-r--r--atf-sh/Makefile.am.inc3
-rw-r--r--bconfig.h.in3
-rw-r--r--bootstrap/Makefile.am.inc17
-rw-r--r--bootstrap/h_app_empty.cpp62
-rw-r--r--bootstrap/h_app_opts_args.cpp102
-rw-r--r--bootstrap/package.m45
-rw-r--r--bootstrap/t_application_help.at40
-rw-r--r--bootstrap/t_application_opts_args.at86
-rw-r--r--bootstrap/t_atf_config.at108
-rw-r--r--bootstrap/t_atf_run.at178
-rwxr-xr-xbootstrap/testsuite2487
-rw-r--r--bootstrap/testsuite.at7
-rwxr-xr-xconfigure301
-rw-r--r--configure.ac58
-rw-r--r--m4/module-signals.m486
-rw-r--r--test-programs/Atffile9
-rw-r--r--test-programs/Makefile.am.inc3
-rw-r--r--tools/Atffile25
-rw-r--r--tools/Kyuafile24
-rw-r--r--tools/Makefile.am.inc332
-rw-r--r--tools/application.cpp317
-rw-r--r--tools/application.hpp113
-rw-r--r--tools/application_test.cpp94
-rw-r--r--tools/atf-config.1184
-rw-r--r--tools/atf-config.cpp140
-rwxr-xr-xtools/atf-config_test.sh180
-rw-r--r--tools/atf-formats.5231
-rw-r--r--tools/atf-report.1168
-rw-r--r--tools/atf-report.cpp710
-rwxr-xr-xtools/atf-report_test.sh449
-rw-r--r--tools/atf-run.1202
-rw-r--r--tools/atf-run.cpp567
-rwxr-xr-xtools/atf-run_test.sh1134
-rw-r--r--tools/atf-version.156
-rw-r--r--tools/atf-version.cpp91
-rw-r--r--tools/atf.7.in192
-rw-r--r--tools/atffile.cpp348
-rw-r--r--tools/atffile.hpp92
-rw-r--r--tools/atffile_test.cpp636
-rw-r--r--tools/auto_array.hpp179
-rw-r--r--tools/auto_array_test.cpp303
-rw-r--r--tools/bad_metadata_helper.c38
-rw-r--r--tools/config.cpp135
-rw-r--r--tools/config.hpp75
-rw-r--r--tools/config_file.cpp223
-rw-r--r--tools/config_file.hpp66
-rw-r--r--tools/config_file_test.cpp395
-rw-r--r--tools/config_test.cpp221
-rw-r--r--tools/defs.hpp.in37
-rw-r--r--tools/env.cpp102
-rw-r--r--tools/env.hpp84
-rw-r--r--tools/env_test.cpp91
-rw-r--r--tools/exceptions.cpp74
-rw-r--r--tools/exceptions.hpp93
-rw-r--r--tools/expand.cpp81
-rw-r--r--tools/expand.hpp82
-rw-r--r--tools/expand_test.cpp272
-rw-r--r--tools/expect_helpers.c193
-rw-r--r--tools/fail_helper.cpp45
-rw-r--r--tools/fs.cpp744
-rw-r--r--tools/fs.hpp377
-rw-r--r--tools/fs_test.cpp743
-rwxr-xr-xtools/generate-revision.sh142
-rw-r--r--tools/io.cpp356
-rw-r--r--tools/io.hpp436
-rw-r--r--tools/io_test.cpp471
-rw-r--r--tools/misc_helpers.cpp448
-rw-r--r--tools/parser.cpp384
-rw-r--r--tools/parser.hpp607
-rw-r--r--tools/parser_test.cpp1043
-rw-r--r--tools/pass_helper.cpp44
-rw-r--r--tools/process.cpp492
-rw-r--r--tools/process.hpp324
-rw-r--r--tools/process_helpers.c117
-rw-r--r--tools/process_test.cpp360
-rw-r--r--tools/reader.cpp440
-rw-r--r--tools/reader.hpp89
-rw-r--r--tools/reader_test.cpp987
-rw-r--r--tools/requirements.cpp325
-rw-r--r--tools/requirements.hpp47
-rw-r--r--tools/requirements_test.cpp400
-rw-r--r--tools/sample/atf-run.hooks23
-rw-r--r--tools/sample/common.conf11
-rw-r--r--tools/several_tcs_helper.c67
-rw-r--r--tools/share/atf-run.hooks94
-rw-r--r--tools/signals.cpp146
-rw-r--r--tools/signals.hpp92
-rw-r--r--tools/signals_test.cpp275
-rw-r--r--tools/test-program.cpp790
-rw-r--r--tools/test-program.hpp157
-rw-r--r--tools/test_helpers.hpp116
-rw-r--r--tools/test_program_test.cpp1023
-rw-r--r--tools/tests-results.css199
-rw-r--r--tools/tests-results.dtd61
-rw-r--r--tools/tests-results.xsl564
-rw-r--r--tools/text.cpp158
-rw-r--r--tools/text.hpp153
-rw-r--r--tools/text_test.cpp390
-rw-r--r--tools/timers.cpp211
-rw-r--r--tools/timers.hpp83
-rw-r--r--tools/ui.cpp172
-rw-r--r--tools/ui.hpp105
-rw-r--r--tools/ui_test.cpp462
-rw-r--r--tools/user.cpp102
-rw-r--r--tools/user.hpp52
-rw-r--r--tools/user_test.cpp148
-rw-r--r--tools/zero_tcs_helper.c36
125 files changed, 160 insertions, 29860 deletions
diff --git a/Atffile b/Atffile
deleted file mode 100644
index 4d7aed7756de..000000000000
--- a/Atffile
+++ /dev/null
@@ -1,10 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: atf-c
-tp: atf-c++
-tp: atf-sh
-tp: test-programs
-
-tp-glob: tools*
diff --git a/INSTALL b/INSTALL
index 29eb48f6cdea..1f50bd860c32 100644
--- a/INSTALL
+++ b/INSTALL
@@ -94,14 +94,6 @@ The most common, standard flags given to 'configure' are:
Specifies where the program (binaries and all associated files) will
be installed.
-* --sysconfdir=directory
- Possible values: Any path
- Default: /usr/local/etc
-
- Specifies where the installed programs will look for configuration files.
- '/atf' will be appended to the given path unless ATF_CONFSUBDIR is
- redefined as explained later on.
-
* --help
Shows information about all available flags and exits immediately,
without running any configuration tasks.
@@ -152,14 +144,6 @@ script:
Specifies the C++ compiler flags that ATF will use at run time whenever
the build-time-specific checks are used.
-* ATF_CONFSUBDIR
- Possible values: empty, a relative path.
- Default: atf.
-
- Specifies the subdirectory of the configuration directory (given by the
- --sysconfdir argument) under which ATF will search for its configuration
- files.
-
* ATF_SHELL
Possible values: empty, absolute path to a POSIX shell interpreter.
Default: empty.
@@ -177,14 +161,6 @@ script:
and work directories for test cases. This is just a default and can be
overriden at run time.
-* GDB
- Possible values: empty, absolute path to GNU GDB.
- Default: empty.
-
- Specifies the path to the GNU GDB binary that atf-run will use to gather
- a stack trace of a crashing test program. If empty, the configure script
- will try to find a suitable binary for you.
-
The following flags are specific to ATF's 'configure' script:
* --enable-developer
@@ -199,25 +175,6 @@ The following flags are specific to ATF's 'configure' script:
detection features regardless of the value of this flag. However, such
warnings are only fatal when --enable-developer is 'yes'.
-* --enable-tools
- Possible values: yes, no
- Default: no.
-
- Enables the build of the deprecated atf-config, atf-report, atf-run
- and atf-version tools. atf-report and atf-run have been superseded by
- Kyua, and atf-config and atf-version are unnecessary.
-
-
-Post-installation steps
-***********************
-
-After installing ATF, you have to register the DTDs it provides into the
-system-wide XML catalog. See the comments at the top of the files in
-${datadir}/share/xml/atf to see the correct public identifiers. This
-directory will typically be /usr/local/share/xml/atf or /usr/share/xml/atf.
-Failure to do so will lead to further errors when processing the XML files
-generated by atf-report.
-
===========================================================================
vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2
diff --git a/Kyuafile b/Kyuafile
index 77125974a406..a65bb537d91e 100644
--- a/Kyuafile
+++ b/Kyuafile
@@ -6,7 +6,3 @@ include("atf-c/Kyuafile")
include("atf-c++/Kyuafile")
include("atf-sh/Kyuafile")
include("test-programs/Kyuafile")
-
-if fs.exists("tools/Kyuafile") then
- include("tools/Kyuafile")
-end
diff --git a/Makefile.am b/Makefile.am
index f90fc9949fd6..6187080fb304 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,7 +30,6 @@
atf_aclocal_DATA =
BUILT_SOURCES =
CLEANFILES =
-DIST_HOOKS =
EXTRA_DIST =
bin_PROGRAMS =
dist_man_MANS =
@@ -54,10 +53,6 @@ include bootstrap/Makefile.am.inc
include doc/Makefile.am.inc
include test-programs/Makefile.am.inc
-if ENABLE_TOOLS
-include tools/Makefile.am.inc
-endif
-
#
# Top-level distfile documents.
#
@@ -76,32 +71,9 @@ TESTS_ENVIRONMENT = PATH=$(prefix)/bin:$${PATH} \
testsdir = $(exec_prefix)/tests
pkgtestsdir = $(testsdir)/$(PACKAGE)
-if ENABLE_TOOLS
-INSTALLCHECK_TARGETS += installcheck-atf
-PHONY_TARGETS += installcheck-atf
-installcheck-atf:
- logfile=$$(pwd)/installcheck.log; \
- fifofile=$$(pwd)/installcheck.fifo; \
- cd $(pkgtestsdir); \
- rm -f $${fifofile}; \
- mkfifo $${fifofile}; \
- cat $${fifofile} | tee $${logfile} | $(TESTS_ENVIRONMENT) atf-report & \
- $(TESTS_ENVIRONMENT) atf-run >>$${fifofile}; \
- res=$${?}; \
- wait; \
- rm $${fifofile}; \
- echo; \
- echo "The verbatim output of atf-run has been saved to" \
- "installcheck.log; exit was $${res}"; \
- test $${res} -eq 0
-CLEANFILES += installcheck.fifo installcheck.log
-endif
-
PHONY_TARGETS += installcheck-kyua
if HAVE_KYUA
-if !ENABLE_TOOLS
INSTALLCHECK_TARGETS += installcheck-kyua
-endif
installcheck-kyua:
cd $(pkgtestsdir) && $(TESTS_ENVIRONMENT) $(KYUA) test
endif
@@ -109,9 +81,6 @@ endif
installcheck-local: $(INSTALLCHECK_TARGETS)
pkgtests_DATA = Kyuafile
-if ENABLE_TOOLS
-pkgtests_DATA += Atffile
-endif
EXTRA_DIST += $(pkgtests_DATA)
BUILD_SH_TP = \
@@ -124,17 +93,6 @@ BUILD_SH_TP = \
# Custom targets.
#
-DIST_HOOKS += forbid-dist
-if ENABLE_TOOLS
-forbid-dist:
- @true
-else
-forbid-dist:
- @echo "Sorry; cannot make dist without the tools enabled."
- @echo "Please reconfigure with --enable-tools."
- @false
-endif
-
PHONY_TARGETS += clean-all
clean-all:
GIT="$(GIT)" $(SH) $(srcdir)/admin/clean-all.sh
@@ -149,6 +107,4 @@ release-test:
.PHONY: $(PHONY_TARGETS)
-dist-hook: $(DIST_HOOKS)
-
# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
diff --git a/Makefile.in b/Makefile.in
index a98fc3570567..c8f9d68515e3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -304,36 +304,6 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-#
-# Automated Testing Framework (atf)
-#
-# Copyright (c) 2007 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-
@@ -403,7 +373,7 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
-bin_PROGRAMS = atf-sh/atf-sh$(EXEEXT) $(am__EXEEXT_1)
+bin_PROGRAMS = atf-sh/atf-sh$(EXEEXT)
libexec_PROGRAMS = atf-sh/atf-check$(EXEEXT)
DIST_COMMON = $(srcdir)/admin/Makefile.am.inc \
$(srcdir)/atf-c/Makefile.am.inc \
@@ -413,17 +383,16 @@ DIST_COMMON = $(srcdir)/admin/Makefile.am.inc \
$(srcdir)/atf-sh/Makefile.am.inc \
$(srcdir)/bootstrap/Makefile.am.inc \
$(srcdir)/doc/Makefile.am.inc \
- $(srcdir)/test-programs/Makefile.am.inc \
- $(srcdir)/tools/Makefile.am.inc $(srcdir)/Makefile.in \
+ $(srcdir)/test-programs/Makefile.am.inc $(srcdir)/Makefile.in \
$(srcdir)/Makefile.am $(top_srcdir)/configure \
$(am__configure_deps) $(srcdir)/bconfig.h.in \
- $(top_srcdir)/atf-c/defs.h.in $(top_srcdir)/tools/defs.hpp.in \
- $(top_srcdir)/admin/depcomp $(dist_man_MANS) $(atf_c_HEADERS) \
- $(atf_c___HEADERS) $(include_HEADERS) AUTHORS COPYING INSTALL \
- NEWS README admin/ar-lib admin/compile admin/config.guess \
- admin/config.sub admin/depcomp admin/install-sh admin/missing \
- admin/ltmain.sh $(top_srcdir)/admin/ar-lib \
- $(top_srcdir)/admin/compile $(top_srcdir)/admin/config.guess \
+ $(top_srcdir)/atf-c/defs.h.in $(top_srcdir)/admin/depcomp \
+ $(dist_man_MANS) $(atf_c_HEADERS) $(atf_c___HEADERS) \
+ $(include_HEADERS) AUTHORS COPYING INSTALL NEWS README \
+ admin/ar-lib admin/compile admin/config.guess admin/config.sub \
+ admin/depcomp admin/install-sh admin/missing admin/ltmain.sh \
+ $(top_srcdir)/admin/ar-lib $(top_srcdir)/admin/compile \
+ $(top_srcdir)/admin/config.guess \
$(top_srcdir)/admin/config.sub $(top_srcdir)/admin/install-sh \
$(top_srcdir)/admin/ltmain.sh $(top_srcdir)/admin/missing
tests_atf_c_PROGRAMS = atf-c/atf_c_test$(EXEEXT) \
@@ -454,67 +423,11 @@ tests_atf_c___detail_PROGRAMS = \
atf-c++/detail/sanity_test$(EXEEXT) \
atf-c++/detail/text_test$(EXEEXT) \
atf-c++/detail/version_helper$(EXEEXT)
-check_PROGRAMS = bootstrap/h_app_empty$(EXEEXT) \
- bootstrap/h_app_opts_args$(EXEEXT) \
- bootstrap/h_tp_basic_c$(EXEEXT) \
+check_PROGRAMS = bootstrap/h_tp_basic_c$(EXEEXT) \
bootstrap/h_tp_basic_cpp$(EXEEXT)
tests_test_programs_PROGRAMS = test-programs/c_helpers$(EXEEXT) \
test-programs/cpp_helpers$(EXEEXT)
-
-# XXX For some reason, the nodist line above does not work as expected.
-# Work this problem around.
-@ENABLE_TOOLS_TRUE@am__append_1 = kill-defs-hpp
-@ENABLE_TOOLS_TRUE@am__append_2 = tools/atf-config tools/atf-report \
-@ENABLE_TOOLS_TRUE@ tools/atf-run tools/atf-version
-@ENABLE_TOOLS_TRUE@am__append_3 = tools/atf-config.1 \
-@ENABLE_TOOLS_TRUE@ tools/atf-report.1 tools/atf-run.1 \
-@ENABLE_TOOLS_TRUE@ tools/atf-version.1 tools/atf-formats.5
-@ENABLE_TOOLS_TRUE@am__append_4 = tools/generate-revision.sh \
-@ENABLE_TOOLS_TRUE@ tools/atf.7.in $(css_DATA) $(dtd_DATA) \
-@ENABLE_TOOLS_TRUE@ $(eg_DATA) $(hooks_DATA) $(xsl_DATA) \
-@ENABLE_TOOLS_TRUE@ $(tests_tools_DATA) \
-@ENABLE_TOOLS_TRUE@ tools/atf-config_test.sh \
-@ENABLE_TOOLS_TRUE@ tools/atf-report_test.sh \
-@ENABLE_TOOLS_TRUE@ tools/atf-run_test.sh
-@ENABLE_TOOLS_TRUE@am__append_5 = tools/revision.h
-@ENABLE_TOOLS_TRUE@am__append_6 = tools/revision.h \
-@ENABLE_TOOLS_TRUE@ tools/revision.h.stamp tools/atf.7 \
-@ENABLE_TOOLS_TRUE@ tools/atf-config_test tools/atf-report_test \
-@ENABLE_TOOLS_TRUE@ tools/atf-run_test installcheck.fifo \
-@ENABLE_TOOLS_TRUE@ installcheck.log
-@ENABLE_TOOLS_TRUE@am__append_7 = tools/revision.h.stamp \
-@ENABLE_TOOLS_TRUE@ installcheck-atf
-@ENABLE_TOOLS_TRUE@am__append_8 = tools/atf.7
-@ENABLE_TOOLS_TRUE@tests_tools_PROGRAMS = \
-@ENABLE_TOOLS_TRUE@ tools/application_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/atffile_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/auto_array_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/bad_metadata_helper$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/config_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/config_file_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/env_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/expand_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/expect_helpers$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/fail_helper$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/fs_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/io_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/misc_helpers$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/parser_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/process_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/pass_helper$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/process_helpers$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/reader_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/requirements_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/several_tcs_helper$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/signals_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/test_program_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/text_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/ui_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/user_test$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/zero_tcs_helper$(EXEEXT)
-@ENABLE_TOOLS_TRUE@am__append_9 = installcheck-atf
-@ENABLE_TOOLS_FALSE@@HAVE_KYUA_TRUE@am__append_10 = installcheck-kyua
-@ENABLE_TOOLS_TRUE@am__append_11 = Atffile
+@HAVE_KYUA_TRUE@am__append_1 = installcheck-kyua
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/compiler-flags.m4 \
@@ -524,61 +437,16 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/compiler-flags.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/module-application.m4 \
$(top_srcdir)/m4/module-defs.m4 $(top_srcdir)/m4/module-env.m4 \
- $(top_srcdir)/m4/module-fs.m4 \
- $(top_srcdir)/m4/module-signals.m4 \
- $(top_srcdir)/m4/runtime-tool.m4 $(top_srcdir)/configure.ac
+ $(top_srcdir)/m4/module-fs.m4 $(top_srcdir)/m4/runtime-tool.m4 \
+ $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = bconfig.h
-CONFIG_CLEAN_FILES = atf-c/defs.h tools/defs.hpp
+CONFIG_CLEAN_FILES = atf-c/defs.h
CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-tools_libtools_a_AR = $(AR) $(ARFLAGS)
-tools_libtools_a_LIBADD =
-am__tools_libtools_a_SOURCES_DIST = tools/application.cpp \
- tools/application.hpp tools/atffile.cpp tools/atffile.hpp \
- tools/auto_array.hpp tools/config.cpp tools/config.hpp \
- tools/config_file.cpp tools/config_file.hpp tools/env.cpp \
- tools/env.hpp tools/exceptions.cpp tools/exceptions.hpp \
- tools/expand.cpp tools/expand.hpp tools/fs.cpp tools/fs.hpp \
- tools/io.cpp tools/io.hpp tools/parser.cpp tools/parser.hpp \
- tools/process.cpp tools/process.hpp tools/reader.cpp \
- tools/reader.hpp tools/requirements.cpp tools/requirements.hpp \
- tools/signals.cpp tools/signals.hpp tools/test-program.cpp \
- tools/test-program.hpp tools/test_helpers.hpp tools/text.cpp \
- tools/text.hpp tools/timers.cpp tools/timers.hpp tools/ui.cpp \
- tools/ui.hpp tools/user.cpp tools/user.hpp
-am__dirstamp = $(am__leading_dot)dirstamp
-@ENABLE_TOOLS_TRUE@am_tools_libtools_a_OBJECTS = tools/tools_libtools_a-application.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-atffile.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-config.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-config_file.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-env.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-exceptions.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-expand.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-fs.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-io.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-parser.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-process.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-reader.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-requirements.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-signals.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-test-program.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-text.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-timers.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-ui.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_libtools_a-user.$(OBJEXT)
-nodist_tools_libtools_a_OBJECTS =
-tools_libtools_a_OBJECTS = $(am_tools_libtools_a_OBJECTS) \
- $(nodist_tools_libtools_a_OBJECTS)
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
@@ -612,29 +480,24 @@ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
"$(DESTDIR)$(tests_atf_c___detaildir)" \
"$(DESTDIR)$(tests_atf_c_detaildir)" \
"$(DESTDIR)$(tests_test_programsdir)" \
- "$(DESTDIR)$(tests_toolsdir)" "$(DESTDIR)$(tests_atf_cdir)" \
- "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_shdir)" \
- "$(DESTDIR)$(tests_test_programsdir)" \
- "$(DESTDIR)$(tests_toolsdir)" "$(DESTDIR)$(man1dir)" \
+ "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" \
+ "$(DESTDIR)$(tests_atf_shdir)" \
+ "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(man1dir)" \
"$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man4dir)" \
- "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man7dir)" \
"$(DESTDIR)$(atf_aclocaldir)" \
"$(DESTDIR)$(atf_c__dirpkgconfigdir)" \
"$(DESTDIR)$(atf_cpkgconfigdir)" "$(DESTDIR)$(atf_shdir)" \
- "$(DESTDIR)$(atf_shpkgconfigdir)" "$(DESTDIR)$(cssdir)" \
- "$(DESTDIR)$(docdir)" "$(DESTDIR)$(dtddir)" \
- "$(DESTDIR)$(egdir)" "$(DESTDIR)$(hooksdir)" \
+ "$(DESTDIR)$(atf_shpkgconfigdir)" "$(DESTDIR)$(docdir)" \
"$(DESTDIR)$(pkgtestsdir)" "$(DESTDIR)$(tests_atf_cdir)" \
"$(DESTDIR)$(tests_atf_c__dir)" \
"$(DESTDIR)$(tests_atf_c___detaildir)" \
"$(DESTDIR)$(tests_atf_c_detaildir)" \
"$(DESTDIR)$(tests_atf_shdir)" \
- "$(DESTDIR)$(tests_test_programsdir)" \
- "$(DESTDIR)$(tests_toolsdir)" "$(DESTDIR)$(xsldir)" \
- "$(DESTDIR)$(atf_cdir)" "$(DESTDIR)$(atf_c__dir)" \
- "$(DESTDIR)$(includedir)"
+ "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(atf_cdir)" \
+ "$(DESTDIR)$(atf_c__dir)" "$(DESTDIR)$(includedir)"
LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
atf_c___detail_libtest_helpers_la_LIBADD =
+am__dirstamp = $(am__leading_dot)dirstamp
am_atf_c___detail_libtest_helpers_la_OBJECTS = \
atf-c++/detail/test_helpers.lo
atf_c___detail_libtest_helpers_la_OBJECTS = \
@@ -679,14 +542,9 @@ libatf_c_la_OBJECTS = $(am_libatf_c_la_OBJECTS) \
libatf_c_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(libatf_c_la_LDFLAGS) $(LDFLAGS) -o $@
-@ENABLE_TOOLS_TRUE@am__EXEEXT_1 = tools/atf-config$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/atf-report$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/atf-run$(EXEEXT) \
-@ENABLE_TOOLS_TRUE@ tools/atf-version$(EXEEXT)
PROGRAMS = $(bin_PROGRAMS) $(libexec_PROGRAMS) $(tests_atf_c_PROGRAMS) \
$(tests_atf_c___PROGRAMS) $(tests_atf_c___detail_PROGRAMS) \
- $(tests_atf_c_detail_PROGRAMS) $(tests_test_programs_PROGRAMS) \
- $(tests_tools_PROGRAMS)
+ $(tests_atf_c_detail_PROGRAMS) $(tests_test_programs_PROGRAMS)
am_atf_c___atf_c___test_OBJECTS = atf-c++/atf_c++_test.$(OBJEXT)
atf_c___atf_c___test_OBJECTS = $(am_atf_c___atf_c___test_OBJECTS)
atf_c___atf_c___test_DEPENDENCIES = atf-c++/detail/libtest_helpers.la \
@@ -860,15 +718,6 @@ atf_sh_atf_check_DEPENDENCIES = $(ATF_CXX_LIBS)
am_atf_sh_atf_sh_OBJECTS = atf-sh/atf-sh.$(OBJEXT)
atf_sh_atf_sh_OBJECTS = $(am_atf_sh_atf_sh_OBJECTS)
atf_sh_atf_sh_DEPENDENCIES = $(ATF_CXX_LIBS)
-am_bootstrap_h_app_empty_OBJECTS = bootstrap/h_app_empty.$(OBJEXT)
-bootstrap_h_app_empty_OBJECTS = $(am_bootstrap_h_app_empty_OBJECTS)
-bootstrap_h_app_empty_DEPENDENCIES = tools/libtools.a $(ATF_CXX_LIBS)
-am_bootstrap_h_app_opts_args_OBJECTS = \
- bootstrap/h_app_opts_args.$(OBJEXT)
-bootstrap_h_app_opts_args_OBJECTS = \
- $(am_bootstrap_h_app_opts_args_OBJECTS)
-bootstrap_h_app_opts_args_DEPENDENCIES = tools/libtools.a \
- $(ATF_CXX_LIBS)
am_bootstrap_h_tp_basic_c_OBJECTS = bootstrap/h_tp_basic_c.$(OBJEXT)
bootstrap_h_tp_basic_c_OBJECTS = $(am_bootstrap_h_tp_basic_c_OBJECTS)
bootstrap_h_tp_basic_c_DEPENDENCIES = libatf-c.la
@@ -887,179 +736,8 @@ am_test_programs_cpp_helpers_OBJECTS = \
test_programs_cpp_helpers_OBJECTS = \
$(am_test_programs_cpp_helpers_OBJECTS)
test_programs_cpp_helpers_DEPENDENCIES = $(ATF_CXX_LIBS)
-am__tools_application_test_SOURCES_DIST = tools/application_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_application_test_OBJECTS = tools/tools_application_test-application_test.$(OBJEXT)
-tools_application_test_OBJECTS = $(am_tools_application_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_application_test_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-am__tools_atf_config_SOURCES_DIST = tools/atf-config.cpp
-@ENABLE_TOOLS_TRUE@am_tools_atf_config_OBJECTS = tools/tools_atf_config-atf-config.$(OBJEXT)
-tools_atf_config_OBJECTS = $(am_tools_atf_config_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_atf_config_DEPENDENCIES = $(TOOLS_LDADD)
-am__tools_atf_report_SOURCES_DIST = tools/atf-report.cpp
-@ENABLE_TOOLS_TRUE@am_tools_atf_report_OBJECTS = tools/tools_atf_report-atf-report.$(OBJEXT)
-tools_atf_report_OBJECTS = $(am_tools_atf_report_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_atf_report_DEPENDENCIES = $(TOOLS_LDADD)
-am__tools_atf_run_SOURCES_DIST = tools/atf-run.cpp
-@ENABLE_TOOLS_TRUE@am_tools_atf_run_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_atf_run-atf-run.$(OBJEXT)
-tools_atf_run_OBJECTS = $(am_tools_atf_run_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_atf_run_DEPENDENCIES = $(TOOLS_LDADD)
-am__tools_atf_version_SOURCES_DIST = tools/atf-version.cpp
-@ENABLE_TOOLS_TRUE@am_tools_atf_version_OBJECTS = tools/tools_atf_version-atf-version.$(OBJEXT)
-nodist_tools_atf_version_OBJECTS =
-tools_atf_version_OBJECTS = $(am_tools_atf_version_OBJECTS) \
- $(nodist_tools_atf_version_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_atf_version_DEPENDENCIES = $(TOOLS_LDADD)
-am__tools_atffile_test_SOURCES_DIST = tools/atffile_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_atffile_test_OBJECTS = tools/tools_atffile_test-atffile_test.$(OBJEXT)
-tools_atffile_test_OBJECTS = $(am_tools_atffile_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_atffile_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_auto_array_test_SOURCES_DIST = tools/auto_array_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_auto_array_test_OBJECTS = tools/tools_auto_array_test-auto_array_test.$(OBJEXT)
-tools_auto_array_test_OBJECTS = $(am_tools_auto_array_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_auto_array_test_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-am__tools_bad_metadata_helper_SOURCES_DIST = \
- tools/bad_metadata_helper.c
-@ENABLE_TOOLS_TRUE@am_tools_bad_metadata_helper_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/bad_metadata_helper.$(OBJEXT)
-tools_bad_metadata_helper_OBJECTS = \
- $(am_tools_bad_metadata_helper_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_bad_metadata_helper_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ libatf-c.la
-am__tools_config_file_test_SOURCES_DIST = tools/config_file_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_config_file_test_OBJECTS = tools/tools_config_file_test-config_file_test.$(OBJEXT)
-tools_config_file_test_OBJECTS = $(am_tools_config_file_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_config_file_test_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-am__tools_config_test_SOURCES_DIST = tools/config_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_config_test_OBJECTS = tools/tools_config_test-config_test.$(OBJEXT)
-tools_config_test_OBJECTS = $(am_tools_config_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_config_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_env_test_SOURCES_DIST = tools/env_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_env_test_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_env_test-env_test.$(OBJEXT)
-tools_env_test_OBJECTS = $(am_tools_env_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_env_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_expand_test_SOURCES_DIST = tools/expand_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_expand_test_OBJECTS = tools/tools_expand_test-expand_test.$(OBJEXT)
-tools_expand_test_OBJECTS = $(am_tools_expand_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_expand_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_expect_helpers_SOURCES_DIST = tools/expect_helpers.c
-@ENABLE_TOOLS_TRUE@am_tools_expect_helpers_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/expect_helpers.$(OBJEXT)
-tools_expect_helpers_OBJECTS = $(am_tools_expect_helpers_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_expect_helpers_DEPENDENCIES = libatf-c.la
-am__tools_fail_helper_SOURCES_DIST = tools/fail_helper.cpp
-@ENABLE_TOOLS_TRUE@am_tools_fail_helper_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/fail_helper.$(OBJEXT)
-tools_fail_helper_OBJECTS = $(am_tools_fail_helper_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_fail_helper_DEPENDENCIES = $(ATF_CXX_LIBS)
-am__tools_fs_test_SOURCES_DIST = tools/fs_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_fs_test_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_fs_test-fs_test.$(OBJEXT)
-tools_fs_test_OBJECTS = $(am_tools_fs_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_fs_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_io_test_SOURCES_DIST = tools/io_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_io_test_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_io_test-io_test.$(OBJEXT)
-tools_io_test_OBJECTS = $(am_tools_io_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_io_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_misc_helpers_SOURCES_DIST = tools/misc_helpers.cpp
-@ENABLE_TOOLS_TRUE@am_tools_misc_helpers_OBJECTS = tools/tools_misc_helpers-misc_helpers.$(OBJEXT)
-tools_misc_helpers_OBJECTS = $(am_tools_misc_helpers_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_misc_helpers_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_parser_test_SOURCES_DIST = tools/parser_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_parser_test_OBJECTS = tools/tools_parser_test-parser_test.$(OBJEXT)
-tools_parser_test_OBJECTS = $(am_tools_parser_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_parser_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_pass_helper_SOURCES_DIST = tools/pass_helper.cpp
-@ENABLE_TOOLS_TRUE@am_tools_pass_helper_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/pass_helper.$(OBJEXT)
-tools_pass_helper_OBJECTS = $(am_tools_pass_helper_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_pass_helper_DEPENDENCIES = $(ATF_CXX_LIBS)
-am__tools_process_helpers_SOURCES_DIST = tools/process_helpers.c
-@ENABLE_TOOLS_TRUE@am_tools_process_helpers_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/process_helpers.$(OBJEXT)
-tools_process_helpers_OBJECTS = $(am_tools_process_helpers_OBJECTS)
-tools_process_helpers_LDADD = $(LDADD)
-am__tools_process_test_SOURCES_DIST = tools/process_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_process_test_OBJECTS = tools/tools_process_test-process_test.$(OBJEXT)
-tools_process_test_OBJECTS = $(am_tools_process_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_process_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_reader_test_SOURCES_DIST = tools/reader_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_reader_test_OBJECTS = tools/tools_reader_test-reader_test.$(OBJEXT)
-tools_reader_test_OBJECTS = $(am_tools_reader_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_reader_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_requirements_test_SOURCES_DIST = \
- tools/requirements_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_requirements_test_OBJECTS = tools/tools_requirements_test-requirements_test.$(OBJEXT)
-tools_requirements_test_OBJECTS = \
- $(am_tools_requirements_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_requirements_test_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-am__tools_several_tcs_helper_SOURCES_DIST = \
- tools/several_tcs_helper.c
-@ENABLE_TOOLS_TRUE@am_tools_several_tcs_helper_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/several_tcs_helper.$(OBJEXT)
-tools_several_tcs_helper_OBJECTS = \
- $(am_tools_several_tcs_helper_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_several_tcs_helper_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ libatf-c.la
-am__tools_signals_test_SOURCES_DIST = tools/signals_test.cpp \
- tools/signals.cpp
-@ENABLE_TOOLS_TRUE@am_tools_signals_test_OBJECTS = tools/tools_signals_test-signals_test.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_signals_test-signals.$(OBJEXT)
-tools_signals_test_OBJECTS = $(am_tools_signals_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_signals_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_test_program_test_SOURCES_DIST = \
- tools/test_program_test.cpp
-@ENABLE_TOOLS_TRUE@am_tools_test_program_test_OBJECTS = tools/tools_test_program_test-test_program_test.$(OBJEXT)
-tools_test_program_test_OBJECTS = \
- $(am_tools_test_program_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_test_program_test_DEPENDENCIES = \
-@ENABLE_TOOLS_TRUE@ $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-am__tools_text_test_SOURCES_DIST = tools/text_test.cpp tools/text.cpp
-@ENABLE_TOOLS_TRUE@am_tools_text_test_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_text_test-text_test.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_text_test-text.$(OBJEXT)
-tools_text_test_OBJECTS = $(am_tools_text_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_text_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_ui_test_SOURCES_DIST = tools/ui_test.cpp tools/ui.cpp
-@ENABLE_TOOLS_TRUE@am_tools_ui_test_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_ui_test-ui_test.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_ui_test-ui.$(OBJEXT)
-tools_ui_test_OBJECTS = $(am_tools_ui_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_ui_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_user_test_SOURCES_DIST = tools/user_test.cpp tools/user.cpp
-@ENABLE_TOOLS_TRUE@am_tools_user_test_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/tools_user_test-user_test.$(OBJEXT) \
-@ENABLE_TOOLS_TRUE@ tools/tools_user_test-user.$(OBJEXT)
-tools_user_test_OBJECTS = $(am_tools_user_test_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_user_test_DEPENDENCIES = $(TOOLS_LDADD) \
-@ENABLE_TOOLS_TRUE@ $(ATF_CXX_LIBS)
-am__tools_zero_tcs_helper_SOURCES_DIST = tools/zero_tcs_helper.c
-@ENABLE_TOOLS_TRUE@am_tools_zero_tcs_helper_OBJECTS = \
-@ENABLE_TOOLS_TRUE@ tools/zero_tcs_helper.$(OBJEXT)
-tools_zero_tcs_helper_OBJECTS = $(am_tools_zero_tcs_helper_OBJECTS)
-@ENABLE_TOOLS_TRUE@tools_zero_tcs_helper_DEPENDENCIES = libatf-c.la
SCRIPTS = $(tests_atf_c_SCRIPTS) $(tests_atf_c___SCRIPTS) \
- $(tests_atf_sh_SCRIPTS) $(tests_test_programs_SCRIPTS) \
- $(tests_tools_SCRIPTS)
+ $(tests_atf_sh_SCRIPTS) $(tests_test_programs_SCRIPTS)
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
@@ -1112,9 +790,7 @@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
am__v_CXXLD_0 = @echo " CXXLD " $@;
am__v_CXXLD_1 =
-SOURCES = $(tools_libtools_a_SOURCES) \
- $(nodist_tools_libtools_a_SOURCES) \
- $(atf_c___detail_libtest_helpers_la_SOURCES) \
+SOURCES = $(atf_c___detail_libtest_helpers_la_SOURCES) \
$(atf_c_detail_libtest_helpers_la_SOURCES) \
$(libatf_c___la_SOURCES) $(libatf_c_la_SOURCES) \
$(nodist_libatf_c_la_SOURCES) $(atf_c___atf_c___test_SOURCES) \
@@ -1147,33 +823,11 @@ SOURCES = $(tools_libtools_a_SOURCES) \
$(atf_c_error_test_SOURCES) $(atf_c_macros_test_SOURCES) \
$(atf_c_tc_test_SOURCES) $(atf_c_tp_test_SOURCES) \
$(atf_c_utils_test_SOURCES) $(atf_sh_atf_check_SOURCES) \
- $(atf_sh_atf_sh_SOURCES) $(bootstrap_h_app_empty_SOURCES) \
- $(bootstrap_h_app_opts_args_SOURCES) \
- $(bootstrap_h_tp_basic_c_SOURCES) \
+ $(atf_sh_atf_sh_SOURCES) $(bootstrap_h_tp_basic_c_SOURCES) \
$(bootstrap_h_tp_basic_cpp_SOURCES) \
$(test_programs_c_helpers_SOURCES) \
- $(test_programs_cpp_helpers_SOURCES) \
- $(tools_application_test_SOURCES) $(tools_atf_config_SOURCES) \
- $(tools_atf_report_SOURCES) $(tools_atf_run_SOURCES) \
- $(tools_atf_version_SOURCES) \
- $(nodist_tools_atf_version_SOURCES) \
- $(tools_atffile_test_SOURCES) $(tools_auto_array_test_SOURCES) \
- $(tools_bad_metadata_helper_SOURCES) \
- $(tools_config_file_test_SOURCES) $(tools_config_test_SOURCES) \
- $(tools_env_test_SOURCES) $(tools_expand_test_SOURCES) \
- $(tools_expect_helpers_SOURCES) $(tools_fail_helper_SOURCES) \
- $(tools_fs_test_SOURCES) $(tools_io_test_SOURCES) \
- $(tools_misc_helpers_SOURCES) $(tools_parser_test_SOURCES) \
- $(tools_pass_helper_SOURCES) $(tools_process_helpers_SOURCES) \
- $(tools_process_test_SOURCES) $(tools_reader_test_SOURCES) \
- $(tools_requirements_test_SOURCES) \
- $(tools_several_tcs_helper_SOURCES) \
- $(tools_signals_test_SOURCES) \
- $(tools_test_program_test_SOURCES) $(tools_text_test_SOURCES) \
- $(tools_ui_test_SOURCES) $(tools_user_test_SOURCES) \
- $(tools_zero_tcs_helper_SOURCES)
-DIST_SOURCES = $(am__tools_libtools_a_SOURCES_DIST) \
- $(atf_c___detail_libtest_helpers_la_SOURCES) \
+ $(test_programs_cpp_helpers_SOURCES)
+DIST_SOURCES = $(atf_c___detail_libtest_helpers_la_SOURCES) \
$(atf_c_detail_libtest_helpers_la_SOURCES) \
$(libatf_c___la_SOURCES) $(libatf_c_la_SOURCES) \
$(atf_c___atf_c___test_SOURCES) $(atf_c___build_test_SOURCES) \
@@ -1205,42 +859,10 @@ DIST_SOURCES = $(am__tools_libtools_a_SOURCES_DIST) \
$(atf_c_error_test_SOURCES) $(atf_c_macros_test_SOURCES) \
$(atf_c_tc_test_SOURCES) $(atf_c_tp_test_SOURCES) \
$(atf_c_utils_test_SOURCES) $(atf_sh_atf_check_SOURCES) \
- $(atf_sh_atf_sh_SOURCES) $(bootstrap_h_app_empty_SOURCES) \
- $(bootstrap_h_app_opts_args_SOURCES) \
- $(bootstrap_h_tp_basic_c_SOURCES) \
+ $(atf_sh_atf_sh_SOURCES) $(bootstrap_h_tp_basic_c_SOURCES) \
$(bootstrap_h_tp_basic_cpp_SOURCES) \
$(test_programs_c_helpers_SOURCES) \
- $(test_programs_cpp_helpers_SOURCES) \
- $(am__tools_application_test_SOURCES_DIST) \
- $(am__tools_atf_config_SOURCES_DIST) \
- $(am__tools_atf_report_SOURCES_DIST) \
- $(am__tools_atf_run_SOURCES_DIST) \
- $(am__tools_atf_version_SOURCES_DIST) \
- $(am__tools_atffile_test_SOURCES_DIST) \
- $(am__tools_auto_array_test_SOURCES_DIST) \
- $(am__tools_bad_metadata_helper_SOURCES_DIST) \
- $(am__tools_config_file_test_SOURCES_DIST) \
- $(am__tools_config_test_SOURCES_DIST) \
- $(am__tools_env_test_SOURCES_DIST) \
- $(am__tools_expand_test_SOURCES_DIST) \
- $(am__tools_expect_helpers_SOURCES_DIST) \
- $(am__tools_fail_helper_SOURCES_DIST) \
- $(am__tools_fs_test_SOURCES_DIST) \
- $(am__tools_io_test_SOURCES_DIST) \
- $(am__tools_misc_helpers_SOURCES_DIST) \
- $(am__tools_parser_test_SOURCES_DIST) \
- $(am__tools_pass_helper_SOURCES_DIST) \
- $(am__tools_process_helpers_SOURCES_DIST) \
- $(am__tools_process_test_SOURCES_DIST) \
- $(am__tools_reader_test_SOURCES_DIST) \
- $(am__tools_requirements_test_SOURCES_DIST) \
- $(am__tools_several_tcs_helper_SOURCES_DIST) \
- $(am__tools_signals_test_SOURCES_DIST) \
- $(am__tools_test_program_test_SOURCES_DIST) \
- $(am__tools_text_test_SOURCES_DIST) \
- $(am__tools_ui_test_SOURCES_DIST) \
- $(am__tools_user_test_SOURCES_DIST) \
- $(am__tools_zero_tcs_helper_SOURCES_DIST)
+ $(test_programs_cpp_helpers_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
@@ -1249,17 +871,14 @@ am__can_run_installinfo = \
man1dir = $(mandir)/man1
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
-man5dir = $(mandir)/man5
-man7dir = $(mandir)/man7
NROFF = nroff
MANS = $(dist_man_MANS) $(man_MANS)
DATA = $(atf_aclocal_DATA) $(atf_c__dirpkgconfig_DATA) \
$(atf_cpkgconfig_DATA) $(atf_sh_DATA) $(atf_shpkgconfig_DATA) \
- $(css_DATA) $(doc_DATA) $(dtd_DATA) $(eg_DATA) $(hooks_DATA) \
- $(noinst_DATA) $(pkgtests_DATA) $(tests_atf_c_DATA) \
- $(tests_atf_c___DATA) $(tests_atf_c___detail_DATA) \
- $(tests_atf_c_detail_DATA) $(tests_atf_sh_DATA) \
- $(tests_test_programs_DATA) $(tests_tools_DATA) $(xsl_DATA)
+ $(doc_DATA) $(noinst_DATA) $(pkgtests_DATA) \
+ $(tests_atf_c_DATA) $(tests_atf_c___DATA) \
+ $(tests_atf_c___detail_DATA) $(tests_atf_c_detail_DATA) \
+ $(tests_atf_sh_DATA) $(tests_test_programs_DATA)
HEADERS = $(atf_c_HEADERS) $(atf_c___HEADERS) $(include_HEADERS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
$(LISP)bconfig.h.in
@@ -1310,7 +929,6 @@ ATF_BUILD_CPP = @ATF_BUILD_CPP@
ATF_BUILD_CPPFLAGS = @ATF_BUILD_CPPFLAGS@
ATF_BUILD_CXX = @ATF_BUILD_CXX@
ATF_BUILD_CXXFLAGS = @ATF_BUILD_CXXFLAGS@
-ATF_CONFSUBDIR = @ATF_CONFSUBDIR@
ATF_SHELL = @ATF_SHELL@
ATF_WORKDIR = @ATF_WORKDIR@
ATTRIBUTE_FORMAT_PRINTF = @ATTRIBUTE_FORMAT_PRINTF@
@@ -1339,10 +957,8 @@ ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
-ENABLE_TOOLS = @ENABLE_TOOLS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
-GDB = @GDB@
GIT = @GIT@
GREP = @GREP@
INSTALL = @INSTALL@
@@ -1396,14 +1012,7 @@ am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
atf_aclocaldir = @atf_aclocaldir@
-atf_arch = @atf_arch@
-atf_confdir = @atf_confdir@
-atf_cssdir = @atf_cssdir@
-atf_dtddir = @atf_dtddir@
-atf_egdir = @atf_egdir@
-atf_machine = @atf_machine@
atf_pkgconfigdir = @atf_pkgconfigdir@
-atf_xsldir = @atf_xsldir@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
@@ -1451,7 +1060,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
atf_aclocal_DATA = atf-c/atf-common.m4 atf-c/atf-c.m4 \
atf-c++/atf-c++.m4 atf-sh/atf-sh.m4
-BUILT_SOURCES = $(am__append_5)
+BUILT_SOURCES =
CLEANFILES = atf-c/atf-c.pc atf-c/pkg_config_test atf-c++/atf-c++.pc \
atf-c++/pkg_config_test atf-sh/atf-sh.pc atf-sh/misc_helpers \
atf-sh/atf_check_test atf-sh/atf-check_test atf-sh/config_test \
@@ -1461,15 +1070,7 @@ CLEANFILES = atf-c/atf-c.pc atf-c/pkg_config_test atf-c++/atf-c++.pc \
bootstrap/h_tp_pass test-programs/sh_helpers \
test-programs/config_test test-programs/expect_test \
test-programs/meta_data_test test-programs/result_test \
- test-programs/srcdir_test $(am__append_6)
-
-# XXX For some reason, the nodist line above does not work as expected.
-# Work this problem around.
-
-#
-# Custom targets.
-#
-DIST_HOOKS = kill-defs-h $(am__append_1) forbid-dist
+ test-programs/srcdir_test
EXTRA_DIST = admin/check-style-common.awk admin/check-style-c.awk \
admin/check-style-cpp.awk admin/check-style-man.awk \
admin/check-style-shell.awk admin/check-style.sh \
@@ -1491,20 +1092,23 @@ EXTRA_DIST = admin/check-style-common.awk admin/check-style-c.awk \
test-programs/sh_helpers.sh test-programs/config_test.sh \
test-programs/expect_test.sh test-programs/meta_data_test.sh \
test-programs/result_test.sh test-programs/srcdir_test.sh \
- $(am__append_4) $(doc_DATA) INSTALL README $(pkgtests_DATA)
+ $(doc_DATA) INSTALL README $(pkgtests_DATA)
dist_man_MANS = atf-c/atf-c-api.3 atf-c++/atf-c++-api.3 \
atf-sh/atf-check.1 atf-sh/atf-sh.1 atf-sh/atf-sh-api.3 \
- doc/atf-test-case.4 doc/atf-test-program.1 $(am__append_3)
+ doc/atf-test-case.4 doc/atf-test-program.1
include_HEADERS = atf-c.h atf-c++.hpp
lib_LTLIBRARIES = libatf-c.la libatf-c++.la
-man_MANS = $(am__append_8)
+man_MANS =
noinst_DATA = INSTALL README
noinst_LTLIBRARIES = atf-c/detail/libtest_helpers.la \
atf-c++/detail/libtest_helpers.la
-INSTALLCHECK_TARGETS = installcheck-bootstrap $(am__append_9) \
- $(am__append_10)
-PHONY_TARGETS = check-style installcheck-bootstrap $(am__append_7) \
- installcheck-kyua clean-all release release-test
+INSTALLCHECK_TARGETS = installcheck-bootstrap $(am__append_1)
+
+#
+# Custom targets.
+#
+PHONY_TARGETS = check-style installcheck-bootstrap installcheck-kyua \
+ clean-all release release-test
ACLOCAL_AMFLAGS = -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-tools
libatf_c_la_SOURCES = atf-c/build.c atf-c/build.h atf-c/check.c \
@@ -1546,8 +1150,7 @@ atf_c_HEADERS = atf-c/build.h \
atf_cdir = $(includedir)/atf-c
atf_cpkgconfigdir = $(atf_pkgconfigdir)
atf_cpkgconfig_DATA = atf-c/atf-c.pc
-tests_atf_c_DATA = atf-c/Atffile \
- atf-c/Kyuafile \
+tests_atf_c_DATA = atf-c/Kyuafile \
atf-c/macros_h_test.c \
atf-c/unused_test.c
@@ -1571,9 +1174,7 @@ atf_c_tp_test_SOURCES = atf-c/tp_test.c
atf_c_tp_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
atf_c_utils_test_SOURCES = atf-c/utils_test.c atf-c/h_build.h
atf_c_utils_test_LDADD = atf-c/detail/libtest_helpers.la libatf-c.la
-tests_atf_c_detail_DATA = atf-c/detail/Atffile \
- atf-c/detail/Kyuafile
-
+tests_atf_c_detail_DATA = atf-c/detail/Kyuafile
tests_atf_c_detaildir = $(pkgtestsdir)/atf-c/detail
atf_c_detail_libtest_helpers_la_SOURCES = atf-c/detail/test_helpers.c \
atf-c/detail/test_helpers.h
@@ -1623,8 +1224,7 @@ atf_c___HEADERS = atf-c++/build.hpp \
atf_c__dir = $(includedir)/atf-c++
atf_c__dirpkgconfigdir = $(atf_pkgconfigdir)
atf_c__dirpkgconfig_DATA = atf-c++/atf-c++.pc
-tests_atf_c___DATA = atf-c++/Atffile \
- atf-c++/Kyuafile \
+tests_atf_c___DATA = atf-c++/Kyuafile \
atf-c++/macros_hpp_test.cpp \
atf-c++/unused_test.cpp
@@ -1644,9 +1244,7 @@ atf_c___tests_test_SOURCES = atf-c++/tests_test.cpp
atf_c___tests_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
atf_c___utils_test_SOURCES = atf-c++/utils_test.cpp
atf_c___utils_test_LDADD = atf-c++/detail/libtest_helpers.la $(ATF_CXX_LIBS)
-tests_atf_c___detail_DATA = atf-c++/detail/Atffile \
- atf-c++/detail/Kyuafile
-
+tests_atf_c___detail_DATA = atf-c++/detail/Kyuafile
tests_atf_c___detaildir = $(pkgtestsdir)/atf-c++/detail
atf_c___detail_libtest_helpers_la_SOURCES = atf-c++/detail/test_helpers.cpp \
atf-c++/detail/test_helpers.hpp
@@ -1676,18 +1274,12 @@ atf_sh_DATA = atf-sh/libatf-sh.subr
atf_shdir = $(pkgdatadir)
atf_shpkgconfigdir = $(atf_pkgconfigdir)
atf_shpkgconfig_DATA = atf-sh/atf-sh.pc
-tests_atf_sh_DATA = atf-sh/Atffile \
- atf-sh/Kyuafile
-
+tests_atf_sh_DATA = atf-sh/Kyuafile
tests_atf_shdir = $(pkgtestsdir)/atf-sh
tests_atf_sh_SCRIPTS = atf-sh/misc_helpers atf-sh/atf_check_test \
atf-sh/atf-check_test atf-sh/config_test \
atf-sh/integration_test atf-sh/normalize_test atf-sh/tc_test \
atf-sh/tp_test
-bootstrap_h_app_empty_SOURCES = bootstrap/h_app_empty.cpp
-bootstrap_h_app_empty_LDADD = tools/libtools.a $(ATF_CXX_LIBS)
-bootstrap_h_app_opts_args_SOURCES = bootstrap/h_app_opts_args.cpp
-bootstrap_h_app_opts_args_LDADD = tools/libtools.a $(ATF_CXX_LIBS)
bootstrap_h_tp_basic_c_SOURCES = bootstrap/h_tp_basic_c.c
bootstrap_h_tp_basic_c_LDADD = libatf-c.la
bootstrap_h_tp_basic_cpp_SOURCES = bootstrap/h_tp_basic_cpp.cpp
@@ -1699,19 +1291,13 @@ DISTCLEANFILES = \
testsuite.lineno \
testsuite.log
-testsuite_incs = $(srcdir)/bootstrap/t_application_help.at \
- $(srcdir)/bootstrap/t_application_opts_args.at \
- $(srcdir)/bootstrap/t_atf_config.at \
- $(srcdir)/bootstrap/t_atf_run.at \
- $(srcdir)/bootstrap/t_subr_atf_check.at \
+testsuite_incs = $(srcdir)/bootstrap/t_subr_atf_check.at \
$(srcdir)/bootstrap/t_test_program_compare.at \
$(srcdir)/bootstrap/t_test_program_filter.at \
$(srcdir)/bootstrap/t_test_program_list.at \
$(srcdir)/bootstrap/t_test_program_run.at
-tests_test_programs_DATA = test-programs/Atffile \
- test-programs/Kyuafile
-
+tests_test_programs_DATA = test-programs/Kyuafile
tests_test_programsdir = $(pkgtestsdir)/test-programs
test_programs_c_helpers_SOURCES = test-programs/c_helpers.c
test_programs_c_helpers_LDADD = libatf-c.la
@@ -1722,166 +1308,6 @@ tests_test_programs_SCRIPTS = test-programs/sh_helpers \
test-programs/config_test test-programs/expect_test \
test-programs/meta_data_test test-programs/result_test \
test-programs/srcdir_test
-@ENABLE_TOOLS_TRUE@TOOLS_CPPFLAGS = -I$(top_srcdir)/tools -I$(top_builddir)/tools
-@ENABLE_TOOLS_TRUE@TOOLS_LDADD = tools/libtools.a
-@ENABLE_TOOLS_TRUE@noinst_LIBRARIES = tools/libtools.a
-@ENABLE_TOOLS_TRUE@tools_libtools_a_SOURCES = tools/application.cpp \
-@ENABLE_TOOLS_TRUE@ tools/application.hpp \
-@ENABLE_TOOLS_TRUE@ tools/atffile.cpp \
-@ENABLE_TOOLS_TRUE@ tools/atffile.hpp \
-@ENABLE_TOOLS_TRUE@ tools/auto_array.hpp \
-@ENABLE_TOOLS_TRUE@ tools/config.cpp \
-@ENABLE_TOOLS_TRUE@ tools/config.hpp \
-@ENABLE_TOOLS_TRUE@ tools/config_file.cpp \
-@ENABLE_TOOLS_TRUE@ tools/config_file.hpp \
-@ENABLE_TOOLS_TRUE@ tools/env.cpp \
-@ENABLE_TOOLS_TRUE@ tools/env.hpp \
-@ENABLE_TOOLS_TRUE@ tools/exceptions.cpp \
-@ENABLE_TOOLS_TRUE@ tools/exceptions.hpp \
-@ENABLE_TOOLS_TRUE@ tools/expand.cpp \
-@ENABLE_TOOLS_TRUE@ tools/expand.hpp \
-@ENABLE_TOOLS_TRUE@ tools/fs.cpp \
-@ENABLE_TOOLS_TRUE@ tools/fs.hpp \
-@ENABLE_TOOLS_TRUE@ tools/io.cpp \
-@ENABLE_TOOLS_TRUE@ tools/io.hpp \
-@ENABLE_TOOLS_TRUE@ tools/parser.cpp \
-@ENABLE_TOOLS_TRUE@ tools/parser.hpp \
-@ENABLE_TOOLS_TRUE@ tools/process.cpp \
-@ENABLE_TOOLS_TRUE@ tools/process.hpp \
-@ENABLE_TOOLS_TRUE@ tools/reader.cpp \
-@ENABLE_TOOLS_TRUE@ tools/reader.hpp \
-@ENABLE_TOOLS_TRUE@ tools/requirements.cpp \
-@ENABLE_TOOLS_TRUE@ tools/requirements.hpp \
-@ENABLE_TOOLS_TRUE@ tools/signals.cpp \
-@ENABLE_TOOLS_TRUE@ tools/signals.hpp \
-@ENABLE_TOOLS_TRUE@ tools/test-program.cpp \
-@ENABLE_TOOLS_TRUE@ tools/test-program.hpp \
-@ENABLE_TOOLS_TRUE@ tools/test_helpers.hpp \
-@ENABLE_TOOLS_TRUE@ tools/text.cpp \
-@ENABLE_TOOLS_TRUE@ tools/text.hpp \
-@ENABLE_TOOLS_TRUE@ tools/timers.cpp \
-@ENABLE_TOOLS_TRUE@ tools/timers.hpp \
-@ENABLE_TOOLS_TRUE@ tools/ui.cpp \
-@ENABLE_TOOLS_TRUE@ tools/ui.hpp \
-@ENABLE_TOOLS_TRUE@ tools/user.cpp \
-@ENABLE_TOOLS_TRUE@ tools/user.hpp
-
-@ENABLE_TOOLS_TRUE@nodist_tools_libtools_a_SOURCES = tools/defs.hpp
-@ENABLE_TOOLS_TRUE@tools_libtools_a_CPPFLAGS = "-DATF_ARCH=\"$(atf_arch)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_BUILD_CC=\"$(ATF_BUILD_CC)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_BUILD_CFLAGS=\"$(ATF_BUILD_CFLAGS)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_BUILD_CPP=\"$(ATF_BUILD_CPP)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_BUILD_CPPFLAGS=\"$(ATF_BUILD_CPPFLAGS)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_BUILD_CXX=\"$(ATF_BUILD_CXX)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_BUILD_CXXFLAGS=\"$(ATF_BUILD_CXXFLAGS)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_CONFDIR=\"$(atf_confdir)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_INCLUDEDIR=\"$(includedir)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_LIBDIR=\"$(libdir)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_LIBEXECDIR=\"$(libexecdir)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_MACHINE=\"$(atf_machine)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_PKGDATADIR=\"$(pkgdatadir)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_SHELL=\"$(ATF_SHELL)\"" \
-@ENABLE_TOOLS_TRUE@ "-DATF_WORKDIR=\"$(ATF_WORKDIR)\"" \
-@ENABLE_TOOLS_TRUE@ $(TOOLS_CPPFLAGS)
-
-@ENABLE_TOOLS_TRUE@tools_atf_config_SOURCES = tools/atf-config.cpp
-@ENABLE_TOOLS_TRUE@tools_atf_config_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_atf_config_LDADD = $(TOOLS_LDADD)
-@ENABLE_TOOLS_TRUE@tools_atf_report_SOURCES = tools/atf-report.cpp
-@ENABLE_TOOLS_TRUE@tools_atf_report_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_atf_report_LDADD = $(TOOLS_LDADD)
-@ENABLE_TOOLS_TRUE@tools_atf_run_CPPFLAGS = $(TOOLS_CPPFLAGS) "-DGDB=\"$(GDB)\""
-@ENABLE_TOOLS_TRUE@tools_atf_run_SOURCES = tools/atf-run.cpp
-@ENABLE_TOOLS_TRUE@tools_atf_run_LDADD = $(TOOLS_LDADD)
-@ENABLE_TOOLS_TRUE@tools_atf_version_SOURCES = tools/atf-version.cpp
-@ENABLE_TOOLS_TRUE@nodist_tools_atf_version_SOURCES = tools/revision.h
-@ENABLE_TOOLS_TRUE@tools_atf_version_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_atf_version_LDADD = $(TOOLS_LDADD)
-@ENABLE_TOOLS_TRUE@cssdir = $(atf_cssdir)
-@ENABLE_TOOLS_TRUE@css_DATA = tools/tests-results.css
-@ENABLE_TOOLS_TRUE@dtddir = $(atf_dtddir)
-@ENABLE_TOOLS_TRUE@dtd_DATA = tools/tests-results.dtd
-@ENABLE_TOOLS_TRUE@egdir = $(atf_egdir)
-@ENABLE_TOOLS_TRUE@eg_DATA = tools/sample/atf-run.hooks \
-@ENABLE_TOOLS_TRUE@ tools/sample/common.conf
-@ENABLE_TOOLS_TRUE@hooksdir = $(pkgdatadir)
-@ENABLE_TOOLS_TRUE@hooks_DATA = tools/share/atf-run.hooks
-@ENABLE_TOOLS_TRUE@xsldir = $(atf_xsldir)
-@ENABLE_TOOLS_TRUE@xsl_DATA = tools/tests-results.xsl
-@ENABLE_TOOLS_TRUE@tests_tools_DATA = tools/Atffile tools/Kyuafile
-@ENABLE_TOOLS_TRUE@tests_toolsdir = $(pkgtestsdir)/tools
-@ENABLE_TOOLS_TRUE@tests_tools_SCRIPTS = tools/atf-config_test \
-@ENABLE_TOOLS_TRUE@ tools/atf-report_test tools/atf-run_test
-@ENABLE_TOOLS_TRUE@tools_application_test_SOURCES = tools/application_test.cpp
-@ENABLE_TOOLS_TRUE@tools_application_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_application_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_atffile_test_SOURCES = tools/atffile_test.cpp
-@ENABLE_TOOLS_TRUE@tools_atffile_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_atffile_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_auto_array_test_SOURCES = tools/auto_array_test.cpp
-@ENABLE_TOOLS_TRUE@tools_auto_array_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_auto_array_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_bad_metadata_helper_SOURCES = tools/bad_metadata_helper.c
-@ENABLE_TOOLS_TRUE@tools_bad_metadata_helper_LDADD = libatf-c.la
-@ENABLE_TOOLS_TRUE@tools_config_test_SOURCES = tools/config_test.cpp
-@ENABLE_TOOLS_TRUE@tools_config_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_config_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_config_file_test_SOURCES = tools/config_file_test.cpp
-@ENABLE_TOOLS_TRUE@tools_config_file_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_config_file_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_env_test_SOURCES = tools/env_test.cpp
-@ENABLE_TOOLS_TRUE@tools_env_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_env_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_expand_test_SOURCES = tools/expand_test.cpp
-@ENABLE_TOOLS_TRUE@tools_expand_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_expand_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_expect_helpers_SOURCES = tools/expect_helpers.c
-@ENABLE_TOOLS_TRUE@tools_expect_helpers_LDADD = libatf-c.la
-@ENABLE_TOOLS_TRUE@tools_fail_helper_SOURCES = tools/fail_helper.cpp
-@ENABLE_TOOLS_TRUE@tools_fail_helper_LDADD = $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_fs_test_SOURCES = tools/fs_test.cpp
-@ENABLE_TOOLS_TRUE@tools_fs_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_fs_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_io_test_SOURCES = tools/io_test.cpp
-@ENABLE_TOOLS_TRUE@tools_io_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_io_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_misc_helpers_SOURCES = tools/misc_helpers.cpp
-@ENABLE_TOOLS_TRUE@tools_misc_helpers_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_misc_helpers_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_parser_test_SOURCES = tools/parser_test.cpp
-@ENABLE_TOOLS_TRUE@tools_parser_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_parser_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_process_test_SOURCES = tools/process_test.cpp
-@ENABLE_TOOLS_TRUE@tools_process_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_process_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_pass_helper_SOURCES = tools/pass_helper.cpp
-@ENABLE_TOOLS_TRUE@tools_pass_helper_LDADD = $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_process_helpers_SOURCES = tools/process_helpers.c
-@ENABLE_TOOLS_TRUE@tools_reader_test_SOURCES = tools/reader_test.cpp
-@ENABLE_TOOLS_TRUE@tools_reader_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_reader_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_requirements_test_SOURCES = tools/requirements_test.cpp
-@ENABLE_TOOLS_TRUE@tools_requirements_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_requirements_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_several_tcs_helper_SOURCES = tools/several_tcs_helper.c
-@ENABLE_TOOLS_TRUE@tools_several_tcs_helper_LDADD = libatf-c.la
-@ENABLE_TOOLS_TRUE@tools_signals_test_SOURCES = tools/signals_test.cpp tools/signals.cpp
-@ENABLE_TOOLS_TRUE@tools_signals_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_signals_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_test_program_test_SOURCES = tools/test_program_test.cpp
-@ENABLE_TOOLS_TRUE@tools_test_program_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_test_program_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_text_test_SOURCES = tools/text_test.cpp tools/text.cpp
-@ENABLE_TOOLS_TRUE@tools_text_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_text_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_ui_test_SOURCES = tools/ui_test.cpp tools/ui.cpp
-@ENABLE_TOOLS_TRUE@tools_ui_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_ui_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_user_test_SOURCES = tools/user_test.cpp tools/user.cpp
-@ENABLE_TOOLS_TRUE@tools_user_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-@ENABLE_TOOLS_TRUE@tools_user_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-@ENABLE_TOOLS_TRUE@tools_zero_tcs_helper_SOURCES = tools/zero_tcs_helper.c
-@ENABLE_TOOLS_TRUE@tools_zero_tcs_helper_LDADD = libatf-c.la
#
# Top-level distfile documents.
@@ -1896,7 +1322,7 @@ TESTS_ENVIRONMENT = PATH=$(prefix)/bin:$${PATH} \
testsdir = $(exec_prefix)/tests
pkgtestsdir = $(testsdir)/$(PACKAGE)
-pkgtests_DATA = Kyuafile $(am__append_11)
+pkgtests_DATA = Kyuafile
BUILD_SH_TP = \
echo "Creating $${dst}"; \
echo "\#! $(bindir)/atf-sh" >$${dst}; \
@@ -1910,7 +1336,7 @@ all: $(BUILT_SOURCES) bconfig.h
.SUFFIXES: .c .cpp .lo .o .obj
am--refresh: Makefile
@:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/admin/Makefile.am.inc $(srcdir)/atf-c/Makefile.am.inc $(srcdir)/atf-c/detail/Makefile.am.inc $(srcdir)/atf-c++/Makefile.am.inc $(srcdir)/atf-c++/detail/Makefile.am.inc $(srcdir)/atf-sh/Makefile.am.inc $(srcdir)/bootstrap/Makefile.am.inc $(srcdir)/doc/Makefile.am.inc $(srcdir)/test-programs/Makefile.am.inc $(srcdir)/tools/Makefile.am.inc $(am__configure_deps)
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/admin/Makefile.am.inc $(srcdir)/atf-c/Makefile.am.inc $(srcdir)/atf-c/detail/Makefile.am.inc $(srcdir)/atf-c++/Makefile.am.inc $(srcdir)/atf-c++/detail/Makefile.am.inc $(srcdir)/atf-sh/Makefile.am.inc $(srcdir)/bootstrap/Makefile.am.inc $(srcdir)/doc/Makefile.am.inc $(srcdir)/test-programs/Makefile.am.inc $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
@@ -1933,7 +1359,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
-$(srcdir)/admin/Makefile.am.inc $(srcdir)/atf-c/Makefile.am.inc $(srcdir)/atf-c/detail/Makefile.am.inc $(srcdir)/atf-c++/Makefile.am.inc $(srcdir)/atf-c++/detail/Makefile.am.inc $(srcdir)/atf-sh/Makefile.am.inc $(srcdir)/bootstrap/Makefile.am.inc $(srcdir)/doc/Makefile.am.inc $(srcdir)/test-programs/Makefile.am.inc $(srcdir)/tools/Makefile.am.inc:
+$(srcdir)/admin/Makefile.am.inc $(srcdir)/atf-c/Makefile.am.inc $(srcdir)/atf-c/detail/Makefile.am.inc $(srcdir)/atf-c++/Makefile.am.inc $(srcdir)/atf-c++/detail/Makefile.am.inc $(srcdir)/atf-sh/Makefile.am.inc $(srcdir)/bootstrap/Makefile.am.inc $(srcdir)/doc/Makefile.am.inc $(srcdir)/test-programs/Makefile.am.inc:
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
@@ -1960,60 +1386,6 @@ distclean-hdr:
-rm -f bconfig.h stamp-h1
atf-c/defs.h: $(top_builddir)/config.status $(top_srcdir)/atf-c/defs.h.in
cd $(top_builddir) && $(SHELL) ./config.status $@
-tools/defs.hpp: $(top_builddir)/config.status $(top_srcdir)/tools/defs.hpp.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-tools/$(am__dirstamp):
- @$(MKDIR_P) tools
- @: > tools/$(am__dirstamp)
-tools/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) tools/$(DEPDIR)
- @: > tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-application.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-atffile.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-config.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-config_file.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-env.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-exceptions.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-expand.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-fs.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-io.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-parser.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-process.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-reader.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-requirements.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-signals.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-test-program.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-text.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-timers.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-ui.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_libtools_a-user.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/libtools.a: $(tools_libtools_a_OBJECTS) $(tools_libtools_a_DEPENDENCIES) $(EXTRA_tools_libtools_a_DEPENDENCIES) tools/$(am__dirstamp)
- $(AM_V_at)-rm -f tools/libtools.a
- $(AM_V_AR)$(tools_libtools_a_AR) tools/libtools.a $(tools_libtools_a_OBJECTS) $(tools_libtools_a_LIBADD)
- $(AM_V_at)$(RANLIB) tools/libtools.a
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
@@ -2509,55 +1881,6 @@ clean-tests_test_programsPROGRAMS:
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
-install-tests_toolsPROGRAMS: $(tests_tools_PROGRAMS)
- @$(NORMAL_INSTALL)
- @list='$(tests_tools_PROGRAMS)'; test -n "$(tests_toolsdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(tests_toolsdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(tests_toolsdir)" || exit 1; \
- fi; \
- for p in $$list; do echo "$$p $$p"; done | \
- sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p \
- || test -f $$p1 \
- ; then echo "$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n;h' \
- -e 's|.*|.|' \
- -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
- sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) files[d] = files[d] " " $$1; \
- else { print "f", $$3 "/" $$4, $$1; } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(tests_toolsdir)$$dir'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(tests_toolsdir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-tests_toolsPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(tests_tools_PROGRAMS)'; test -n "$(tests_toolsdir)" || list=; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' \
- `; \
- test -n "$$list" || exit 0; \
- echo " ( cd '$(DESTDIR)$(tests_toolsdir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(tests_toolsdir)" && rm -f $$files
-
-clean-tests_toolsPROGRAMS:
- @list='$(tests_tools_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
atf-c++/atf_c++_test.$(OBJEXT): atf-c++/$(am__dirstamp) \
atf-c++/$(DEPDIR)/$(am__dirstamp)
@@ -2802,18 +2125,6 @@ bootstrap/$(am__dirstamp):
bootstrap/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) bootstrap/$(DEPDIR)
@: > bootstrap/$(DEPDIR)/$(am__dirstamp)
-bootstrap/h_app_empty.$(OBJEXT): bootstrap/$(am__dirstamp) \
- bootstrap/$(DEPDIR)/$(am__dirstamp)
-
-bootstrap/h_app_empty$(EXEEXT): $(bootstrap_h_app_empty_OBJECTS) $(bootstrap_h_app_empty_DEPENDENCIES) $(EXTRA_bootstrap_h_app_empty_DEPENDENCIES) bootstrap/$(am__dirstamp)
- @rm -f bootstrap/h_app_empty$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(bootstrap_h_app_empty_OBJECTS) $(bootstrap_h_app_empty_LDADD) $(LIBS)
-bootstrap/h_app_opts_args.$(OBJEXT): bootstrap/$(am__dirstamp) \
- bootstrap/$(DEPDIR)/$(am__dirstamp)
-
-bootstrap/h_app_opts_args$(EXEEXT): $(bootstrap_h_app_opts_args_OBJECTS) $(bootstrap_h_app_opts_args_DEPENDENCIES) $(EXTRA_bootstrap_h_app_opts_args_DEPENDENCIES) bootstrap/$(am__dirstamp)
- @rm -f bootstrap/h_app_opts_args$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(bootstrap_h_app_opts_args_OBJECTS) $(bootstrap_h_app_opts_args_LDADD) $(LIBS)
bootstrap/h_tp_basic_c.$(OBJEXT): bootstrap/$(am__dirstamp) \
bootstrap/$(DEPDIR)/$(am__dirstamp)
@@ -2844,194 +2155,6 @@ test-programs/cpp_helpers.$(OBJEXT): test-programs/$(am__dirstamp) \
test-programs/cpp_helpers$(EXEEXT): $(test_programs_cpp_helpers_OBJECTS) $(test_programs_cpp_helpers_DEPENDENCIES) $(EXTRA_test_programs_cpp_helpers_DEPENDENCIES) test-programs/$(am__dirstamp)
@rm -f test-programs/cpp_helpers$(EXEEXT)
$(AM_V_CXXLD)$(CXXLINK) $(test_programs_cpp_helpers_OBJECTS) $(test_programs_cpp_helpers_LDADD) $(LIBS)
-tools/tools_application_test-application_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/application_test$(EXEEXT): $(tools_application_test_OBJECTS) $(tools_application_test_DEPENDENCIES) $(EXTRA_tools_application_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/application_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_application_test_OBJECTS) $(tools_application_test_LDADD) $(LIBS)
-tools/tools_atf_config-atf-config.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/atf-config$(EXEEXT): $(tools_atf_config_OBJECTS) $(tools_atf_config_DEPENDENCIES) $(EXTRA_tools_atf_config_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/atf-config$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_atf_config_OBJECTS) $(tools_atf_config_LDADD) $(LIBS)
-tools/tools_atf_report-atf-report.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/atf-report$(EXEEXT): $(tools_atf_report_OBJECTS) $(tools_atf_report_DEPENDENCIES) $(EXTRA_tools_atf_report_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/atf-report$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_atf_report_OBJECTS) $(tools_atf_report_LDADD) $(LIBS)
-tools/tools_atf_run-atf-run.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/atf-run$(EXEEXT): $(tools_atf_run_OBJECTS) $(tools_atf_run_DEPENDENCIES) $(EXTRA_tools_atf_run_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/atf-run$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_atf_run_OBJECTS) $(tools_atf_run_LDADD) $(LIBS)
-tools/tools_atf_version-atf-version.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/atf-version$(EXEEXT): $(tools_atf_version_OBJECTS) $(tools_atf_version_DEPENDENCIES) $(EXTRA_tools_atf_version_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/atf-version$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_atf_version_OBJECTS) $(tools_atf_version_LDADD) $(LIBS)
-tools/tools_atffile_test-atffile_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/atffile_test$(EXEEXT): $(tools_atffile_test_OBJECTS) $(tools_atffile_test_DEPENDENCIES) $(EXTRA_tools_atffile_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/atffile_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_atffile_test_OBJECTS) $(tools_atffile_test_LDADD) $(LIBS)
-tools/tools_auto_array_test-auto_array_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/auto_array_test$(EXEEXT): $(tools_auto_array_test_OBJECTS) $(tools_auto_array_test_DEPENDENCIES) $(EXTRA_tools_auto_array_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/auto_array_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_auto_array_test_OBJECTS) $(tools_auto_array_test_LDADD) $(LIBS)
-tools/bad_metadata_helper.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/bad_metadata_helper$(EXEEXT): $(tools_bad_metadata_helper_OBJECTS) $(tools_bad_metadata_helper_DEPENDENCIES) $(EXTRA_tools_bad_metadata_helper_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/bad_metadata_helper$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(tools_bad_metadata_helper_OBJECTS) $(tools_bad_metadata_helper_LDADD) $(LIBS)
-tools/tools_config_file_test-config_file_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/config_file_test$(EXEEXT): $(tools_config_file_test_OBJECTS) $(tools_config_file_test_DEPENDENCIES) $(EXTRA_tools_config_file_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/config_file_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_config_file_test_OBJECTS) $(tools_config_file_test_LDADD) $(LIBS)
-tools/tools_config_test-config_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/config_test$(EXEEXT): $(tools_config_test_OBJECTS) $(tools_config_test_DEPENDENCIES) $(EXTRA_tools_config_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/config_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_config_test_OBJECTS) $(tools_config_test_LDADD) $(LIBS)
-tools/tools_env_test-env_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/env_test$(EXEEXT): $(tools_env_test_OBJECTS) $(tools_env_test_DEPENDENCIES) $(EXTRA_tools_env_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/env_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_env_test_OBJECTS) $(tools_env_test_LDADD) $(LIBS)
-tools/tools_expand_test-expand_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/expand_test$(EXEEXT): $(tools_expand_test_OBJECTS) $(tools_expand_test_DEPENDENCIES) $(EXTRA_tools_expand_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/expand_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_expand_test_OBJECTS) $(tools_expand_test_LDADD) $(LIBS)
-tools/expect_helpers.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/expect_helpers$(EXEEXT): $(tools_expect_helpers_OBJECTS) $(tools_expect_helpers_DEPENDENCIES) $(EXTRA_tools_expect_helpers_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/expect_helpers$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(tools_expect_helpers_OBJECTS) $(tools_expect_helpers_LDADD) $(LIBS)
-tools/fail_helper.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/fail_helper$(EXEEXT): $(tools_fail_helper_OBJECTS) $(tools_fail_helper_DEPENDENCIES) $(EXTRA_tools_fail_helper_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/fail_helper$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_fail_helper_OBJECTS) $(tools_fail_helper_LDADD) $(LIBS)
-tools/tools_fs_test-fs_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/fs_test$(EXEEXT): $(tools_fs_test_OBJECTS) $(tools_fs_test_DEPENDENCIES) $(EXTRA_tools_fs_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/fs_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_fs_test_OBJECTS) $(tools_fs_test_LDADD) $(LIBS)
-tools/tools_io_test-io_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/io_test$(EXEEXT): $(tools_io_test_OBJECTS) $(tools_io_test_DEPENDENCIES) $(EXTRA_tools_io_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/io_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_io_test_OBJECTS) $(tools_io_test_LDADD) $(LIBS)
-tools/tools_misc_helpers-misc_helpers.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/misc_helpers$(EXEEXT): $(tools_misc_helpers_OBJECTS) $(tools_misc_helpers_DEPENDENCIES) $(EXTRA_tools_misc_helpers_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/misc_helpers$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_misc_helpers_OBJECTS) $(tools_misc_helpers_LDADD) $(LIBS)
-tools/tools_parser_test-parser_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/parser_test$(EXEEXT): $(tools_parser_test_OBJECTS) $(tools_parser_test_DEPENDENCIES) $(EXTRA_tools_parser_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/parser_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_parser_test_OBJECTS) $(tools_parser_test_LDADD) $(LIBS)
-tools/pass_helper.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/pass_helper$(EXEEXT): $(tools_pass_helper_OBJECTS) $(tools_pass_helper_DEPENDENCIES) $(EXTRA_tools_pass_helper_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/pass_helper$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_pass_helper_OBJECTS) $(tools_pass_helper_LDADD) $(LIBS)
-tools/process_helpers.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/process_helpers$(EXEEXT): $(tools_process_helpers_OBJECTS) $(tools_process_helpers_DEPENDENCIES) $(EXTRA_tools_process_helpers_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/process_helpers$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(tools_process_helpers_OBJECTS) $(tools_process_helpers_LDADD) $(LIBS)
-tools/tools_process_test-process_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/process_test$(EXEEXT): $(tools_process_test_OBJECTS) $(tools_process_test_DEPENDENCIES) $(EXTRA_tools_process_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/process_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_process_test_OBJECTS) $(tools_process_test_LDADD) $(LIBS)
-tools/tools_reader_test-reader_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/reader_test$(EXEEXT): $(tools_reader_test_OBJECTS) $(tools_reader_test_DEPENDENCIES) $(EXTRA_tools_reader_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/reader_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_reader_test_OBJECTS) $(tools_reader_test_LDADD) $(LIBS)
-tools/tools_requirements_test-requirements_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/requirements_test$(EXEEXT): $(tools_requirements_test_OBJECTS) $(tools_requirements_test_DEPENDENCIES) $(EXTRA_tools_requirements_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/requirements_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_requirements_test_OBJECTS) $(tools_requirements_test_LDADD) $(LIBS)
-tools/several_tcs_helper.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/several_tcs_helper$(EXEEXT): $(tools_several_tcs_helper_OBJECTS) $(tools_several_tcs_helper_DEPENDENCIES) $(EXTRA_tools_several_tcs_helper_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/several_tcs_helper$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(tools_several_tcs_helper_OBJECTS) $(tools_several_tcs_helper_LDADD) $(LIBS)
-tools/tools_signals_test-signals_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_signals_test-signals.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/signals_test$(EXEEXT): $(tools_signals_test_OBJECTS) $(tools_signals_test_DEPENDENCIES) $(EXTRA_tools_signals_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/signals_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_signals_test_OBJECTS) $(tools_signals_test_LDADD) $(LIBS)
-tools/tools_test_program_test-test_program_test.$(OBJEXT): \
- tools/$(am__dirstamp) tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/test_program_test$(EXEEXT): $(tools_test_program_test_OBJECTS) $(tools_test_program_test_DEPENDENCIES) $(EXTRA_tools_test_program_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/test_program_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_test_program_test_OBJECTS) $(tools_test_program_test_LDADD) $(LIBS)
-tools/tools_text_test-text_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_text_test-text.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/text_test$(EXEEXT): $(tools_text_test_OBJECTS) $(tools_text_test_DEPENDENCIES) $(EXTRA_tools_text_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/text_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_text_test_OBJECTS) $(tools_text_test_LDADD) $(LIBS)
-tools/tools_ui_test-ui_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_ui_test-ui.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/ui_test$(EXEEXT): $(tools_ui_test_OBJECTS) $(tools_ui_test_DEPENDENCIES) $(EXTRA_tools_ui_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/ui_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_ui_test_OBJECTS) $(tools_ui_test_LDADD) $(LIBS)
-tools/tools_user_test-user_test.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-tools/tools_user_test-user.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/user_test$(EXEEXT): $(tools_user_test_OBJECTS) $(tools_user_test_DEPENDENCIES) $(EXTRA_tools_user_test_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/user_test$(EXEEXT)
- $(AM_V_CXXLD)$(CXXLINK) $(tools_user_test_OBJECTS) $(tools_user_test_LDADD) $(LIBS)
-tools/zero_tcs_helper.$(OBJEXT): tools/$(am__dirstamp) \
- tools/$(DEPDIR)/$(am__dirstamp)
-
-tools/zero_tcs_helper$(EXEEXT): $(tools_zero_tcs_helper_OBJECTS) $(tools_zero_tcs_helper_DEPENDENCIES) $(EXTRA_tools_zero_tcs_helper_DEPENDENCIES) tools/$(am__dirstamp)
- @rm -f tools/zero_tcs_helper$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(tools_zero_tcs_helper_OBJECTS) $(tools_zero_tcs_helper_LDADD) $(LIBS)
install-tests_atf_cSCRIPTS: $(tests_atf_c_SCRIPTS)
@$(NORMAL_INSTALL)
@list='$(tests_atf_c_SCRIPTS)'; test -n "$(tests_atf_cdir)" || list=; \
@@ -3172,41 +2295,6 @@ uninstall-tests_test_programsSCRIPTS:
files=`for p in $$list; do echo "$$p"; done | \
sed -e 's,.*/,,;$(transform)'`; \
dir='$(DESTDIR)$(tests_test_programsdir)'; $(am__uninstall_files_from_dir)
-install-tests_toolsSCRIPTS: $(tests_tools_SCRIPTS)
- @$(NORMAL_INSTALL)
- @list='$(tests_tools_SCRIPTS)'; test -n "$(tests_toolsdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(tests_toolsdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(tests_toolsdir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n' \
- -e 'h;s|.*|.|' \
- -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) { files[d] = files[d] " " $$1; \
- if (++n[d] == $(am__install_max)) { \
- print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
- else { print "f", d "/" $$4, $$1 } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(tests_toolsdir)$$dir'"; \
- $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(tests_toolsdir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-tests_toolsSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(tests_tools_SCRIPTS)'; test -n "$(tests_toolsdir)" || exit 0; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 's,.*/,,;$(transform)'`; \
- dir='$(DESTDIR)$(tests_toolsdir)'; $(am__uninstall_files_from_dir)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
@@ -3221,7 +2309,6 @@ mostlyclean-compile:
-rm -f atf-sh/*.$(OBJEXT)
-rm -f bootstrap/*.$(OBJEXT)
-rm -f test-programs/*.$(OBJEXT)
- -rm -f tools/*.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@@ -3294,65 +2381,10 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@atf-c/detail/$(DEPDIR)/version_helper.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@atf-sh/$(DEPDIR)/atf-check.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@atf-sh/$(DEPDIR)/atf-sh.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@bootstrap/$(DEPDIR)/h_app_empty.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@bootstrap/$(DEPDIR)/h_app_opts_args.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@bootstrap/$(DEPDIR)/h_tp_basic_c.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@bootstrap/$(DEPDIR)/h_tp_basic_cpp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@test-programs/$(DEPDIR)/c_helpers.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@test-programs/$(DEPDIR)/cpp_helpers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/bad_metadata_helper.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/expect_helpers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/fail_helper.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/pass_helper.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/process_helpers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/several_tcs_helper.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_application_test-application_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_atf_config-atf-config.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_atf_report-atf-report.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_atf_run-atf-run.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_atf_version-atf-version.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_atffile_test-atffile_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_config_file_test-config_file_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_config_test-config_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_env_test-env_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_expand_test-expand_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_fs_test-fs_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_io_test-io_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-application.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-atffile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-config.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-config_file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-env.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-exceptions.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-expand.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-fs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-io.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-parser.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-process.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-reader.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-requirements.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-signals.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-test-program.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-text.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-timers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-ui.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_libtools_a-user.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_parser_test-parser_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_process_test-process_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_reader_test-reader_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_requirements_test-requirements_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_signals_test-signals.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_signals_test-signals_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_test_program_test-test_program_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_text_test-text.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_text_test-text_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_ui_test-ui.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_ui_test-ui_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_user_test-user.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/tools_user_test-user_test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@tools/$(DEPDIR)/zero_tcs_helper.Po@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
@@ -3528,650 +2560,6 @@ atf-c/detail/libatf_c_la-user.lo: atf-c/detail/user.c
@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
-tools/tools_libtools_a-application.o: tools/application.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-application.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-application.Tpo -c -o tools/tools_libtools_a-application.o `test -f 'tools/application.cpp' || echo '$(srcdir)/'`tools/application.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-application.Tpo tools/$(DEPDIR)/tools_libtools_a-application.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/application.cpp' object='tools/tools_libtools_a-application.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-application.o `test -f 'tools/application.cpp' || echo '$(srcdir)/'`tools/application.cpp
-
-tools/tools_libtools_a-application.obj: tools/application.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-application.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-application.Tpo -c -o tools/tools_libtools_a-application.obj `if test -f 'tools/application.cpp'; then $(CYGPATH_W) 'tools/application.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/application.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-application.Tpo tools/$(DEPDIR)/tools_libtools_a-application.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/application.cpp' object='tools/tools_libtools_a-application.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-application.obj `if test -f 'tools/application.cpp'; then $(CYGPATH_W) 'tools/application.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/application.cpp'; fi`
-
-tools/tools_libtools_a-atffile.o: tools/atffile.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-atffile.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-atffile.Tpo -c -o tools/tools_libtools_a-atffile.o `test -f 'tools/atffile.cpp' || echo '$(srcdir)/'`tools/atffile.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-atffile.Tpo tools/$(DEPDIR)/tools_libtools_a-atffile.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atffile.cpp' object='tools/tools_libtools_a-atffile.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-atffile.o `test -f 'tools/atffile.cpp' || echo '$(srcdir)/'`tools/atffile.cpp
-
-tools/tools_libtools_a-atffile.obj: tools/atffile.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-atffile.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-atffile.Tpo -c -o tools/tools_libtools_a-atffile.obj `if test -f 'tools/atffile.cpp'; then $(CYGPATH_W) 'tools/atffile.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atffile.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-atffile.Tpo tools/$(DEPDIR)/tools_libtools_a-atffile.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atffile.cpp' object='tools/tools_libtools_a-atffile.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-atffile.obj `if test -f 'tools/atffile.cpp'; then $(CYGPATH_W) 'tools/atffile.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atffile.cpp'; fi`
-
-tools/tools_libtools_a-config.o: tools/config.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-config.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-config.Tpo -c -o tools/tools_libtools_a-config.o `test -f 'tools/config.cpp' || echo '$(srcdir)/'`tools/config.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-config.Tpo tools/$(DEPDIR)/tools_libtools_a-config.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config.cpp' object='tools/tools_libtools_a-config.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-config.o `test -f 'tools/config.cpp' || echo '$(srcdir)/'`tools/config.cpp
-
-tools/tools_libtools_a-config.obj: tools/config.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-config.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-config.Tpo -c -o tools/tools_libtools_a-config.obj `if test -f 'tools/config.cpp'; then $(CYGPATH_W) 'tools/config.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-config.Tpo tools/$(DEPDIR)/tools_libtools_a-config.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config.cpp' object='tools/tools_libtools_a-config.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-config.obj `if test -f 'tools/config.cpp'; then $(CYGPATH_W) 'tools/config.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config.cpp'; fi`
-
-tools/tools_libtools_a-config_file.o: tools/config_file.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-config_file.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-config_file.Tpo -c -o tools/tools_libtools_a-config_file.o `test -f 'tools/config_file.cpp' || echo '$(srcdir)/'`tools/config_file.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-config_file.Tpo tools/$(DEPDIR)/tools_libtools_a-config_file.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config_file.cpp' object='tools/tools_libtools_a-config_file.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-config_file.o `test -f 'tools/config_file.cpp' || echo '$(srcdir)/'`tools/config_file.cpp
-
-tools/tools_libtools_a-config_file.obj: tools/config_file.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-config_file.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-config_file.Tpo -c -o tools/tools_libtools_a-config_file.obj `if test -f 'tools/config_file.cpp'; then $(CYGPATH_W) 'tools/config_file.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config_file.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-config_file.Tpo tools/$(DEPDIR)/tools_libtools_a-config_file.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config_file.cpp' object='tools/tools_libtools_a-config_file.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-config_file.obj `if test -f 'tools/config_file.cpp'; then $(CYGPATH_W) 'tools/config_file.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config_file.cpp'; fi`
-
-tools/tools_libtools_a-env.o: tools/env.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-env.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-env.Tpo -c -o tools/tools_libtools_a-env.o `test -f 'tools/env.cpp' || echo '$(srcdir)/'`tools/env.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-env.Tpo tools/$(DEPDIR)/tools_libtools_a-env.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/env.cpp' object='tools/tools_libtools_a-env.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-env.o `test -f 'tools/env.cpp' || echo '$(srcdir)/'`tools/env.cpp
-
-tools/tools_libtools_a-env.obj: tools/env.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-env.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-env.Tpo -c -o tools/tools_libtools_a-env.obj `if test -f 'tools/env.cpp'; then $(CYGPATH_W) 'tools/env.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/env.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-env.Tpo tools/$(DEPDIR)/tools_libtools_a-env.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/env.cpp' object='tools/tools_libtools_a-env.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-env.obj `if test -f 'tools/env.cpp'; then $(CYGPATH_W) 'tools/env.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/env.cpp'; fi`
-
-tools/tools_libtools_a-exceptions.o: tools/exceptions.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-exceptions.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-exceptions.Tpo -c -o tools/tools_libtools_a-exceptions.o `test -f 'tools/exceptions.cpp' || echo '$(srcdir)/'`tools/exceptions.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-exceptions.Tpo tools/$(DEPDIR)/tools_libtools_a-exceptions.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/exceptions.cpp' object='tools/tools_libtools_a-exceptions.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-exceptions.o `test -f 'tools/exceptions.cpp' || echo '$(srcdir)/'`tools/exceptions.cpp
-
-tools/tools_libtools_a-exceptions.obj: tools/exceptions.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-exceptions.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-exceptions.Tpo -c -o tools/tools_libtools_a-exceptions.obj `if test -f 'tools/exceptions.cpp'; then $(CYGPATH_W) 'tools/exceptions.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/exceptions.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-exceptions.Tpo tools/$(DEPDIR)/tools_libtools_a-exceptions.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/exceptions.cpp' object='tools/tools_libtools_a-exceptions.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-exceptions.obj `if test -f 'tools/exceptions.cpp'; then $(CYGPATH_W) 'tools/exceptions.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/exceptions.cpp'; fi`
-
-tools/tools_libtools_a-expand.o: tools/expand.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-expand.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-expand.Tpo -c -o tools/tools_libtools_a-expand.o `test -f 'tools/expand.cpp' || echo '$(srcdir)/'`tools/expand.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-expand.Tpo tools/$(DEPDIR)/tools_libtools_a-expand.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/expand.cpp' object='tools/tools_libtools_a-expand.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-expand.o `test -f 'tools/expand.cpp' || echo '$(srcdir)/'`tools/expand.cpp
-
-tools/tools_libtools_a-expand.obj: tools/expand.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-expand.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-expand.Tpo -c -o tools/tools_libtools_a-expand.obj `if test -f 'tools/expand.cpp'; then $(CYGPATH_W) 'tools/expand.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/expand.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-expand.Tpo tools/$(DEPDIR)/tools_libtools_a-expand.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/expand.cpp' object='tools/tools_libtools_a-expand.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-expand.obj `if test -f 'tools/expand.cpp'; then $(CYGPATH_W) 'tools/expand.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/expand.cpp'; fi`
-
-tools/tools_libtools_a-fs.o: tools/fs.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-fs.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-fs.Tpo -c -o tools/tools_libtools_a-fs.o `test -f 'tools/fs.cpp' || echo '$(srcdir)/'`tools/fs.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-fs.Tpo tools/$(DEPDIR)/tools_libtools_a-fs.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/fs.cpp' object='tools/tools_libtools_a-fs.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-fs.o `test -f 'tools/fs.cpp' || echo '$(srcdir)/'`tools/fs.cpp
-
-tools/tools_libtools_a-fs.obj: tools/fs.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-fs.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-fs.Tpo -c -o tools/tools_libtools_a-fs.obj `if test -f 'tools/fs.cpp'; then $(CYGPATH_W) 'tools/fs.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/fs.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-fs.Tpo tools/$(DEPDIR)/tools_libtools_a-fs.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/fs.cpp' object='tools/tools_libtools_a-fs.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-fs.obj `if test -f 'tools/fs.cpp'; then $(CYGPATH_W) 'tools/fs.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/fs.cpp'; fi`
-
-tools/tools_libtools_a-io.o: tools/io.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-io.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-io.Tpo -c -o tools/tools_libtools_a-io.o `test -f 'tools/io.cpp' || echo '$(srcdir)/'`tools/io.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-io.Tpo tools/$(DEPDIR)/tools_libtools_a-io.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/io.cpp' object='tools/tools_libtools_a-io.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-io.o `test -f 'tools/io.cpp' || echo '$(srcdir)/'`tools/io.cpp
-
-tools/tools_libtools_a-io.obj: tools/io.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-io.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-io.Tpo -c -o tools/tools_libtools_a-io.obj `if test -f 'tools/io.cpp'; then $(CYGPATH_W) 'tools/io.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/io.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-io.Tpo tools/$(DEPDIR)/tools_libtools_a-io.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/io.cpp' object='tools/tools_libtools_a-io.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-io.obj `if test -f 'tools/io.cpp'; then $(CYGPATH_W) 'tools/io.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/io.cpp'; fi`
-
-tools/tools_libtools_a-parser.o: tools/parser.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-parser.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-parser.Tpo -c -o tools/tools_libtools_a-parser.o `test -f 'tools/parser.cpp' || echo '$(srcdir)/'`tools/parser.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-parser.Tpo tools/$(DEPDIR)/tools_libtools_a-parser.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/parser.cpp' object='tools/tools_libtools_a-parser.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-parser.o `test -f 'tools/parser.cpp' || echo '$(srcdir)/'`tools/parser.cpp
-
-tools/tools_libtools_a-parser.obj: tools/parser.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-parser.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-parser.Tpo -c -o tools/tools_libtools_a-parser.obj `if test -f 'tools/parser.cpp'; then $(CYGPATH_W) 'tools/parser.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/parser.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-parser.Tpo tools/$(DEPDIR)/tools_libtools_a-parser.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/parser.cpp' object='tools/tools_libtools_a-parser.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-parser.obj `if test -f 'tools/parser.cpp'; then $(CYGPATH_W) 'tools/parser.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/parser.cpp'; fi`
-
-tools/tools_libtools_a-process.o: tools/process.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-process.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-process.Tpo -c -o tools/tools_libtools_a-process.o `test -f 'tools/process.cpp' || echo '$(srcdir)/'`tools/process.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-process.Tpo tools/$(DEPDIR)/tools_libtools_a-process.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/process.cpp' object='tools/tools_libtools_a-process.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-process.o `test -f 'tools/process.cpp' || echo '$(srcdir)/'`tools/process.cpp
-
-tools/tools_libtools_a-process.obj: tools/process.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-process.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-process.Tpo -c -o tools/tools_libtools_a-process.obj `if test -f 'tools/process.cpp'; then $(CYGPATH_W) 'tools/process.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/process.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-process.Tpo tools/$(DEPDIR)/tools_libtools_a-process.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/process.cpp' object='tools/tools_libtools_a-process.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-process.obj `if test -f 'tools/process.cpp'; then $(CYGPATH_W) 'tools/process.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/process.cpp'; fi`
-
-tools/tools_libtools_a-reader.o: tools/reader.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-reader.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-reader.Tpo -c -o tools/tools_libtools_a-reader.o `test -f 'tools/reader.cpp' || echo '$(srcdir)/'`tools/reader.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-reader.Tpo tools/$(DEPDIR)/tools_libtools_a-reader.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/reader.cpp' object='tools/tools_libtools_a-reader.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-reader.o `test -f 'tools/reader.cpp' || echo '$(srcdir)/'`tools/reader.cpp
-
-tools/tools_libtools_a-reader.obj: tools/reader.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-reader.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-reader.Tpo -c -o tools/tools_libtools_a-reader.obj `if test -f 'tools/reader.cpp'; then $(CYGPATH_W) 'tools/reader.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/reader.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-reader.Tpo tools/$(DEPDIR)/tools_libtools_a-reader.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/reader.cpp' object='tools/tools_libtools_a-reader.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-reader.obj `if test -f 'tools/reader.cpp'; then $(CYGPATH_W) 'tools/reader.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/reader.cpp'; fi`
-
-tools/tools_libtools_a-requirements.o: tools/requirements.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-requirements.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-requirements.Tpo -c -o tools/tools_libtools_a-requirements.o `test -f 'tools/requirements.cpp' || echo '$(srcdir)/'`tools/requirements.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-requirements.Tpo tools/$(DEPDIR)/tools_libtools_a-requirements.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/requirements.cpp' object='tools/tools_libtools_a-requirements.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-requirements.o `test -f 'tools/requirements.cpp' || echo '$(srcdir)/'`tools/requirements.cpp
-
-tools/tools_libtools_a-requirements.obj: tools/requirements.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-requirements.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-requirements.Tpo -c -o tools/tools_libtools_a-requirements.obj `if test -f 'tools/requirements.cpp'; then $(CYGPATH_W) 'tools/requirements.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/requirements.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-requirements.Tpo tools/$(DEPDIR)/tools_libtools_a-requirements.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/requirements.cpp' object='tools/tools_libtools_a-requirements.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-requirements.obj `if test -f 'tools/requirements.cpp'; then $(CYGPATH_W) 'tools/requirements.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/requirements.cpp'; fi`
-
-tools/tools_libtools_a-signals.o: tools/signals.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-signals.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-signals.Tpo -c -o tools/tools_libtools_a-signals.o `test -f 'tools/signals.cpp' || echo '$(srcdir)/'`tools/signals.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-signals.Tpo tools/$(DEPDIR)/tools_libtools_a-signals.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/signals.cpp' object='tools/tools_libtools_a-signals.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-signals.o `test -f 'tools/signals.cpp' || echo '$(srcdir)/'`tools/signals.cpp
-
-tools/tools_libtools_a-signals.obj: tools/signals.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-signals.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-signals.Tpo -c -o tools/tools_libtools_a-signals.obj `if test -f 'tools/signals.cpp'; then $(CYGPATH_W) 'tools/signals.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/signals.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-signals.Tpo tools/$(DEPDIR)/tools_libtools_a-signals.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/signals.cpp' object='tools/tools_libtools_a-signals.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-signals.obj `if test -f 'tools/signals.cpp'; then $(CYGPATH_W) 'tools/signals.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/signals.cpp'; fi`
-
-tools/tools_libtools_a-test-program.o: tools/test-program.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-test-program.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-test-program.Tpo -c -o tools/tools_libtools_a-test-program.o `test -f 'tools/test-program.cpp' || echo '$(srcdir)/'`tools/test-program.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-test-program.Tpo tools/$(DEPDIR)/tools_libtools_a-test-program.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/test-program.cpp' object='tools/tools_libtools_a-test-program.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-test-program.o `test -f 'tools/test-program.cpp' || echo '$(srcdir)/'`tools/test-program.cpp
-
-tools/tools_libtools_a-test-program.obj: tools/test-program.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-test-program.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-test-program.Tpo -c -o tools/tools_libtools_a-test-program.obj `if test -f 'tools/test-program.cpp'; then $(CYGPATH_W) 'tools/test-program.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/test-program.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-test-program.Tpo tools/$(DEPDIR)/tools_libtools_a-test-program.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/test-program.cpp' object='tools/tools_libtools_a-test-program.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-test-program.obj `if test -f 'tools/test-program.cpp'; then $(CYGPATH_W) 'tools/test-program.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/test-program.cpp'; fi`
-
-tools/tools_libtools_a-text.o: tools/text.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-text.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-text.Tpo -c -o tools/tools_libtools_a-text.o `test -f 'tools/text.cpp' || echo '$(srcdir)/'`tools/text.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-text.Tpo tools/$(DEPDIR)/tools_libtools_a-text.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/text.cpp' object='tools/tools_libtools_a-text.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-text.o `test -f 'tools/text.cpp' || echo '$(srcdir)/'`tools/text.cpp
-
-tools/tools_libtools_a-text.obj: tools/text.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-text.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-text.Tpo -c -o tools/tools_libtools_a-text.obj `if test -f 'tools/text.cpp'; then $(CYGPATH_W) 'tools/text.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/text.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-text.Tpo tools/$(DEPDIR)/tools_libtools_a-text.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/text.cpp' object='tools/tools_libtools_a-text.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-text.obj `if test -f 'tools/text.cpp'; then $(CYGPATH_W) 'tools/text.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/text.cpp'; fi`
-
-tools/tools_libtools_a-timers.o: tools/timers.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-timers.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-timers.Tpo -c -o tools/tools_libtools_a-timers.o `test -f 'tools/timers.cpp' || echo '$(srcdir)/'`tools/timers.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-timers.Tpo tools/$(DEPDIR)/tools_libtools_a-timers.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/timers.cpp' object='tools/tools_libtools_a-timers.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-timers.o `test -f 'tools/timers.cpp' || echo '$(srcdir)/'`tools/timers.cpp
-
-tools/tools_libtools_a-timers.obj: tools/timers.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-timers.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-timers.Tpo -c -o tools/tools_libtools_a-timers.obj `if test -f 'tools/timers.cpp'; then $(CYGPATH_W) 'tools/timers.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/timers.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-timers.Tpo tools/$(DEPDIR)/tools_libtools_a-timers.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/timers.cpp' object='tools/tools_libtools_a-timers.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-timers.obj `if test -f 'tools/timers.cpp'; then $(CYGPATH_W) 'tools/timers.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/timers.cpp'; fi`
-
-tools/tools_libtools_a-ui.o: tools/ui.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-ui.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-ui.Tpo -c -o tools/tools_libtools_a-ui.o `test -f 'tools/ui.cpp' || echo '$(srcdir)/'`tools/ui.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-ui.Tpo tools/$(DEPDIR)/tools_libtools_a-ui.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/ui.cpp' object='tools/tools_libtools_a-ui.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-ui.o `test -f 'tools/ui.cpp' || echo '$(srcdir)/'`tools/ui.cpp
-
-tools/tools_libtools_a-ui.obj: tools/ui.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-ui.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-ui.Tpo -c -o tools/tools_libtools_a-ui.obj `if test -f 'tools/ui.cpp'; then $(CYGPATH_W) 'tools/ui.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/ui.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-ui.Tpo tools/$(DEPDIR)/tools_libtools_a-ui.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/ui.cpp' object='tools/tools_libtools_a-ui.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-ui.obj `if test -f 'tools/ui.cpp'; then $(CYGPATH_W) 'tools/ui.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/ui.cpp'; fi`
-
-tools/tools_libtools_a-user.o: tools/user.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-user.o -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-user.Tpo -c -o tools/tools_libtools_a-user.o `test -f 'tools/user.cpp' || echo '$(srcdir)/'`tools/user.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-user.Tpo tools/$(DEPDIR)/tools_libtools_a-user.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/user.cpp' object='tools/tools_libtools_a-user.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-user.o `test -f 'tools/user.cpp' || echo '$(srcdir)/'`tools/user.cpp
-
-tools/tools_libtools_a-user.obj: tools/user.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_libtools_a-user.obj -MD -MP -MF tools/$(DEPDIR)/tools_libtools_a-user.Tpo -c -o tools/tools_libtools_a-user.obj `if test -f 'tools/user.cpp'; then $(CYGPATH_W) 'tools/user.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/user.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_libtools_a-user.Tpo tools/$(DEPDIR)/tools_libtools_a-user.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/user.cpp' object='tools/tools_libtools_a-user.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_libtools_a_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_libtools_a-user.obj `if test -f 'tools/user.cpp'; then $(CYGPATH_W) 'tools/user.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/user.cpp'; fi`
-
-tools/tools_application_test-application_test.o: tools/application_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_application_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_application_test-application_test.o -MD -MP -MF tools/$(DEPDIR)/tools_application_test-application_test.Tpo -c -o tools/tools_application_test-application_test.o `test -f 'tools/application_test.cpp' || echo '$(srcdir)/'`tools/application_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_application_test-application_test.Tpo tools/$(DEPDIR)/tools_application_test-application_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/application_test.cpp' object='tools/tools_application_test-application_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_application_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_application_test-application_test.o `test -f 'tools/application_test.cpp' || echo '$(srcdir)/'`tools/application_test.cpp
-
-tools/tools_application_test-application_test.obj: tools/application_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_application_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_application_test-application_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_application_test-application_test.Tpo -c -o tools/tools_application_test-application_test.obj `if test -f 'tools/application_test.cpp'; then $(CYGPATH_W) 'tools/application_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/application_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_application_test-application_test.Tpo tools/$(DEPDIR)/tools_application_test-application_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/application_test.cpp' object='tools/tools_application_test-application_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_application_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_application_test-application_test.obj `if test -f 'tools/application_test.cpp'; then $(CYGPATH_W) 'tools/application_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/application_test.cpp'; fi`
-
-tools/tools_atf_config-atf-config.o: tools/atf-config.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_config_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_config-atf-config.o -MD -MP -MF tools/$(DEPDIR)/tools_atf_config-atf-config.Tpo -c -o tools/tools_atf_config-atf-config.o `test -f 'tools/atf-config.cpp' || echo '$(srcdir)/'`tools/atf-config.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_config-atf-config.Tpo tools/$(DEPDIR)/tools_atf_config-atf-config.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-config.cpp' object='tools/tools_atf_config-atf-config.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_config_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_config-atf-config.o `test -f 'tools/atf-config.cpp' || echo '$(srcdir)/'`tools/atf-config.cpp
-
-tools/tools_atf_config-atf-config.obj: tools/atf-config.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_config_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_config-atf-config.obj -MD -MP -MF tools/$(DEPDIR)/tools_atf_config-atf-config.Tpo -c -o tools/tools_atf_config-atf-config.obj `if test -f 'tools/atf-config.cpp'; then $(CYGPATH_W) 'tools/atf-config.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-config.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_config-atf-config.Tpo tools/$(DEPDIR)/tools_atf_config-atf-config.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-config.cpp' object='tools/tools_atf_config-atf-config.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_config_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_config-atf-config.obj `if test -f 'tools/atf-config.cpp'; then $(CYGPATH_W) 'tools/atf-config.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-config.cpp'; fi`
-
-tools/tools_atf_report-atf-report.o: tools/atf-report.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_report_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_report-atf-report.o -MD -MP -MF tools/$(DEPDIR)/tools_atf_report-atf-report.Tpo -c -o tools/tools_atf_report-atf-report.o `test -f 'tools/atf-report.cpp' || echo '$(srcdir)/'`tools/atf-report.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_report-atf-report.Tpo tools/$(DEPDIR)/tools_atf_report-atf-report.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-report.cpp' object='tools/tools_atf_report-atf-report.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_report_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_report-atf-report.o `test -f 'tools/atf-report.cpp' || echo '$(srcdir)/'`tools/atf-report.cpp
-
-tools/tools_atf_report-atf-report.obj: tools/atf-report.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_report_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_report-atf-report.obj -MD -MP -MF tools/$(DEPDIR)/tools_atf_report-atf-report.Tpo -c -o tools/tools_atf_report-atf-report.obj `if test -f 'tools/atf-report.cpp'; then $(CYGPATH_W) 'tools/atf-report.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-report.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_report-atf-report.Tpo tools/$(DEPDIR)/tools_atf_report-atf-report.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-report.cpp' object='tools/tools_atf_report-atf-report.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_report_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_report-atf-report.obj `if test -f 'tools/atf-report.cpp'; then $(CYGPATH_W) 'tools/atf-report.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-report.cpp'; fi`
-
-tools/tools_atf_run-atf-run.o: tools/atf-run.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_run_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_run-atf-run.o -MD -MP -MF tools/$(DEPDIR)/tools_atf_run-atf-run.Tpo -c -o tools/tools_atf_run-atf-run.o `test -f 'tools/atf-run.cpp' || echo '$(srcdir)/'`tools/atf-run.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_run-atf-run.Tpo tools/$(DEPDIR)/tools_atf_run-atf-run.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-run.cpp' object='tools/tools_atf_run-atf-run.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_run_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_run-atf-run.o `test -f 'tools/atf-run.cpp' || echo '$(srcdir)/'`tools/atf-run.cpp
-
-tools/tools_atf_run-atf-run.obj: tools/atf-run.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_run_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_run-atf-run.obj -MD -MP -MF tools/$(DEPDIR)/tools_atf_run-atf-run.Tpo -c -o tools/tools_atf_run-atf-run.obj `if test -f 'tools/atf-run.cpp'; then $(CYGPATH_W) 'tools/atf-run.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-run.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_run-atf-run.Tpo tools/$(DEPDIR)/tools_atf_run-atf-run.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-run.cpp' object='tools/tools_atf_run-atf-run.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_run_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_run-atf-run.obj `if test -f 'tools/atf-run.cpp'; then $(CYGPATH_W) 'tools/atf-run.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-run.cpp'; fi`
-
-tools/tools_atf_version-atf-version.o: tools/atf-version.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_version_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_version-atf-version.o -MD -MP -MF tools/$(DEPDIR)/tools_atf_version-atf-version.Tpo -c -o tools/tools_atf_version-atf-version.o `test -f 'tools/atf-version.cpp' || echo '$(srcdir)/'`tools/atf-version.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_version-atf-version.Tpo tools/$(DEPDIR)/tools_atf_version-atf-version.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-version.cpp' object='tools/tools_atf_version-atf-version.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_version_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_version-atf-version.o `test -f 'tools/atf-version.cpp' || echo '$(srcdir)/'`tools/atf-version.cpp
-
-tools/tools_atf_version-atf-version.obj: tools/atf-version.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_version_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atf_version-atf-version.obj -MD -MP -MF tools/$(DEPDIR)/tools_atf_version-atf-version.Tpo -c -o tools/tools_atf_version-atf-version.obj `if test -f 'tools/atf-version.cpp'; then $(CYGPATH_W) 'tools/atf-version.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-version.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atf_version-atf-version.Tpo tools/$(DEPDIR)/tools_atf_version-atf-version.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atf-version.cpp' object='tools/tools_atf_version-atf-version.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atf_version_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atf_version-atf-version.obj `if test -f 'tools/atf-version.cpp'; then $(CYGPATH_W) 'tools/atf-version.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atf-version.cpp'; fi`
-
-tools/tools_atffile_test-atffile_test.o: tools/atffile_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atffile_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atffile_test-atffile_test.o -MD -MP -MF tools/$(DEPDIR)/tools_atffile_test-atffile_test.Tpo -c -o tools/tools_atffile_test-atffile_test.o `test -f 'tools/atffile_test.cpp' || echo '$(srcdir)/'`tools/atffile_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atffile_test-atffile_test.Tpo tools/$(DEPDIR)/tools_atffile_test-atffile_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atffile_test.cpp' object='tools/tools_atffile_test-atffile_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atffile_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atffile_test-atffile_test.o `test -f 'tools/atffile_test.cpp' || echo '$(srcdir)/'`tools/atffile_test.cpp
-
-tools/tools_atffile_test-atffile_test.obj: tools/atffile_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atffile_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_atffile_test-atffile_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_atffile_test-atffile_test.Tpo -c -o tools/tools_atffile_test-atffile_test.obj `if test -f 'tools/atffile_test.cpp'; then $(CYGPATH_W) 'tools/atffile_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atffile_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_atffile_test-atffile_test.Tpo tools/$(DEPDIR)/tools_atffile_test-atffile_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/atffile_test.cpp' object='tools/tools_atffile_test-atffile_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_atffile_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_atffile_test-atffile_test.obj `if test -f 'tools/atffile_test.cpp'; then $(CYGPATH_W) 'tools/atffile_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/atffile_test.cpp'; fi`
-
-tools/tools_auto_array_test-auto_array_test.o: tools/auto_array_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_auto_array_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_auto_array_test-auto_array_test.o -MD -MP -MF tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Tpo -c -o tools/tools_auto_array_test-auto_array_test.o `test -f 'tools/auto_array_test.cpp' || echo '$(srcdir)/'`tools/auto_array_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Tpo tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/auto_array_test.cpp' object='tools/tools_auto_array_test-auto_array_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_auto_array_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_auto_array_test-auto_array_test.o `test -f 'tools/auto_array_test.cpp' || echo '$(srcdir)/'`tools/auto_array_test.cpp
-
-tools/tools_auto_array_test-auto_array_test.obj: tools/auto_array_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_auto_array_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_auto_array_test-auto_array_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Tpo -c -o tools/tools_auto_array_test-auto_array_test.obj `if test -f 'tools/auto_array_test.cpp'; then $(CYGPATH_W) 'tools/auto_array_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/auto_array_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Tpo tools/$(DEPDIR)/tools_auto_array_test-auto_array_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/auto_array_test.cpp' object='tools/tools_auto_array_test-auto_array_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_auto_array_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_auto_array_test-auto_array_test.obj `if test -f 'tools/auto_array_test.cpp'; then $(CYGPATH_W) 'tools/auto_array_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/auto_array_test.cpp'; fi`
-
-tools/tools_config_file_test-config_file_test.o: tools/config_file_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_file_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_config_file_test-config_file_test.o -MD -MP -MF tools/$(DEPDIR)/tools_config_file_test-config_file_test.Tpo -c -o tools/tools_config_file_test-config_file_test.o `test -f 'tools/config_file_test.cpp' || echo '$(srcdir)/'`tools/config_file_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_config_file_test-config_file_test.Tpo tools/$(DEPDIR)/tools_config_file_test-config_file_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config_file_test.cpp' object='tools/tools_config_file_test-config_file_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_file_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_config_file_test-config_file_test.o `test -f 'tools/config_file_test.cpp' || echo '$(srcdir)/'`tools/config_file_test.cpp
-
-tools/tools_config_file_test-config_file_test.obj: tools/config_file_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_file_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_config_file_test-config_file_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_config_file_test-config_file_test.Tpo -c -o tools/tools_config_file_test-config_file_test.obj `if test -f 'tools/config_file_test.cpp'; then $(CYGPATH_W) 'tools/config_file_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config_file_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_config_file_test-config_file_test.Tpo tools/$(DEPDIR)/tools_config_file_test-config_file_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config_file_test.cpp' object='tools/tools_config_file_test-config_file_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_file_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_config_file_test-config_file_test.obj `if test -f 'tools/config_file_test.cpp'; then $(CYGPATH_W) 'tools/config_file_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config_file_test.cpp'; fi`
-
-tools/tools_config_test-config_test.o: tools/config_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_config_test-config_test.o -MD -MP -MF tools/$(DEPDIR)/tools_config_test-config_test.Tpo -c -o tools/tools_config_test-config_test.o `test -f 'tools/config_test.cpp' || echo '$(srcdir)/'`tools/config_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_config_test-config_test.Tpo tools/$(DEPDIR)/tools_config_test-config_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config_test.cpp' object='tools/tools_config_test-config_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_config_test-config_test.o `test -f 'tools/config_test.cpp' || echo '$(srcdir)/'`tools/config_test.cpp
-
-tools/tools_config_test-config_test.obj: tools/config_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_config_test-config_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_config_test-config_test.Tpo -c -o tools/tools_config_test-config_test.obj `if test -f 'tools/config_test.cpp'; then $(CYGPATH_W) 'tools/config_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_config_test-config_test.Tpo tools/$(DEPDIR)/tools_config_test-config_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/config_test.cpp' object='tools/tools_config_test-config_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_config_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_config_test-config_test.obj `if test -f 'tools/config_test.cpp'; then $(CYGPATH_W) 'tools/config_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/config_test.cpp'; fi`
-
-tools/tools_env_test-env_test.o: tools/env_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_env_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_env_test-env_test.o -MD -MP -MF tools/$(DEPDIR)/tools_env_test-env_test.Tpo -c -o tools/tools_env_test-env_test.o `test -f 'tools/env_test.cpp' || echo '$(srcdir)/'`tools/env_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_env_test-env_test.Tpo tools/$(DEPDIR)/tools_env_test-env_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/env_test.cpp' object='tools/tools_env_test-env_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_env_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_env_test-env_test.o `test -f 'tools/env_test.cpp' || echo '$(srcdir)/'`tools/env_test.cpp
-
-tools/tools_env_test-env_test.obj: tools/env_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_env_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_env_test-env_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_env_test-env_test.Tpo -c -o tools/tools_env_test-env_test.obj `if test -f 'tools/env_test.cpp'; then $(CYGPATH_W) 'tools/env_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/env_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_env_test-env_test.Tpo tools/$(DEPDIR)/tools_env_test-env_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/env_test.cpp' object='tools/tools_env_test-env_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_env_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_env_test-env_test.obj `if test -f 'tools/env_test.cpp'; then $(CYGPATH_W) 'tools/env_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/env_test.cpp'; fi`
-
-tools/tools_expand_test-expand_test.o: tools/expand_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_expand_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_expand_test-expand_test.o -MD -MP -MF tools/$(DEPDIR)/tools_expand_test-expand_test.Tpo -c -o tools/tools_expand_test-expand_test.o `test -f 'tools/expand_test.cpp' || echo '$(srcdir)/'`tools/expand_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_expand_test-expand_test.Tpo tools/$(DEPDIR)/tools_expand_test-expand_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/expand_test.cpp' object='tools/tools_expand_test-expand_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_expand_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_expand_test-expand_test.o `test -f 'tools/expand_test.cpp' || echo '$(srcdir)/'`tools/expand_test.cpp
-
-tools/tools_expand_test-expand_test.obj: tools/expand_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_expand_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_expand_test-expand_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_expand_test-expand_test.Tpo -c -o tools/tools_expand_test-expand_test.obj `if test -f 'tools/expand_test.cpp'; then $(CYGPATH_W) 'tools/expand_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/expand_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_expand_test-expand_test.Tpo tools/$(DEPDIR)/tools_expand_test-expand_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/expand_test.cpp' object='tools/tools_expand_test-expand_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_expand_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_expand_test-expand_test.obj `if test -f 'tools/expand_test.cpp'; then $(CYGPATH_W) 'tools/expand_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/expand_test.cpp'; fi`
-
-tools/tools_fs_test-fs_test.o: tools/fs_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_fs_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_fs_test-fs_test.o -MD -MP -MF tools/$(DEPDIR)/tools_fs_test-fs_test.Tpo -c -o tools/tools_fs_test-fs_test.o `test -f 'tools/fs_test.cpp' || echo '$(srcdir)/'`tools/fs_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_fs_test-fs_test.Tpo tools/$(DEPDIR)/tools_fs_test-fs_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/fs_test.cpp' object='tools/tools_fs_test-fs_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_fs_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_fs_test-fs_test.o `test -f 'tools/fs_test.cpp' || echo '$(srcdir)/'`tools/fs_test.cpp
-
-tools/tools_fs_test-fs_test.obj: tools/fs_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_fs_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_fs_test-fs_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_fs_test-fs_test.Tpo -c -o tools/tools_fs_test-fs_test.obj `if test -f 'tools/fs_test.cpp'; then $(CYGPATH_W) 'tools/fs_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/fs_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_fs_test-fs_test.Tpo tools/$(DEPDIR)/tools_fs_test-fs_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/fs_test.cpp' object='tools/tools_fs_test-fs_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_fs_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_fs_test-fs_test.obj `if test -f 'tools/fs_test.cpp'; then $(CYGPATH_W) 'tools/fs_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/fs_test.cpp'; fi`
-
-tools/tools_io_test-io_test.o: tools/io_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_io_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_io_test-io_test.o -MD -MP -MF tools/$(DEPDIR)/tools_io_test-io_test.Tpo -c -o tools/tools_io_test-io_test.o `test -f 'tools/io_test.cpp' || echo '$(srcdir)/'`tools/io_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_io_test-io_test.Tpo tools/$(DEPDIR)/tools_io_test-io_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/io_test.cpp' object='tools/tools_io_test-io_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_io_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_io_test-io_test.o `test -f 'tools/io_test.cpp' || echo '$(srcdir)/'`tools/io_test.cpp
-
-tools/tools_io_test-io_test.obj: tools/io_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_io_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_io_test-io_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_io_test-io_test.Tpo -c -o tools/tools_io_test-io_test.obj `if test -f 'tools/io_test.cpp'; then $(CYGPATH_W) 'tools/io_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/io_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_io_test-io_test.Tpo tools/$(DEPDIR)/tools_io_test-io_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/io_test.cpp' object='tools/tools_io_test-io_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_io_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_io_test-io_test.obj `if test -f 'tools/io_test.cpp'; then $(CYGPATH_W) 'tools/io_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/io_test.cpp'; fi`
-
-tools/tools_misc_helpers-misc_helpers.o: tools/misc_helpers.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_misc_helpers_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_misc_helpers-misc_helpers.o -MD -MP -MF tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Tpo -c -o tools/tools_misc_helpers-misc_helpers.o `test -f 'tools/misc_helpers.cpp' || echo '$(srcdir)/'`tools/misc_helpers.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Tpo tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/misc_helpers.cpp' object='tools/tools_misc_helpers-misc_helpers.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_misc_helpers_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_misc_helpers-misc_helpers.o `test -f 'tools/misc_helpers.cpp' || echo '$(srcdir)/'`tools/misc_helpers.cpp
-
-tools/tools_misc_helpers-misc_helpers.obj: tools/misc_helpers.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_misc_helpers_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_misc_helpers-misc_helpers.obj -MD -MP -MF tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Tpo -c -o tools/tools_misc_helpers-misc_helpers.obj `if test -f 'tools/misc_helpers.cpp'; then $(CYGPATH_W) 'tools/misc_helpers.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/misc_helpers.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Tpo tools/$(DEPDIR)/tools_misc_helpers-misc_helpers.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/misc_helpers.cpp' object='tools/tools_misc_helpers-misc_helpers.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_misc_helpers_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_misc_helpers-misc_helpers.obj `if test -f 'tools/misc_helpers.cpp'; then $(CYGPATH_W) 'tools/misc_helpers.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/misc_helpers.cpp'; fi`
-
-tools/tools_parser_test-parser_test.o: tools/parser_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_parser_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_parser_test-parser_test.o -MD -MP -MF tools/$(DEPDIR)/tools_parser_test-parser_test.Tpo -c -o tools/tools_parser_test-parser_test.o `test -f 'tools/parser_test.cpp' || echo '$(srcdir)/'`tools/parser_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_parser_test-parser_test.Tpo tools/$(DEPDIR)/tools_parser_test-parser_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/parser_test.cpp' object='tools/tools_parser_test-parser_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_parser_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_parser_test-parser_test.o `test -f 'tools/parser_test.cpp' || echo '$(srcdir)/'`tools/parser_test.cpp
-
-tools/tools_parser_test-parser_test.obj: tools/parser_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_parser_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_parser_test-parser_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_parser_test-parser_test.Tpo -c -o tools/tools_parser_test-parser_test.obj `if test -f 'tools/parser_test.cpp'; then $(CYGPATH_W) 'tools/parser_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/parser_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_parser_test-parser_test.Tpo tools/$(DEPDIR)/tools_parser_test-parser_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/parser_test.cpp' object='tools/tools_parser_test-parser_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_parser_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_parser_test-parser_test.obj `if test -f 'tools/parser_test.cpp'; then $(CYGPATH_W) 'tools/parser_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/parser_test.cpp'; fi`
-
-tools/tools_process_test-process_test.o: tools/process_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_process_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_process_test-process_test.o -MD -MP -MF tools/$(DEPDIR)/tools_process_test-process_test.Tpo -c -o tools/tools_process_test-process_test.o `test -f 'tools/process_test.cpp' || echo '$(srcdir)/'`tools/process_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_process_test-process_test.Tpo tools/$(DEPDIR)/tools_process_test-process_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/process_test.cpp' object='tools/tools_process_test-process_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_process_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_process_test-process_test.o `test -f 'tools/process_test.cpp' || echo '$(srcdir)/'`tools/process_test.cpp
-
-tools/tools_process_test-process_test.obj: tools/process_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_process_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_process_test-process_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_process_test-process_test.Tpo -c -o tools/tools_process_test-process_test.obj `if test -f 'tools/process_test.cpp'; then $(CYGPATH_W) 'tools/process_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/process_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_process_test-process_test.Tpo tools/$(DEPDIR)/tools_process_test-process_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/process_test.cpp' object='tools/tools_process_test-process_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_process_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_process_test-process_test.obj `if test -f 'tools/process_test.cpp'; then $(CYGPATH_W) 'tools/process_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/process_test.cpp'; fi`
-
-tools/tools_reader_test-reader_test.o: tools/reader_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_reader_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_reader_test-reader_test.o -MD -MP -MF tools/$(DEPDIR)/tools_reader_test-reader_test.Tpo -c -o tools/tools_reader_test-reader_test.o `test -f 'tools/reader_test.cpp' || echo '$(srcdir)/'`tools/reader_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_reader_test-reader_test.Tpo tools/$(DEPDIR)/tools_reader_test-reader_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/reader_test.cpp' object='tools/tools_reader_test-reader_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_reader_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_reader_test-reader_test.o `test -f 'tools/reader_test.cpp' || echo '$(srcdir)/'`tools/reader_test.cpp
-
-tools/tools_reader_test-reader_test.obj: tools/reader_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_reader_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_reader_test-reader_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_reader_test-reader_test.Tpo -c -o tools/tools_reader_test-reader_test.obj `if test -f 'tools/reader_test.cpp'; then $(CYGPATH_W) 'tools/reader_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/reader_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_reader_test-reader_test.Tpo tools/$(DEPDIR)/tools_reader_test-reader_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/reader_test.cpp' object='tools/tools_reader_test-reader_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_reader_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_reader_test-reader_test.obj `if test -f 'tools/reader_test.cpp'; then $(CYGPATH_W) 'tools/reader_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/reader_test.cpp'; fi`
-
-tools/tools_requirements_test-requirements_test.o: tools/requirements_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_requirements_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_requirements_test-requirements_test.o -MD -MP -MF tools/$(DEPDIR)/tools_requirements_test-requirements_test.Tpo -c -o tools/tools_requirements_test-requirements_test.o `test -f 'tools/requirements_test.cpp' || echo '$(srcdir)/'`tools/requirements_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_requirements_test-requirements_test.Tpo tools/$(DEPDIR)/tools_requirements_test-requirements_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/requirements_test.cpp' object='tools/tools_requirements_test-requirements_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_requirements_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_requirements_test-requirements_test.o `test -f 'tools/requirements_test.cpp' || echo '$(srcdir)/'`tools/requirements_test.cpp
-
-tools/tools_requirements_test-requirements_test.obj: tools/requirements_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_requirements_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_requirements_test-requirements_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_requirements_test-requirements_test.Tpo -c -o tools/tools_requirements_test-requirements_test.obj `if test -f 'tools/requirements_test.cpp'; then $(CYGPATH_W) 'tools/requirements_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/requirements_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_requirements_test-requirements_test.Tpo tools/$(DEPDIR)/tools_requirements_test-requirements_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/requirements_test.cpp' object='tools/tools_requirements_test-requirements_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_requirements_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_requirements_test-requirements_test.obj `if test -f 'tools/requirements_test.cpp'; then $(CYGPATH_W) 'tools/requirements_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/requirements_test.cpp'; fi`
-
-tools/tools_signals_test-signals_test.o: tools/signals_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_signals_test-signals_test.o -MD -MP -MF tools/$(DEPDIR)/tools_signals_test-signals_test.Tpo -c -o tools/tools_signals_test-signals_test.o `test -f 'tools/signals_test.cpp' || echo '$(srcdir)/'`tools/signals_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_signals_test-signals_test.Tpo tools/$(DEPDIR)/tools_signals_test-signals_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/signals_test.cpp' object='tools/tools_signals_test-signals_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_signals_test-signals_test.o `test -f 'tools/signals_test.cpp' || echo '$(srcdir)/'`tools/signals_test.cpp
-
-tools/tools_signals_test-signals_test.obj: tools/signals_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_signals_test-signals_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_signals_test-signals_test.Tpo -c -o tools/tools_signals_test-signals_test.obj `if test -f 'tools/signals_test.cpp'; then $(CYGPATH_W) 'tools/signals_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/signals_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_signals_test-signals_test.Tpo tools/$(DEPDIR)/tools_signals_test-signals_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/signals_test.cpp' object='tools/tools_signals_test-signals_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_signals_test-signals_test.obj `if test -f 'tools/signals_test.cpp'; then $(CYGPATH_W) 'tools/signals_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/signals_test.cpp'; fi`
-
-tools/tools_signals_test-signals.o: tools/signals.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_signals_test-signals.o -MD -MP -MF tools/$(DEPDIR)/tools_signals_test-signals.Tpo -c -o tools/tools_signals_test-signals.o `test -f 'tools/signals.cpp' || echo '$(srcdir)/'`tools/signals.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_signals_test-signals.Tpo tools/$(DEPDIR)/tools_signals_test-signals.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/signals.cpp' object='tools/tools_signals_test-signals.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_signals_test-signals.o `test -f 'tools/signals.cpp' || echo '$(srcdir)/'`tools/signals.cpp
-
-tools/tools_signals_test-signals.obj: tools/signals.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_signals_test-signals.obj -MD -MP -MF tools/$(DEPDIR)/tools_signals_test-signals.Tpo -c -o tools/tools_signals_test-signals.obj `if test -f 'tools/signals.cpp'; then $(CYGPATH_W) 'tools/signals.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/signals.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_signals_test-signals.Tpo tools/$(DEPDIR)/tools_signals_test-signals.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/signals.cpp' object='tools/tools_signals_test-signals.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_signals_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_signals_test-signals.obj `if test -f 'tools/signals.cpp'; then $(CYGPATH_W) 'tools/signals.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/signals.cpp'; fi`
-
-tools/tools_test_program_test-test_program_test.o: tools/test_program_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_test_program_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_test_program_test-test_program_test.o -MD -MP -MF tools/$(DEPDIR)/tools_test_program_test-test_program_test.Tpo -c -o tools/tools_test_program_test-test_program_test.o `test -f 'tools/test_program_test.cpp' || echo '$(srcdir)/'`tools/test_program_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_test_program_test-test_program_test.Tpo tools/$(DEPDIR)/tools_test_program_test-test_program_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/test_program_test.cpp' object='tools/tools_test_program_test-test_program_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_test_program_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_test_program_test-test_program_test.o `test -f 'tools/test_program_test.cpp' || echo '$(srcdir)/'`tools/test_program_test.cpp
-
-tools/tools_test_program_test-test_program_test.obj: tools/test_program_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_test_program_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_test_program_test-test_program_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_test_program_test-test_program_test.Tpo -c -o tools/tools_test_program_test-test_program_test.obj `if test -f 'tools/test_program_test.cpp'; then $(CYGPATH_W) 'tools/test_program_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/test_program_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_test_program_test-test_program_test.Tpo tools/$(DEPDIR)/tools_test_program_test-test_program_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/test_program_test.cpp' object='tools/tools_test_program_test-test_program_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_test_program_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_test_program_test-test_program_test.obj `if test -f 'tools/test_program_test.cpp'; then $(CYGPATH_W) 'tools/test_program_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/test_program_test.cpp'; fi`
-
-tools/tools_text_test-text_test.o: tools/text_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_text_test-text_test.o -MD -MP -MF tools/$(DEPDIR)/tools_text_test-text_test.Tpo -c -o tools/tools_text_test-text_test.o `test -f 'tools/text_test.cpp' || echo '$(srcdir)/'`tools/text_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_text_test-text_test.Tpo tools/$(DEPDIR)/tools_text_test-text_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/text_test.cpp' object='tools/tools_text_test-text_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_text_test-text_test.o `test -f 'tools/text_test.cpp' || echo '$(srcdir)/'`tools/text_test.cpp
-
-tools/tools_text_test-text_test.obj: tools/text_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_text_test-text_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_text_test-text_test.Tpo -c -o tools/tools_text_test-text_test.obj `if test -f 'tools/text_test.cpp'; then $(CYGPATH_W) 'tools/text_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/text_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_text_test-text_test.Tpo tools/$(DEPDIR)/tools_text_test-text_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/text_test.cpp' object='tools/tools_text_test-text_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_text_test-text_test.obj `if test -f 'tools/text_test.cpp'; then $(CYGPATH_W) 'tools/text_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/text_test.cpp'; fi`
-
-tools/tools_text_test-text.o: tools/text.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_text_test-text.o -MD -MP -MF tools/$(DEPDIR)/tools_text_test-text.Tpo -c -o tools/tools_text_test-text.o `test -f 'tools/text.cpp' || echo '$(srcdir)/'`tools/text.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_text_test-text.Tpo tools/$(DEPDIR)/tools_text_test-text.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/text.cpp' object='tools/tools_text_test-text.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_text_test-text.o `test -f 'tools/text.cpp' || echo '$(srcdir)/'`tools/text.cpp
-
-tools/tools_text_test-text.obj: tools/text.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_text_test-text.obj -MD -MP -MF tools/$(DEPDIR)/tools_text_test-text.Tpo -c -o tools/tools_text_test-text.obj `if test -f 'tools/text.cpp'; then $(CYGPATH_W) 'tools/text.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/text.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_text_test-text.Tpo tools/$(DEPDIR)/tools_text_test-text.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/text.cpp' object='tools/tools_text_test-text.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_text_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_text_test-text.obj `if test -f 'tools/text.cpp'; then $(CYGPATH_W) 'tools/text.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/text.cpp'; fi`
-
-tools/tools_ui_test-ui_test.o: tools/ui_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_ui_test-ui_test.o -MD -MP -MF tools/$(DEPDIR)/tools_ui_test-ui_test.Tpo -c -o tools/tools_ui_test-ui_test.o `test -f 'tools/ui_test.cpp' || echo '$(srcdir)/'`tools/ui_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_ui_test-ui_test.Tpo tools/$(DEPDIR)/tools_ui_test-ui_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/ui_test.cpp' object='tools/tools_ui_test-ui_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_ui_test-ui_test.o `test -f 'tools/ui_test.cpp' || echo '$(srcdir)/'`tools/ui_test.cpp
-
-tools/tools_ui_test-ui_test.obj: tools/ui_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_ui_test-ui_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_ui_test-ui_test.Tpo -c -o tools/tools_ui_test-ui_test.obj `if test -f 'tools/ui_test.cpp'; then $(CYGPATH_W) 'tools/ui_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/ui_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_ui_test-ui_test.Tpo tools/$(DEPDIR)/tools_ui_test-ui_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/ui_test.cpp' object='tools/tools_ui_test-ui_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_ui_test-ui_test.obj `if test -f 'tools/ui_test.cpp'; then $(CYGPATH_W) 'tools/ui_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/ui_test.cpp'; fi`
-
-tools/tools_ui_test-ui.o: tools/ui.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_ui_test-ui.o -MD -MP -MF tools/$(DEPDIR)/tools_ui_test-ui.Tpo -c -o tools/tools_ui_test-ui.o `test -f 'tools/ui.cpp' || echo '$(srcdir)/'`tools/ui.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_ui_test-ui.Tpo tools/$(DEPDIR)/tools_ui_test-ui.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/ui.cpp' object='tools/tools_ui_test-ui.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_ui_test-ui.o `test -f 'tools/ui.cpp' || echo '$(srcdir)/'`tools/ui.cpp
-
-tools/tools_ui_test-ui.obj: tools/ui.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_ui_test-ui.obj -MD -MP -MF tools/$(DEPDIR)/tools_ui_test-ui.Tpo -c -o tools/tools_ui_test-ui.obj `if test -f 'tools/ui.cpp'; then $(CYGPATH_W) 'tools/ui.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/ui.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_ui_test-ui.Tpo tools/$(DEPDIR)/tools_ui_test-ui.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/ui.cpp' object='tools/tools_ui_test-ui.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_ui_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_ui_test-ui.obj `if test -f 'tools/ui.cpp'; then $(CYGPATH_W) 'tools/ui.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/ui.cpp'; fi`
-
-tools/tools_user_test-user_test.o: tools/user_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_user_test-user_test.o -MD -MP -MF tools/$(DEPDIR)/tools_user_test-user_test.Tpo -c -o tools/tools_user_test-user_test.o `test -f 'tools/user_test.cpp' || echo '$(srcdir)/'`tools/user_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_user_test-user_test.Tpo tools/$(DEPDIR)/tools_user_test-user_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/user_test.cpp' object='tools/tools_user_test-user_test.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_user_test-user_test.o `test -f 'tools/user_test.cpp' || echo '$(srcdir)/'`tools/user_test.cpp
-
-tools/tools_user_test-user_test.obj: tools/user_test.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_user_test-user_test.obj -MD -MP -MF tools/$(DEPDIR)/tools_user_test-user_test.Tpo -c -o tools/tools_user_test-user_test.obj `if test -f 'tools/user_test.cpp'; then $(CYGPATH_W) 'tools/user_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/user_test.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_user_test-user_test.Tpo tools/$(DEPDIR)/tools_user_test-user_test.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/user_test.cpp' object='tools/tools_user_test-user_test.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_user_test-user_test.obj `if test -f 'tools/user_test.cpp'; then $(CYGPATH_W) 'tools/user_test.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/user_test.cpp'; fi`
-
-tools/tools_user_test-user.o: tools/user.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_user_test-user.o -MD -MP -MF tools/$(DEPDIR)/tools_user_test-user.Tpo -c -o tools/tools_user_test-user.o `test -f 'tools/user.cpp' || echo '$(srcdir)/'`tools/user.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_user_test-user.Tpo tools/$(DEPDIR)/tools_user_test-user.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/user.cpp' object='tools/tools_user_test-user.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_user_test-user.o `test -f 'tools/user.cpp' || echo '$(srcdir)/'`tools/user.cpp
-
-tools/tools_user_test-user.obj: tools/user.cpp
-@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT tools/tools_user_test-user.obj -MD -MP -MF tools/$(DEPDIR)/tools_user_test-user.Tpo -c -o tools/tools_user_test-user.obj `if test -f 'tools/user.cpp'; then $(CYGPATH_W) 'tools/user.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/user.cpp'; fi`
-@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) tools/$(DEPDIR)/tools_user_test-user.Tpo tools/$(DEPDIR)/tools_user_test-user.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tools/user.cpp' object='tools/tools_user_test-user.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_user_test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o tools/tools_user_test-user.obj `if test -f 'tools/user.cpp'; then $(CYGPATH_W) 'tools/user.cpp'; else $(CYGPATH_W) '$(srcdir)/tools/user.cpp'; fi`
-
mostlyclean-libtool:
-rm -f *.lo
@@ -4184,7 +2572,6 @@ clean-libtool:
-rm -rf atf-sh/.libs atf-sh/_libs
-rm -rf bootstrap/.libs bootstrap/_libs
-rm -rf test-programs/.libs test-programs/_libs
- -rm -rf tools/.libs tools/_libs
distclean-libtool:
-rm -f libtool config.lt
@@ -4317,92 +2704,6 @@ uninstall-man4:
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^4][0-9a-z]*$$,4,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
dir='$(DESTDIR)$(man4dir)'; $(am__uninstall_files_from_dir)
-install-man5: $(dist_man_MANS) $(man_MANS)
- @$(NORMAL_INSTALL)
- @list1=''; \
- list2='$(dist_man_MANS) $(man_MANS)'; \
- test -n "$(man5dir)" \
- && test -n "`echo $$list1$$list2`" \
- || exit 0; \
- echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \
- { for i in $$list1; do echo "$$i"; done; \
- if test -n "$$list2"; then \
- for i in $$list2; do echo "$$i"; done \
- | sed -n '/\.5[a-z]*$$/p'; \
- fi; \
- } | while read p; do \
- if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; echo "$$p"; \
- done | \
- sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
- sed 'N;N;s,\n, ,g' | { \
- list=; while read file base inst; do \
- if test "$$base" = "$$inst"; then list="$$list $$file"; else \
- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \
- fi; \
- done; \
- for i in $$list; do echo "$$i"; done | $(am__base_list) | \
- while read files; do \
- test -z "$$files" || { \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \
- done; }
-
-uninstall-man5:
- @$(NORMAL_UNINSTALL)
- @list=''; test -n "$(man5dir)" || exit 0; \
- files=`{ for i in $$list; do echo "$$i"; done; \
- l2='$(dist_man_MANS) $(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
- sed -n '/\.5[a-z]*$$/p'; \
- } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
- dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir)
-install-man7: $(dist_man_MANS) $(man_MANS)
- @$(NORMAL_INSTALL)
- @list1=''; \
- list2='$(dist_man_MANS) $(man_MANS)'; \
- test -n "$(man7dir)" \
- && test -n "`echo $$list1$$list2`" \
- || exit 0; \
- echo " $(MKDIR_P) '$(DESTDIR)$(man7dir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(man7dir)" || exit 1; \
- { for i in $$list1; do echo "$$i"; done; \
- if test -n "$$list2"; then \
- for i in $$list2; do echo "$$i"; done \
- | sed -n '/\.7[a-z]*$$/p'; \
- fi; \
- } | while read p; do \
- if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; echo "$$p"; \
- done | \
- sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^7][0-9a-z]*$$,7,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
- sed 'N;N;s,\n, ,g' | { \
- list=; while read file base inst; do \
- if test "$$base" = "$$inst"; then list="$$list $$file"; else \
- echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man7dir)/$$inst'"; \
- $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man7dir)/$$inst" || exit $$?; \
- fi; \
- done; \
- for i in $$list; do echo "$$i"; done | $(am__base_list) | \
- while read files; do \
- test -z "$$files" || { \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man7dir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(man7dir)" || exit $$?; }; \
- done; }
-
-uninstall-man7:
- @$(NORMAL_UNINSTALL)
- @list=''; test -n "$(man7dir)" || exit 0; \
- files=`{ for i in $$list; do echo "$$i"; done; \
- l2='$(dist_man_MANS) $(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
- sed -n '/\.7[a-z]*$$/p'; \
- } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^7][0-9a-z]*$$,7,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
- dir='$(DESTDIR)$(man7dir)'; $(am__uninstall_files_from_dir)
install-atf_aclocalDATA: $(atf_aclocal_DATA)
@$(NORMAL_INSTALL)
@list='$(atf_aclocal_DATA)'; test -n "$(atf_aclocaldir)" || list=; \
@@ -4508,27 +2809,6 @@ uninstall-atf_shpkgconfigDATA:
@list='$(atf_shpkgconfig_DATA)'; test -n "$(atf_shpkgconfigdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(atf_shpkgconfigdir)'; $(am__uninstall_files_from_dir)
-install-cssDATA: $(css_DATA)
- @$(NORMAL_INSTALL)
- @list='$(css_DATA)'; test -n "$(cssdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(cssdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(cssdir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(cssdir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(cssdir)" || exit $$?; \
- done
-
-uninstall-cssDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(css_DATA)'; test -n "$(cssdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(cssdir)'; $(am__uninstall_files_from_dir)
install-docDATA: $(doc_DATA)
@$(NORMAL_INSTALL)
@list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
@@ -4550,69 +2830,6 @@ uninstall-docDATA:
@list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir)
-install-dtdDATA: $(dtd_DATA)
- @$(NORMAL_INSTALL)
- @list='$(dtd_DATA)'; test -n "$(dtddir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(dtddir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(dtddir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dtddir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(dtddir)" || exit $$?; \
- done
-
-uninstall-dtdDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(dtd_DATA)'; test -n "$(dtddir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(dtddir)'; $(am__uninstall_files_from_dir)
-install-egDATA: $(eg_DATA)
- @$(NORMAL_INSTALL)
- @list='$(eg_DATA)'; test -n "$(egdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(egdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(egdir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(egdir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(egdir)" || exit $$?; \
- done
-
-uninstall-egDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(eg_DATA)'; test -n "$(egdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(egdir)'; $(am__uninstall_files_from_dir)
-install-hooksDATA: $(hooks_DATA)
- @$(NORMAL_INSTALL)
- @list='$(hooks_DATA)'; test -n "$(hooksdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(hooksdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(hooksdir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(hooksdir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(hooksdir)" || exit $$?; \
- done
-
-uninstall-hooksDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(hooks_DATA)'; test -n "$(hooksdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(hooksdir)'; $(am__uninstall_files_from_dir)
install-pkgtestsDATA: $(pkgtests_DATA)
@$(NORMAL_INSTALL)
@list='$(pkgtests_DATA)'; test -n "$(pkgtestsdir)" || list=; \
@@ -4760,48 +2977,6 @@ uninstall-tests_test_programsDATA:
@list='$(tests_test_programs_DATA)'; test -n "$(tests_test_programsdir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(tests_test_programsdir)'; $(am__uninstall_files_from_dir)
-install-tests_toolsDATA: $(tests_tools_DATA)
- @$(NORMAL_INSTALL)
- @list='$(tests_tools_DATA)'; test -n "$(tests_toolsdir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(tests_toolsdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(tests_toolsdir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(tests_toolsdir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(tests_toolsdir)" || exit $$?; \
- done
-
-uninstall-tests_toolsDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(tests_tools_DATA)'; test -n "$(tests_toolsdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(tests_toolsdir)'; $(am__uninstall_files_from_dir)
-install-xslDATA: $(xsl_DATA)
- @$(NORMAL_INSTALL)
- @list='$(xsl_DATA)'; test -n "$(xsldir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(xsldir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(xsldir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xsldir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(xsldir)" || exit $$?; \
- done
-
-uninstall-xslDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(xsl_DATA)'; test -n "$(xsldir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(xsldir)'; $(am__uninstall_files_from_dir)
install-atf_cHEADERS: $(atf_c_HEADERS)
@$(NORMAL_INSTALL)
@list='$(atf_c_HEADERS)'; test -n "$(atf_cdir)" || list=; \
@@ -5100,12 +3275,12 @@ check-am: all-am
$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_SCRIPTS)
check: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) \
- $(MANS) $(DATA) $(HEADERS) bconfig.h
+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \
+ $(HEADERS) bconfig.h
install-binPROGRAMS: install-libLTLIBRARIES
installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_c___detaildir)" "$(DESTDIR)$(tests_atf_c_detaildir)" "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(tests_toolsdir)" "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_shdir)" "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(tests_toolsdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(atf_aclocaldir)" "$(DESTDIR)$(atf_c__dirpkgconfigdir)" "$(DESTDIR)$(atf_cpkgconfigdir)" "$(DESTDIR)$(atf_shdir)" "$(DESTDIR)$(atf_shpkgconfigdir)" "$(DESTDIR)$(cssdir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(dtddir)" "$(DESTDIR)$(egdir)" "$(DESTDIR)$(hooksdir)" "$(DESTDIR)$(pkgtestsdir)" "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_c___detaildir)" "$(DESTDIR)$(tests_atf_c_detaildir)" "$(DESTDIR)$(tests_atf_shdir)" "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(tests_toolsdir)" "$(DESTDIR)$(xsldir)" "$(DESTDIR)$(atf_cdir)" "$(DESTDIR)$(atf_c__dir)" "$(DESTDIR)$(includedir)"; do \
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_c___detaildir)" "$(DESTDIR)$(tests_atf_c_detaildir)" "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_shdir)" "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(atf_aclocaldir)" "$(DESTDIR)$(atf_c__dirpkgconfigdir)" "$(DESTDIR)$(atf_cpkgconfigdir)" "$(DESTDIR)$(atf_shdir)" "$(DESTDIR)$(atf_shpkgconfigdir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(pkgtestsdir)" "$(DESTDIR)$(tests_atf_cdir)" "$(DESTDIR)$(tests_atf_c__dir)" "$(DESTDIR)$(tests_atf_c___detaildir)" "$(DESTDIR)$(tests_atf_c_detaildir)" "$(DESTDIR)$(tests_atf_shdir)" "$(DESTDIR)$(tests_test_programsdir)" "$(DESTDIR)$(atf_cdir)" "$(DESTDIR)$(atf_c__dir)" "$(DESTDIR)$(includedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: $(BUILT_SOURCES)
@@ -5150,8 +3325,6 @@ distclean-generic:
-rm -f bootstrap/$(am__dirstamp)
-rm -f test-programs/$(DEPDIR)/$(am__dirstamp)
-rm -f test-programs/$(am__dirstamp)
- -rm -f tools/$(DEPDIR)/$(am__dirstamp)
- -rm -f tools/$(am__dirstamp)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
@@ -5162,16 +3335,14 @@ clean: clean-am
clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
clean-libLTLIBRARIES clean-libexecPROGRAMS clean-libtool \
- clean-noinstLIBRARIES clean-noinstLTLIBRARIES \
- clean-tests_atf_cPROGRAMS clean-tests_atf_c__PROGRAMS \
- clean-tests_atf_c___detailPROGRAMS \
+ clean-noinstLTLIBRARIES clean-tests_atf_cPROGRAMS \
+ clean-tests_atf_c__PROGRAMS clean-tests_atf_c___detailPROGRAMS \
clean-tests_atf_c_detailPROGRAMS \
- clean-tests_test_programsPROGRAMS clean-tests_toolsPROGRAMS \
- mostlyclean-am
+ clean-tests_test_programsPROGRAMS mostlyclean-am
distclean: distclean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf atf-c++/$(DEPDIR) atf-c++/detail/$(DEPDIR) atf-c/$(DEPDIR) atf-c/detail/$(DEPDIR) atf-sh/$(DEPDIR) bootstrap/$(DEPDIR) test-programs/$(DEPDIR) tools/$(DEPDIR)
+ -rm -rf atf-c++/$(DEPDIR) atf-c++/detail/$(DEPDIR) atf-c/$(DEPDIR) atf-c/detail/$(DEPDIR) atf-sh/$(DEPDIR) bootstrap/$(DEPDIR) test-programs/$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-hdr distclean-libtool distclean-local distclean-tags
@@ -5191,8 +3362,7 @@ info-am:
install-data-am: install-atf_aclocalDATA install-atf_cHEADERS \
install-atf_c__HEADERS install-atf_c__dirpkgconfigDATA \
install-atf_cpkgconfigDATA install-atf_shDATA \
- install-atf_shpkgconfigDATA install-cssDATA install-docDATA \
- install-dtdDATA install-egDATA install-hooksDATA \
+ install-atf_shpkgconfigDATA install-docDATA \
install-includeHEADERS install-man install-pkgtestsDATA \
install-tests_atf_cDATA install-tests_atf_cPROGRAMS \
install-tests_atf_cSCRIPTS install-tests_atf_c__DATA \
@@ -5203,9 +3373,7 @@ install-data-am: install-atf_aclocalDATA install-atf_cHEADERS \
install-tests_atf_c_detailPROGRAMS install-tests_atf_shDATA \
install-tests_atf_shSCRIPTS install-tests_test_programsDATA \
install-tests_test_programsPROGRAMS \
- install-tests_test_programsSCRIPTS install-tests_toolsDATA \
- install-tests_toolsPROGRAMS install-tests_toolsSCRIPTS \
- install-xslDATA
+ install-tests_test_programsSCRIPTS
install-dvi: install-dvi-am
@@ -5222,8 +3390,7 @@ install-info: install-info-am
install-info-am:
-install-man: install-man1 install-man3 install-man4 install-man5 \
- install-man7
+install-man: install-man1 install-man3 install-man4
install-pdf: install-pdf-am
@@ -5238,7 +3405,7 @@ installcheck-am: installcheck-local
maintainer-clean: maintainer-clean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
- -rm -rf atf-c++/$(DEPDIR) atf-c++/detail/$(DEPDIR) atf-c/$(DEPDIR) atf-c/detail/$(DEPDIR) atf-sh/$(DEPDIR) bootstrap/$(DEPDIR) test-programs/$(DEPDIR) tools/$(DEPDIR)
+ -rm -rf atf-c++/$(DEPDIR) atf-c++/detail/$(DEPDIR) atf-c/$(DEPDIR) atf-c/detail/$(DEPDIR) atf-sh/$(DEPDIR) bootstrap/$(DEPDIR) test-programs/$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
@@ -5259,8 +3426,7 @@ uninstall-am: uninstall-atf_aclocalDATA uninstall-atf_cHEADERS \
uninstall-atf_c__HEADERS uninstall-atf_c__dirpkgconfigDATA \
uninstall-atf_cpkgconfigDATA uninstall-atf_shDATA \
uninstall-atf_shpkgconfigDATA uninstall-binPROGRAMS \
- uninstall-cssDATA uninstall-docDATA uninstall-dtdDATA \
- uninstall-egDATA uninstall-hooksDATA uninstall-includeHEADERS \
+ uninstall-docDATA uninstall-includeHEADERS \
uninstall-libLTLIBRARIES uninstall-libexecPROGRAMS \
uninstall-man uninstall-pkgtestsDATA uninstall-tests_atf_cDATA \
uninstall-tests_atf_cPROGRAMS uninstall-tests_atf_cSCRIPTS \
@@ -5273,42 +3439,37 @@ uninstall-am: uninstall-atf_aclocalDATA uninstall-atf_cHEADERS \
uninstall-tests_atf_shDATA uninstall-tests_atf_shSCRIPTS \
uninstall-tests_test_programsDATA \
uninstall-tests_test_programsPROGRAMS \
- uninstall-tests_test_programsSCRIPTS uninstall-tests_toolsDATA \
- uninstall-tests_toolsPROGRAMS uninstall-tests_toolsSCRIPTS \
- uninstall-xslDATA
+ uninstall-tests_test_programsSCRIPTS
-uninstall-man: uninstall-man1 uninstall-man3 uninstall-man4 \
- uninstall-man5 uninstall-man7
+uninstall-man: uninstall-man1 uninstall-man3 uninstall-man4
.MAKE: all check check-am install install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
clean-binPROGRAMS clean-checkPROGRAMS clean-cscope \
clean-generic clean-libLTLIBRARIES clean-libexecPROGRAMS \
- clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \
+ clean-libtool clean-noinstLTLIBRARIES \
clean-tests_atf_cPROGRAMS clean-tests_atf_c__PROGRAMS \
clean-tests_atf_c___detailPROGRAMS \
clean-tests_atf_c_detailPROGRAMS \
- clean-tests_test_programsPROGRAMS clean-tests_toolsPROGRAMS \
- cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
- dist-gzip dist-hook dist-lzip dist-shar dist-tarZ dist-xz \
- dist-zip distcheck distclean distclean-compile \
- distclean-generic distclean-hdr distclean-libtool \
- distclean-local distclean-tags distcleancheck distdir \
- distuninstallcheck dvi dvi-am html html-am info info-am \
- install install-am install-atf_aclocalDATA \
- install-atf_cHEADERS install-atf_c__HEADERS \
- install-atf_c__dirpkgconfigDATA install-atf_cpkgconfigDATA \
- install-atf_shDATA install-atf_shpkgconfigDATA \
- install-binPROGRAMS install-cssDATA install-data \
- install-data-am install-docDATA install-dtdDATA install-dvi \
- install-dvi-am install-egDATA install-exec install-exec-am \
- install-hooksDATA install-html install-html-am \
+ clean-tests_test_programsPROGRAMS cscope cscopelist-am ctags \
+ ctags-am dist dist-all dist-bzip2 dist-gzip dist-hook \
+ dist-lzip dist-shar dist-tarZ dist-xz dist-zip distcheck \
+ distclean distclean-compile distclean-generic distclean-hdr \
+ distclean-libtool distclean-local distclean-tags \
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
+ html-am info info-am install install-am \
+ install-atf_aclocalDATA install-atf_cHEADERS \
+ install-atf_c__HEADERS install-atf_c__dirpkgconfigDATA \
+ install-atf_cpkgconfigDATA install-atf_shDATA \
+ install-atf_shpkgconfigDATA install-binPROGRAMS install-data \
+ install-data-am install-docDATA install-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
install-includeHEADERS install-info install-info-am \
install-libLTLIBRARIES install-libexecPROGRAMS install-man \
- install-man1 install-man3 install-man4 install-man5 \
- install-man7 install-pdf install-pdf-am install-pkgtestsDATA \
- install-ps install-ps-am install-strip install-tests_atf_cDATA \
+ install-man1 install-man3 install-man4 install-pdf \
+ install-pdf-am install-pkgtestsDATA install-ps install-ps-am \
+ install-strip install-tests_atf_cDATA \
install-tests_atf_cPROGRAMS install-tests_atf_cSCRIPTS \
install-tests_atf_c__DATA install-tests_atf_c__PROGRAMS \
install-tests_atf_c__SCRIPTS install-tests_atf_c___detailDATA \
@@ -5317,21 +3478,18 @@ uninstall-man: uninstall-man1 uninstall-man3 uninstall-man4 \
install-tests_atf_c_detailPROGRAMS install-tests_atf_shDATA \
install-tests_atf_shSCRIPTS install-tests_test_programsDATA \
install-tests_test_programsPROGRAMS \
- install-tests_test_programsSCRIPTS install-tests_toolsDATA \
- install-tests_toolsPROGRAMS install-tests_toolsSCRIPTS \
- install-xslDATA installcheck installcheck-am \
- installcheck-local installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am uninstall-atf_aclocalDATA \
- uninstall-atf_cHEADERS uninstall-atf_c__HEADERS \
- uninstall-atf_c__dirpkgconfigDATA uninstall-atf_cpkgconfigDATA \
- uninstall-atf_shDATA uninstall-atf_shpkgconfigDATA \
- uninstall-binPROGRAMS uninstall-cssDATA uninstall-docDATA \
- uninstall-dtdDATA uninstall-egDATA uninstall-hooksDATA \
- uninstall-includeHEADERS uninstall-libLTLIBRARIES \
- uninstall-libexecPROGRAMS uninstall-man uninstall-man1 \
- uninstall-man3 uninstall-man4 uninstall-man5 uninstall-man7 \
+ install-tests_test_programsSCRIPTS installcheck \
+ installcheck-am installcheck-local installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
+ uninstall-atf_aclocalDATA uninstall-atf_cHEADERS \
+ uninstall-atf_c__HEADERS uninstall-atf_c__dirpkgconfigDATA \
+ uninstall-atf_cpkgconfigDATA uninstall-atf_shDATA \
+ uninstall-atf_shpkgconfigDATA uninstall-binPROGRAMS \
+ uninstall-docDATA uninstall-includeHEADERS \
+ uninstall-libLTLIBRARIES uninstall-libexecPROGRAMS \
+ uninstall-man uninstall-man1 uninstall-man3 uninstall-man4 \
uninstall-pkgtestsDATA uninstall-tests_atf_cDATA \
uninstall-tests_atf_cPROGRAMS uninstall-tests_atf_cSCRIPTS \
uninstall-tests_atf_c__DATA uninstall-tests_atf_c__PROGRAMS \
@@ -5343,9 +3501,7 @@ uninstall-man: uninstall-man1 uninstall-man3 uninstall-man4 \
uninstall-tests_atf_shDATA uninstall-tests_atf_shSCRIPTS \
uninstall-tests_test_programsDATA \
uninstall-tests_test_programsPROGRAMS \
- uninstall-tests_test_programsSCRIPTS uninstall-tests_toolsDATA \
- uninstall-tests_toolsPROGRAMS uninstall-tests_toolsSCRIPTS \
- uninstall-xslDATA
+ uninstall-tests_test_programsSCRIPTS
dist-hook: check-style
@@ -5353,6 +3509,10 @@ check-style:
$(srcdir)/admin/check-style.sh
# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
+
+# XXX For some reason, the nodist line above does not work as expected.
+# Work this problem around.
+dist-hook: kill-defs-h
kill-defs-h:
rm -f $(distdir)/atf-c/defs.h
atf-c/atf-c.pc: $(srcdir)/atf-c/atf-c.pc.in Makefile
@@ -5452,7 +3612,6 @@ distclean-local:
echo 'm4_define(AT_PACKAGE_VERSION, @PACKAGE_VERSION@)'; \
echo 'm4_define(AT_PACKAGE_STRING, @PACKAGE_STRING@)'; \
echo 'm4_define(AT_PACKAGE_BUGREPORT, @PACKAGE_BUGREPORT@)'; \
- echo 'm4_define(ENABLE_TOOLS, @ENABLE_TOOLS@)'; \
} >$(srcdir)/bootstrap/package.m4
@target_srcdir@bootstrap/testsuite: $(srcdir)/bootstrap/testsuite.at \
@@ -5494,63 +3653,10 @@ test-programs/srcdir_test: $(srcdir)/test-programs/srcdir_test.sh
dst="test-programs/srcdir_test"; $(BUILD_SH_TP)
# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
-@ENABLE_TOOLS_TRUE@kill-defs-hpp:
-@ENABLE_TOOLS_TRUE@ rm -f $(distdir)/tools/defs.hpp
-@ENABLE_TOOLS_TRUE@tools/revision.h: tools/revision.h.stamp
-@ENABLE_TOOLS_TRUE@ @test -d tools || mkdir -p tools
-@ENABLE_TOOLS_TRUE@ @cmp -s tools/revision.h tools/revision.h.stamp || \
-@ENABLE_TOOLS_TRUE@ cp -p tools/revision.h.stamp tools/revision.h
-@ENABLE_TOOLS_TRUE@tools/revision.h.stamp:
-@ENABLE_TOOLS_TRUE@ @test -d tools || mkdir -p tools
-@ENABLE_TOOLS_TRUE@ @$(top_srcdir)/tools/generate-revision.sh \
-@ENABLE_TOOLS_TRUE@ -g "$(GIT)" -r $(top_srcdir) -o tools/revision.h.stamp \
-@ENABLE_TOOLS_TRUE@ -v $(PACKAGE_VERSION)
-
-@ENABLE_TOOLS_TRUE@tools/atf.7: $(srcdir)/tools/atf.7.in
-@ENABLE_TOOLS_TRUE@ test -d tools || mkdir -p tools
-@ENABLE_TOOLS_TRUE@ sed -e 's#__DOCDIR__#$(docdir)#g' \
-@ENABLE_TOOLS_TRUE@ -e 's#__TESTSDIR__#$(testsdir)#g' \
-@ENABLE_TOOLS_TRUE@ <$(srcdir)/tools/atf.7.in >tools/atf.7.tmp
-@ENABLE_TOOLS_TRUE@ mv tools/atf.7.tmp tools/atf.7
-@ENABLE_TOOLS_TRUE@tools/atf-config_test: $(srcdir)/tools/atf-config_test.sh
-@ENABLE_TOOLS_TRUE@ @test -d tools || mkdir -p tools
-@ENABLE_TOOLS_TRUE@ @src="$(srcdir)/tools/atf-config_test.sh"; \
-@ENABLE_TOOLS_TRUE@ dst="tools/atf-config_test"; $(BUILD_SH_TP)
-@ENABLE_TOOLS_TRUE@tools/atf-report_test: $(srcdir)/tools/atf-report_test.sh
-@ENABLE_TOOLS_TRUE@ @test -d tools || mkdir -p tools
-@ENABLE_TOOLS_TRUE@ @src="$(srcdir)/tools/atf-report_test.sh"; \
-@ENABLE_TOOLS_TRUE@ dst="tools/atf-report_test"; $(BUILD_SH_TP)
-@ENABLE_TOOLS_TRUE@tools/atf-run_test: $(srcdir)/tools/atf-run_test.sh
-@ENABLE_TOOLS_TRUE@ @test -d tools || mkdir -p tools
-@ENABLE_TOOLS_TRUE@ @src="$(srcdir)/tools/atf-run_test.sh"; \
-@ENABLE_TOOLS_TRUE@ dst="tools/atf-run_test"; $(BUILD_SH_TP)
-
-# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
-@ENABLE_TOOLS_TRUE@installcheck-atf:
-@ENABLE_TOOLS_TRUE@ logfile=$$(pwd)/installcheck.log; \
-@ENABLE_TOOLS_TRUE@ fifofile=$$(pwd)/installcheck.fifo; \
-@ENABLE_TOOLS_TRUE@ cd $(pkgtestsdir); \
-@ENABLE_TOOLS_TRUE@ rm -f $${fifofile}; \
-@ENABLE_TOOLS_TRUE@ mkfifo $${fifofile}; \
-@ENABLE_TOOLS_TRUE@ cat $${fifofile} | tee $${logfile} | $(TESTS_ENVIRONMENT) atf-report & \
-@ENABLE_TOOLS_TRUE@ $(TESTS_ENVIRONMENT) atf-run >>$${fifofile}; \
-@ENABLE_TOOLS_TRUE@ res=$${?}; \
-@ENABLE_TOOLS_TRUE@ wait; \
-@ENABLE_TOOLS_TRUE@ rm $${fifofile}; \
-@ENABLE_TOOLS_TRUE@ echo; \
-@ENABLE_TOOLS_TRUE@ echo "The verbatim output of atf-run has been saved to" \
-@ENABLE_TOOLS_TRUE@ "installcheck.log; exit was $${res}"; \
-@ENABLE_TOOLS_TRUE@ test $${res} -eq 0
@HAVE_KYUA_TRUE@installcheck-kyua:
@HAVE_KYUA_TRUE@ cd $(pkgtestsdir) && $(TESTS_ENVIRONMENT) $(KYUA) test
installcheck-local: $(INSTALLCHECK_TARGETS)
-@ENABLE_TOOLS_TRUE@forbid-dist:
-@ENABLE_TOOLS_TRUE@ @true
-@ENABLE_TOOLS_FALSE@forbid-dist:
-@ENABLE_TOOLS_FALSE@ @echo "Sorry; cannot make dist without the tools enabled."
-@ENABLE_TOOLS_FALSE@ @echo "Please reconfigure with --enable-tools."
-@ENABLE_TOOLS_FALSE@ @false
clean-all:
GIT="$(GIT)" $(SH) $(srcdir)/admin/clean-all.sh
release:
@@ -5560,8 +3666,6 @@ release-test:
.PHONY: $(PHONY_TARGETS)
-dist-hook: $(DIST_HOOKS)
-
# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
# Tell versions [3.59,3.63) of GNU make to not export all variables.
diff --git a/NEWS b/NEWS
index 6b3be1758d09..709f5941c105 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,19 @@ Major changes between releases Automated Testing Framework
===========================================================================
+Changes in version 0.20
+***********************
+
+Experimental version released on February 7th, 2014.
+
+This is the first release without the code for the deprecated tools. If
+you require such code, please fetch a copy of the 0.19 release and extract
+the 'tools' directory for your own consumption.
+
+* Removed the deprecated tools. This includes atf-config, atf-report,
+ atf-run and atf-version.
+
+
Changes in version 0.19
***********************
diff --git a/README b/README
index 00caa122a39c..d3b03edb9419 100644
--- a/README
+++ b/README
@@ -5,21 +5,18 @@ Introductory information Automated Testing Framework
Introduction
************
-The Automated Testing Framework (ATF) is a collection of libraries and
-utilities designed to ease unattended application testing in the hands of
-developers and end users of a specific piece of software.
-
-As regards developers, ATF provides the necessary means to easily create
-test suites composed of multiple test programs, which in turn are a
-collection of test cases. It also attempts to simplify the debugging of
-problems when these test cases detect an error by providing as much
-information as possible about the failure.
-
-As regards users, it simplifies the process of running the test suites and,
-in special, encourages end users to run them often: they do not need to
-have source trees around nor any other development tools installed to be
-able to certify that a given piece of software works on their machine as
-advertised.
+The Automated Testing Framework (ATF) is a collection of libraries to
+implement test programs in a variety of languages. At the moment, ATF
+offers C, C++ and POSIX shell bindings with which to implement tests.
+These bindings all offer a similar set of functionality and any test
+program written with them exposes a consistent user interface.
+
+ATF-based test programs rely on a separate runtime engine to execute them.
+The runtime engine is in charge of isolating the test programs from the
+rest of the system to ensure that their results are deterministic and that
+they cannot affect the running system. The runtime engine is also
+responsible for gathering the results of all tests and composing reports.
+The current runtime of choice is Kyua.
Other documents
diff --git a/aclocal.m4 b/aclocal.m4
index 399c24dbaf8b..6535b6fdd790 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1219,5 +1219,4 @@ m4_include([m4/module-application.m4])
m4_include([m4/module-defs.m4])
m4_include([m4/module-env.m4])
m4_include([m4/module-fs.m4])
-m4_include([m4/module-signals.m4])
m4_include([m4/runtime-tool.m4])
diff --git a/admin/check-style.sh b/admin/check-style.sh
index c43322caa4a9..d5fa755ae0fc 100755
--- a/admin/check-style.sh
+++ b/admin/check-style.sh
@@ -108,7 +108,7 @@ find_sources() {
\! -name "ltsugar.m4" \
\! -name "lt~obsolete.m4" \
\! -name "*.so.*" \
- \) | grep -v tools/
+ \)
}
#
diff --git a/atf-c++/Atffile b/atf-c++/Atffile
deleted file mode 100644
index ba11f2181cf2..000000000000
--- a/atf-c++/Atffile
+++ /dev/null
@@ -1,14 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: detail
-
-tp: atf_c++_test
-tp: build_test
-tp: check_test
-tp: config_test
-tp: macros_test
-tp: pkg_config_test
-tp: tests_test
-tp: utils_test
diff --git a/atf-c++/Makefile.am.inc b/atf-c++/Makefile.am.inc
index cfe70695dd16..e4b377eeedca 100644
--- a/atf-c++/Makefile.am.inc
+++ b/atf-c++/Makefile.am.inc
@@ -71,8 +71,7 @@ atf-c++/atf-c++.pc: $(srcdir)/atf-c++/atf-c++.pc.in Makefile
<$(srcdir)/atf-c++/atf-c++.pc.in >atf-c++/atf-c++.pc.tmp
mv atf-c++/atf-c++.pc.tmp atf-c++/atf-c++.pc
-tests_atf_c___DATA = atf-c++/Atffile \
- atf-c++/Kyuafile \
+tests_atf_c___DATA = atf-c++/Kyuafile \
atf-c++/macros_hpp_test.cpp \
atf-c++/unused_test.cpp
tests_atf_c__dir = $(pkgtestsdir)/atf-c++
diff --git a/atf-c++/detail/Atffile b/atf-c++/detail/Atffile
deleted file mode 100644
index 75adc690b65b..000000000000
--- a/atf-c++/detail/Atffile
+++ /dev/null
@@ -1,11 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: application_test
-tp: auto_array_test
-tp: env_test
-tp: exceptions_test
-tp: fs_test
-tp: sanity_test
-tp: text_test
diff --git a/atf-c++/detail/Makefile.am.inc b/atf-c++/detail/Makefile.am.inc
index ce8701fcc221..7bcd11b99acf 100644
--- a/atf-c++/detail/Makefile.am.inc
+++ b/atf-c++/detail/Makefile.am.inc
@@ -42,8 +42,7 @@ libatf_c___la_SOURCES += atf-c++/detail/application.cpp \
atf-c++/detail/text.cpp \
atf-c++/detail/text.hpp
-tests_atf_c___detail_DATA = atf-c++/detail/Atffile \
- atf-c++/detail/Kyuafile
+tests_atf_c___detail_DATA = atf-c++/detail/Kyuafile
tests_atf_c___detaildir = $(pkgtestsdir)/atf-c++/detail
EXTRA_DIST += $(tests_atf_c___detail_DATA)
diff --git a/atf-c/Atffile b/atf-c/Atffile
deleted file mode 100644
index 522e6f4c5195..000000000000
--- a/atf-c/Atffile
+++ /dev/null
@@ -1,16 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: detail
-
-tp: atf_c_test
-tp: build_test
-tp: check_test
-tp: config_test
-tp: error_test
-tp: macros_test
-tp: pkg_config_test
-tp: tc_test
-tp: tp_test
-tp: utils_test
diff --git a/atf-c/Makefile.am.inc b/atf-c/Makefile.am.inc
index d32e978c71fd..37d3cf79b239 100644
--- a/atf-c/Makefile.am.inc
+++ b/atf-c/Makefile.am.inc
@@ -60,7 +60,7 @@ libatf_c_la_LDFLAGS = -version-info 0:0:0
# XXX For some reason, the nodist line above does not work as expected.
# Work this problem around.
-DIST_HOOKS += kill-defs-h
+dist-hook: kill-defs-h
kill-defs-h:
rm -f $(distdir)/atf-c/defs.h
@@ -95,8 +95,7 @@ atf-c/atf-c.pc: $(srcdir)/atf-c/atf-c.pc.in Makefile
<$(srcdir)/atf-c/atf-c.pc.in >atf-c/atf-c.pc.tmp
mv atf-c/atf-c.pc.tmp atf-c/atf-c.pc
-tests_atf_c_DATA = atf-c/Atffile \
- atf-c/Kyuafile \
+tests_atf_c_DATA = atf-c/Kyuafile \
atf-c/macros_h_test.c \
atf-c/unused_test.c
tests_atf_cdir = $(pkgtestsdir)/atf-c
diff --git a/atf-c/detail/Atffile b/atf-c/detail/Atffile
deleted file mode 100644
index 5fd859382c56..000000000000
--- a/atf-c/detail/Atffile
+++ /dev/null
@@ -1,13 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: dynstr_test
-tp: env_test
-tp: fs_test
-tp: list_test
-tp: map_test
-tp: process_test
-tp: sanity_test
-tp: text_test
-tp: user_test
diff --git a/atf-c/detail/Makefile.am.inc b/atf-c/detail/Makefile.am.inc
index 8116a24e8215..dbf88f346e1b 100644
--- a/atf-c/detail/Makefile.am.inc
+++ b/atf-c/detail/Makefile.am.inc
@@ -47,8 +47,7 @@ libatf_c_la_SOURCES += atf-c/detail/dynstr.c \
atf-c/detail/user.c \
atf-c/detail/user.h
-tests_atf_c_detail_DATA = atf-c/detail/Atffile \
- atf-c/detail/Kyuafile
+tests_atf_c_detail_DATA = atf-c/detail/Kyuafile
tests_atf_c_detaildir = $(pkgtestsdir)/atf-c/detail
EXTRA_DIST += $(tests_atf_c_detail_DATA)
diff --git a/atf-sh/Atffile b/atf-sh/Atffile
deleted file mode 100644
index f1735c308816..000000000000
--- a/atf-sh/Atffile
+++ /dev/null
@@ -1,11 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: tc_test
-tp: tp_test
-tp: normalize_test
-tp: config_test
-tp: atf-check_test
-tp: atf_check_test
-tp: integration_test
diff --git a/atf-sh/Makefile.am.inc b/atf-sh/Makefile.am.inc
index f8f521a4c7f3..1d0e09842adf 100644
--- a/atf-sh/Makefile.am.inc
+++ b/atf-sh/Makefile.am.inc
@@ -57,8 +57,7 @@ atf-sh/atf-sh.pc: $(srcdir)/atf-sh/atf-sh.pc.in Makefile
<$(srcdir)/atf-sh/atf-sh.pc.in >atf-sh/atf-sh.pc.tmp
mv atf-sh/atf-sh.pc.tmp atf-sh/atf-sh.pc
-tests_atf_sh_DATA = atf-sh/Atffile \
- atf-sh/Kyuafile
+tests_atf_sh_DATA = atf-sh/Kyuafile
tests_atf_shdir = $(pkgtestsdir)/atf-sh
EXTRA_DIST += $(tests_atf_sh_DATA)
diff --git a/bconfig.h.in b/bconfig.h.in
index de45ed965b38..2613d24193e9 100644
--- a/bconfig.h.in
+++ b/bconfig.h.in
@@ -57,9 +57,6 @@
/* Define to 1 if vsnprintf is in std */
#undef HAVE_VSNPRINTF_IN_STD
-/* Define to the last valid signal number */
-#undef LAST_SIGNO
-
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
diff --git a/bootstrap/Makefile.am.inc b/bootstrap/Makefile.am.inc
index 83033946828d..0f95b98f0ca8 100644
--- a/bootstrap/Makefile.am.inc
+++ b/bootstrap/Makefile.am.inc
@@ -27,15 +27,7 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-check_PROGRAMS = bootstrap/h_app_empty
-bootstrap_h_app_empty_SOURCES = bootstrap/h_app_empty.cpp
-bootstrap_h_app_empty_LDADD = tools/libtools.a $(ATF_CXX_LIBS)
-
-check_PROGRAMS += bootstrap/h_app_opts_args
-bootstrap_h_app_opts_args_SOURCES = bootstrap/h_app_opts_args.cpp
-bootstrap_h_app_opts_args_LDADD = tools/libtools.a $(ATF_CXX_LIBS)
-
-check_PROGRAMS += bootstrap/h_tp_basic_c
+check_PROGRAMS = bootstrap/h_tp_basic_c
bootstrap_h_tp_basic_c_SOURCES = bootstrap/h_tp_basic_c.c
bootstrap_h_tp_basic_c_LDADD = libatf-c.la
@@ -85,11 +77,7 @@ EXTRA_DIST += bootstrap/testsuite \
bootstrap/testsuite.at \
$(testsuite_incs)
-testsuite_incs= $(srcdir)/bootstrap/t_application_help.at \
- $(srcdir)/bootstrap/t_application_opts_args.at \
- $(srcdir)/bootstrap/t_atf_config.at \
- $(srcdir)/bootstrap/t_atf_run.at \
- $(srcdir)/bootstrap/t_subr_atf_check.at \
+testsuite_incs= $(srcdir)/bootstrap/t_subr_atf_check.at \
$(srcdir)/bootstrap/t_test_program_compare.at \
$(srcdir)/bootstrap/t_test_program_filter.at \
$(srcdir)/bootstrap/t_test_program_list.at \
@@ -103,7 +91,6 @@ testsuite_incs= $(srcdir)/bootstrap/t_application_help.at \
echo 'm4_define(AT_PACKAGE_VERSION, @PACKAGE_VERSION@)'; \
echo 'm4_define(AT_PACKAGE_STRING, @PACKAGE_STRING@)'; \
echo 'm4_define(AT_PACKAGE_BUGREPORT, @PACKAGE_BUGREPORT@)'; \
- echo 'm4_define(ENABLE_TOOLS, @ENABLE_TOOLS@)'; \
} >$(srcdir)/bootstrap/package.m4
@target_srcdir@bootstrap/testsuite: $(srcdir)/bootstrap/testsuite.at \
diff --git a/bootstrap/h_app_empty.cpp b/bootstrap/h_app_empty.cpp
deleted file mode 100644
index 9656f00135b8..000000000000
--- a/bootstrap/h_app_empty.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cstdlib>
-
-#include "tools/application.hpp"
-
-class h_app_empty : public tools::application::app {
- static const char* m_description;
-
-public:
- h_app_empty(void);
-
- int main(void);
-};
-
-const char* h_app_empty::m_description =
- "A helper application for the bootstrap test suite that does nothing "
- "on its own and redefines no methods.";
-
-h_app_empty::h_app_empty(void) :
- app(m_description, "h_app_empty(1)", "atf(7)")
-{
-}
-
-int
-h_app_empty::main(void)
-{
- return EXIT_SUCCESS;
-}
-
-int
-main(int argc, char* const* argv)
-{
- return h_app_empty().run(argc, argv);
-}
diff --git a/bootstrap/h_app_opts_args.cpp b/bootstrap/h_app_opts_args.cpp
deleted file mode 100644
index f05a6b2bb130..000000000000
--- a/bootstrap/h_app_opts_args.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cstdlib>
-#include <iostream>
-
-#include "tools/application.hpp"
-
-class h_app_opts_args : public tools::application::app {
- static const char* m_description;
-
- std::string specific_args(void) const;
- options_set specific_options(void) const;
- void process_option(int, const char*);
-
-public:
- h_app_opts_args(void);
-
- int main(void);
-};
-
-const char* h_app_opts_args::m_description =
- "A helper application for the bootstrap test suite that redefines the "
- "methods to specify custom options and arguments.";
-
-h_app_opts_args::h_app_opts_args(void) :
- app(m_description, "h_app_opts_args(1)", "atf(7)")
-{
-}
-
-std::string
-h_app_opts_args::specific_args(void)
- const
-{
- return "<arg1> <arg2>";
-}
-
-h_app_opts_args::options_set
-h_app_opts_args::specific_options(void)
- const
-{
- using tools::application::option;
- options_set opts;
- opts.insert(option('d', "", "Debug mode"));
- opts.insert(option('v', "level", "Verbosity level"));
- return opts;
-}
-
-void
-h_app_opts_args::process_option(int ch, const char* arg)
-{
- switch (ch) {
- case 'd':
- std::cout << "-d given\n";
- break;
-
- case 'v':
- std::cout << "-v given with argument " << arg << "\n";
- break;
-
- default:
- std::abort();
- }
-}
-
-int
-h_app_opts_args::main(void)
-{
- return EXIT_SUCCESS;
-}
-
-int
-main(int argc, char* const* argv)
-{
- return h_app_opts_args().run(argc, argv);
-}
diff --git a/bootstrap/package.m4 b/bootstrap/package.m4
index c18cb4f0d407..9cba60fd02e4 100644
--- a/bootstrap/package.m4
+++ b/bootstrap/package.m4
@@ -1,7 +1,6 @@
# Signature of the current package.
m4_define(AT_PACKAGE_NAME, Automated Testing Framework)
m4_define(AT_PACKAGE_TARNAME, atf)
-m4_define(AT_PACKAGE_VERSION, 0.19)
-m4_define(AT_PACKAGE_STRING, Automated Testing Framework 0.19)
+m4_define(AT_PACKAGE_VERSION, 0.20)
+m4_define(AT_PACKAGE_STRING, Automated Testing Framework 0.20)
m4_define(AT_PACKAGE_BUGREPORT, atf-devel@NetBSD.org)
-m4_define(ENABLE_TOOLS, yes)
diff --git a/bootstrap/t_application_help.at b/bootstrap/t_application_help.at
deleted file mode 100644
index 7686fea2c1e6..000000000000
--- a/bootstrap/t_application_help.at
+++ /dev/null
@@ -1,40 +0,0 @@
-dnl
-dnl Automated Testing Framework (atf)
-dnl
-dnl Copyright (c) 2007 The NetBSD Foundation, Inc.
-dnl All rights reserved.
-dnl
-dnl Redistribution and use in source and binary forms, with or without
-dnl modification, are permitted provided that the following conditions
-dnl are met:
-dnl 1. Redistributions of source code must retain the above copyright
-dnl notice, this list of conditions and the following disclaimer.
-dnl 2. Redistributions in binary form must reproduce the above copyright
-dnl notice, this list of conditions and the following disclaimer in the
-dnl documentation and/or other materials provided with the distribution.
-dnl
-dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-dnl
-
-AT_SETUP([application: online help option])
-
-AT_CHECK([APP_HELPER(app_empty)], 0, [stdout], [])
-AT_CHECK([grep 'Available options' stdout], 1, [ignore], [])
-
-AT_CHECK([APP_HELPER(app_empty) -h], 0, [stdout], [])
-AT_CHECK([grep 'Available options' stdout], 0, [ignore], [])
-
-AT_CLEANUP()
-
-dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4
diff --git a/bootstrap/t_application_opts_args.at b/bootstrap/t_application_opts_args.at
deleted file mode 100644
index 0c36cef77631..000000000000
--- a/bootstrap/t_application_opts_args.at
+++ /dev/null
@@ -1,86 +0,0 @@
-dnl
-dnl Automated Testing Framework (atf)
-dnl
-dnl Copyright (c) 2007 The NetBSD Foundation, Inc.
-dnl All rights reserved.
-dnl
-dnl Redistribution and use in source and binary forms, with or without
-dnl modification, are permitted provided that the following conditions
-dnl are met:
-dnl 1. Redistributions of source code must retain the above copyright
-dnl notice, this list of conditions and the following disclaimer.
-dnl 2. Redistributions in binary form must reproduce the above copyright
-dnl notice, this list of conditions and the following disclaimer in the
-dnl documentation and/or other materials provided with the distribution.
-dnl
-dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-dnl
-
-AT_SETUP([application: arguments and options handling])
-
-dnl Check that an application that does not redefine any method does
-dnl not show strange flags in the usage message.
-AT_CHECK([APP_HELPER(app_empty) -h], 0, [stdout], [])
-AT_CHECK([grep ' -d ' stdout], 1, [ignore], [])
-AT_CHECK([grep ' -h ' stdout], 0, [ignore], [])
-AT_CHECK([grep ' -v ' stdout], 1, [ignore], [])
-AT_CHECK([grep ' -z ' stdout], 1, [ignore], [])
-
-dnl Check that an application that adds its own options shows them in
-dnl the usage message.
-AT_CHECK([APP_HELPER(app_opts_args) -h], 0, [stdout], [])
-AT_CHECK([grep ' -d ' stdout], 0, [ignore], [])
-AT_CHECK([grep ' -h ' stdout], 0, [ignore], [])
-AT_CHECK([grep ' -v ' stdout], 0, [ignore], [])
-AT_CHECK([grep ' -z ' stdout], 1, [ignore], [])
-
-dnl Check that an application that does not redefine any method does
-dnl not recognize strange flags.
-AT_CHECK([APP_HELPER(app_empty) -d], 1, [], [stderr])
-AT_CHECK([grep 'Unknown option.*-d' stderr], 0, [ignore], [])
-AT_CHECK([APP_HELPER(app_empty) -v], 1, [], [stderr])
-AT_CHECK([grep 'Unknown option.*-v' stderr], 0, [ignore], [])
-AT_CHECK([APP_HELPER(app_empty) -z], 1, [], [stderr])
-AT_CHECK([grep 'Unknown option.*-z' stderr], 0, [ignore], [])
-
-dnl Check that an application that adds its own options is able to
-dnl properly handle them.
-AT_CHECK([APP_HELPER(app_opts_args) -d], 0, [stdout], [])
-AT_CHECK([grep -- '-d given' stdout], 0, [ignore], [])
-AT_CHECK([APP_HELPER(app_opts_args) -v], 1, [], [stderr])
-AT_CHECK([grep 'Option.*-v.*requires an argument' stderr], 0, [ignore], [])
-AT_CHECK([APP_HELPER(app_opts_args) -v foo], 0, [stdout], [])
-AT_CHECK([grep -- '-v given with argument foo' stdout], 0, [ignore], [])
-AT_CHECK([APP_HELPER(app_opts_args) -z], 1, [], [stderr])
-AT_CHECK([grep 'Unknown option.*-z' stderr], 0, [ignore], [])
-
-dnl Check that option processing stops after an argument.
-AT_CHECK([APP_HELPER(app_opts_args) -- -d], 0, [stdout], [])
-AT_CHECK([grep -- '-d given' stdout], 1, [], [])
-AT_CHECK([APP_HELPER(app_opts_args) arg -d], 0, [stdout], [])
-AT_CHECK([grep -- '-d given' stdout], 1, [], [])
-
-dnl Check that an application that does not redefine any method does
-dnl not show unexpected arguments in the usage message.
-AT_CHECK([APP_HELPER(app_empty) -h], 0, [stdout], [])
-AT_CHECK([grep '\@<:@options\@:>@$' stdout], 0, [ignore], [])
-
-dnl Check that an application that defines the arguments it takes
-dnl shows them in the usage message.
-AT_CHECK([APP_HELPER(app_opts_args) -h], 0, [stdout], [])
-AT_CHECK([grep '\@<:@options\@:>@ <arg1> <arg2>' stdout], 0, [ignore], [])
-
-AT_CLEANUP()
-
-dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4
diff --git a/bootstrap/t_atf_config.at b/bootstrap/t_atf_config.at
deleted file mode 100644
index a86316999256..000000000000
--- a/bootstrap/t_atf_config.at
+++ /dev/null
@@ -1,108 +0,0 @@
-dnl
-dnl Automated Testing Framework (atf)
-dnl
-dnl Copyright (c) 2007 The NetBSD Foundation, Inc.
-dnl All rights reserved.
-dnl
-dnl Redistribution and use in source and binary forms, with or without
-dnl modification, are permitted provided that the following conditions
-dnl are met:
-dnl 1. Redistributions of source code must retain the above copyright
-dnl notice, this list of conditions and the following disclaimer.
-dnl 2. Redistributions in binary form must reproduce the above copyright
-dnl notice, this list of conditions and the following disclaimer in the
-dnl documentation and/or other materials provided with the distribution.
-dnl
-dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-dnl
-
-AT_SETUP([atf-config: querying of build-time variables])
-AT_TESTED(atf-config)
-
-all_vars="atf_arch \
- atf_build_cc \
- atf_build_cflags \
- atf_build_cpp \
- atf_build_cppflags \
- atf_build_cxx \
- atf_build_cxxflags \
- atf_confdir \
- atf_includedir \
- atf_libdir \
- atf_libexecdir \
- atf_machine \
- atf_pkgdatadir \
- atf_shell \
- atf_workdir"
-all_vars_no=15
-
-dnl List all variables.
-AT_CHECK([atf-config], [0], [stdout], [])
-AT_CHECK([COUNT_LINES(stdout, ${all_vars_no})], [0], [], [])
-for v in ${all_vars}; do
- AT_CHECK([grep "${v}" stdout], [0], [ignore], [])
-done
-
-dnl Query a single variable and test terse mode.
-for v in ${all_vars}; do
- AT_CHECK([atf-config ${v}], [0], [stdout], [])
- AT_CHECK([COUNT_LINES(stdout, 1)], [0], [], [])
- AT_CHECK([grep "${v}" stdout], [0], [ignore], [])
- AT_CHECK([cut -d ' ' -f 3- stdout], [0], [stdout], [])
- AT_CHECK([mv stdout expout], [0], [], [])
- AT_CHECK([atf-config -t ${v}], [0], [expout], [])
-done
-
-dnl Query several variables.
-AT_CHECK([atf-config atf_libexecdir atf_pkgdatadir], [0], [stdout], [])
-AT_CHECK([grep 'atf_libexecdir' stdout], [0], [ignore], [])
-AT_CHECK([grep 'atf_pkgdatadir' stdout], [0], [ignore], [])
-AT_CHECK([COUNT_LINES(stdout, 2)], [0], [ignore], [])
-
-dnl Query a non-existent variable.
-AT_CHECK([atf-config non_existent], [1], [], [stderr])
-AT_CHECK([grep 'Unknown variable.*non_existent' stderr], [0], [ignore], [])
-
-dnl Query an existent and non-existent variable.
-for v in ${all_vars}; do
- AT_CHECK([atf-config ${v} non_existent], [1], [], [stderr])
- AT_CHECK([grep 'Unknown variable.*non_existent' stderr],
- [0], [ignore], [])
- AT_CHECK([atf-config non_existent ${v}], [1], [], [stderr])
- AT_CHECK([grep 'Unknown variable.*non_existent' stderr],
- [0], [ignore], [])
-done
-
-dnl Override every variable through the environment.
-for v in ${all_vars}; do
- V=$(echo ${v} | tr '@<:@a-z@:>@' '@<:@A-Z@:>@')
- AT_CHECK([env ${V}=testval atf-config], [0], [stdout], [])
- AT_CHECK([mv stdout all], [0], [], [])
-
- AT_CHECK([grep "^${v} : " all], [0], [stdout], [])
- AT_CHECK([mv stdout affected], [0], [], [])
- AT_CHECK([grep -v "^${v} : " all], [0], [stdout], [])
- AT_CHECK([mv stdout unaffected], [0], [], [])
-
- AT_CHECK([COUNT_LINES(affected, 1)], [0], [ignore], [])
- AT_CHECK([COUNT_LINES(unaffected, $((${all_vars_no} - 1)))],
- [0], [ignore], [])
-
- AT_CHECK([grep "^${v} : testval$" affected], [0], [ignore], [])
- AT_CHECK([grep ' : testval$' unaffected], [1], [], [])
-done
-
-AT_CLEANUP()
-
-dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4
diff --git a/bootstrap/t_atf_run.at b/bootstrap/t_atf_run.at
deleted file mode 100644
index db09deb2cd24..000000000000
--- a/bootstrap/t_atf_run.at
+++ /dev/null
@@ -1,178 +0,0 @@
-dnl
-dnl Automated Testing Framework (atf)
-dnl
-dnl Copyright (c) 2007 The NetBSD Foundation, Inc.
-dnl All rights reserved.
-dnl
-dnl Redistribution and use in source and binary forms, with or without
-dnl modification, are permitted provided that the following conditions
-dnl are met:
-dnl 1. Redistributions of source code must retain the above copyright
-dnl notice, this list of conditions and the following disclaimer.
-dnl 2. Redistributions in binary form must reproduce the above copyright
-dnl notice, this list of conditions and the following disclaimer in the
-dnl documentation and/or other materials provided with the distribution.
-dnl
-dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-dnl
-
-AT_SETUP([atf-run: execution of tests])
-AT_TESTED(atf-run)
-
-m4_define([CREATE_PASS_TEST],
-[AT_CHECK([sed -e 's,@TC_NAME@,$2,g' <TEST_HELPER_NO_S(tp_pass)],
- [0], [stdout], [])
-AT_CHECK([mv stdout $1], [0], [], [])
-AT_CHECK([chmod +x $1], [0], [], [])
-])
-
-m4_define([CREATE_FAIL_TEST],
-[AT_CHECK([sed -e 's,@TC_NAME@,$2,g' <TEST_HELPER_NO_S(tp_fail)],
- [0], [stdout], [])
-AT_CHECK([mv stdout $1], [0], [], [])
-AT_CHECK([chmod +x $1], [0], [], [])
-])
-
-AT_CHECK([mkdir top], [0], [], [])
-AT_CHECK([mkdir top/dir1], [0], [], [])
-AT_CHECK([mkdir top/dir2], [0], [], [])
-AT_DATA([top/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: dir1
-tp: dir2
-tp: test1
-tp: test2
-])
-AT_DATA([top/dir1/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: test3
-])
-AT_DATA([top/dir2/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: test4
-tp: test5
-])
-CREATE_PASS_TEST([top/test1], [tc_1])
-CREATE_FAIL_TEST([top/test2], [tc_2])
-CREATE_PASS_TEST([top/dir1/test3], [tc_3])
-CREATE_FAIL_TEST([top/dir2/test4], [tc_4])
-CREATE_PASS_TEST([top/dir2/test5], [tc_5])
-
-AT_CHECK([cd top/dir1 && atf-run], [0], [stdout], [])
-CHECK_TPS_TCR(tc_3, passed, stdout)
-AT_CHECK([grep -i 'tc_@<:@1245@:>@' stdout], [1], [], [])
-AT_CHECK([grep 'tc-so:ignore-me' stdout], [0], [ignore], [])
-AT_CHECK([grep 'tc-se:ignore-me' stdout], [0], [ignore], [])
-
-AT_CHECK([cd top/dir2 && atf-run], [1], [stdout], [stderr])
-CHECK_TPS_TCR(tc_4, failed, stdout)
-CHECK_TPS_TCR(tc_5, passed, stdout)
-AT_CHECK([grep -i 'tc_@<:@123@:>@' stdout], [1], [], [])
-AT_CHECK([grep 'tc-so:ignore-me' stdout], [0], [ignore], [])
-AT_CHECK([grep 'tc-se:ignore-me' stdout], [0], [ignore], [])
-
-AT_CHECK([cd top && atf-run], [1], [stdout], [stderr])
-CHECK_TPS_TCR(tc_1, passed, stdout)
-CHECK_TPS_TCR(tc_2, failed, stdout)
-CHECK_TPS_TCR(tc_3, passed, stdout)
-CHECK_TPS_TCR(tc_4, failed, stdout)
-CHECK_TPS_TCR(tc_5, passed, stdout)
-AT_CHECK([grep 'tc-so:ignore-me' stdout], [0], [ignore], [])
-AT_CHECK([grep 'tc-se:ignore-me' stdout], [0], [ignore], [])
-
-dnl Repeat previous but using a glob that matches everything.
-AT_DATA([top/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp-glob: *
-])
-AT_CHECK([cd top && atf-run], [1], [stdout], [stderr])
-CHECK_TPS_TCR(tc_1, passed, stdout)
-CHECK_TPS_TCR(tc_2, failed, stdout)
-CHECK_TPS_TCR(tc_3, passed, stdout)
-CHECK_TPS_TCR(tc_4, failed, stdout)
-CHECK_TPS_TCR(tc_5, passed, stdout)
-AT_CHECK([grep 'tc-so:ignore-me' stdout], [0], [ignore], [])
-AT_CHECK([grep 'tc-se:ignore-me' stdout], [0], [ignore], [])
-
-dnl Repeat previous but using a glob that matches directories only.
-AT_DATA([top/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp-glob: d*
-])
-AT_CHECK([cd top && atf-run], [1], [stdout], [stderr])
-CHECK_TPS_TCR(tc_3, passed, stdout)
-CHECK_TPS_TCR(tc_4, failed, stdout)
-CHECK_TPS_TCR(tc_5, passed, stdout)
-AT_CHECK([grep 'tc-so:ignore-me' stdout], [0], [ignore], [])
-AT_CHECK([grep 'tc-se:ignore-me' stdout], [0], [ignore], [])
-
-dnl Make sure globs do not match non-executable nor hidden files.
-dnl XXX This is not really part of the bootstrap test suite. Move to
-dnl tests/atf/tools/t_atf_run.sh when it exists.
-AT_CHECK([rm -rf top], [0], [], [])
-AT_CHECK([mkdir top], [0], [], [])
-CREATE_PASS_TEST([top/test1], [tc_1])
-CREATE_PASS_TEST([top/test2], [tc_2])
-CREATE_PASS_TEST([top/test3], [tc_3])
-AT_CHECK([chmod -x top/test3], [0], [], [])
-CREATE_PASS_TEST([top/.test4], [tc_4])
-AT_CHECK([chmod -x top/.test4], [0], [], [])
-AT_DATA([top/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp-glob: *
-])
-AT_CHECK([cd top && atf-run], [0], [stdout], [stderr])
-CHECK_TPS_TCR(tc_1, passed, stdout)
-CHECK_TPS_TCR(tc_2, passed, stdout)
-AT_CHECK([grep -i 'tc_3' stdout], [1], [ignore], [])
-AT_CHECK([grep -i 'tc_4' stdout], [1], [ignore], [])
-
-dnl Run all test cases from a test program.
-AT_CHECK([rm -rf top], [0], [], [])
-AT_CHECK([mkdir top], [0], [], [])
-AT_CHECK([cp TEST_HELPER_NO_S(tp_basic_sh) top])
-AT_DATA([top/Atffile],
-[Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: h_tp_basic_sh
-])
-AT_CHECK([cd top && atf-run], [1], [stdout], [stderr])
-CHECK_TPS_TCR(pass, passed, stdout)
-CHECK_TPS_TCR(fail, failed, stdout)
-CHECK_TPS_TCR(skip, skipped, stdout)
-CHECK_TPS_TCR(default, passed, stdout)
-
-AT_CLEANUP()
-
-dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4
diff --git a/bootstrap/testsuite b/bootstrap/testsuite
index 7ec66f2051be..03c5d0198326 100755
--- a/bootstrap/testsuite
+++ b/bootstrap/testsuite
@@ -584,8 +584,7 @@ at_change_dir=false
# Whether to enable colored test results.
at_color=no
# List of the tested programs.
-at_tested='atf-config
-atf-run'
+at_tested=''
# As many question marks as there are digits in the last test group number.
# Used to normalize the test group numbers so that `ls' lists them in
# numerical order.
@@ -596,10 +595,6 @@ at_help_all="1;t_test_program_filter.at:30;test_program: filter test cases by na
3;t_test_program_list.at:30;test_program: list test cases;;
4;t_test_program_compare.at:30;test_program: compare the user-visible interfaces;;
5;t_subr_atf_check.at:30;subr: atf_check function;;
-6;t_application_opts_args.at:30;application: arguments and options handling;;
-7;t_application_help.at:30;application: online help option;;
-8;t_atf_config.at:30;atf-config: querying of build-time variables;;
-9;t_atf_run.at:30;atf-run: execution of tests;;
"
# List of the all the test groups.
at_groups_all=`$as_echo "$at_help_all" | sed 's/;.*//'`
@@ -613,7 +608,7 @@ at_fn_validate_ranges ()
for at_grp
do
eval at_value=\$$at_grp
- if test $at_value -lt 1 || test $at_value -gt 9; then
+ if test $at_value -lt 1 || test $at_value -gt 5; then
$as_echo "invalid test group: $at_value" >&2
exit 1
fi
@@ -911,7 +906,7 @@ fi
# List of tests.
if $at_list_p; then
cat <<_ATEOF || at_write_fail=1
-Automated Testing Framework 0.19 test suite: bootstrap tests test groups:
+Automated Testing Framework 0.20 test suite: bootstrap tests test groups:
NUM: FILE-NAME:LINE TEST-GROUP-NAME
KEYWORDS
@@ -952,7 +947,7 @@ _ATEOF
exit $at_write_fail
fi
if $at_version_p; then
- $as_echo "$as_me (Automated Testing Framework 0.19)" &&
+ $as_echo "$as_me (Automated Testing Framework 0.20)" &&
cat <<\_ATEOF || at_write_fail=1
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1129,11 +1124,11 @@ exec 5>>"$at_suite_log"
# Banners and logs.
$as_echo "## ------------------------------------------------------------- ##
-## Automated Testing Framework 0.19 test suite: bootstrap tests. ##
+## Automated Testing Framework 0.20 test suite: bootstrap tests. ##
## ------------------------------------------------------------- ##"
{
$as_echo "## ------------------------------------------------------------- ##
-## Automated Testing Framework 0.19 test suite: bootstrap tests. ##
+## Automated Testing Framework 0.20 test suite: bootstrap tests. ##
## ------------------------------------------------------------- ##"
echo
@@ -1977,7 +1972,7 @@ _ASBOX
$as_echo "Please send $at_msg and all information you think might help:
To: <atf-devel@NetBSD.org>
- Subject: [Automated Testing Framework 0.19] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
+ Subject: [Automated Testing Framework 0.20] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point. Its output may
@@ -5876,2471 +5871,3 @@ $at_traceon; }
) 5>&1 2>&1 7>&- | eval $at_tee_pipe
read at_status <"$at_status_file"
#AT_STOP_5
-#AT_START_6
-at_fn_group_banner 6 't_application_opts_args.at:30' \
- "application: arguments and options handling" " "
-at_xfail=no
-(
- $as_echo "6. $at_setup_line: testing $at_desc ..."
- $at_traceon
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:34: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty -h"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:34"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty -h
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:34"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:35: grep ' -d ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:35"
-( $at_check_trace; grep ' -d ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:35"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:36: grep ' -h ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:36"
-( $at_check_trace; grep ' -h ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:36"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:37: grep ' -v ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:37"
-( $at_check_trace; grep ' -v ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:37"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:38: grep ' -z ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:38"
-( $at_check_trace; grep ' -z ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:38"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:42: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -h"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:42"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -h
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:42"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:43: grep ' -d ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:43"
-( $at_check_trace; grep ' -d ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:43"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:44: grep ' -h ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:44"
-( $at_check_trace; grep ' -h ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:44"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:45: grep ' -v ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:45"
-( $at_check_trace; grep ' -v ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:45"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:46: grep ' -z ' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:46"
-( $at_check_trace; grep ' -z ' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:46"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:50: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty -d"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:50"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty -d
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:50"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:51: grep 'Unknown option.*-d' stderr"
-at_fn_check_prepare_trace "t_application_opts_args.at:51"
-( $at_check_trace; grep 'Unknown option.*-d' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:51"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:52: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty -v"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:52"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty -v
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:52"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:53: grep 'Unknown option.*-v' stderr"
-at_fn_check_prepare_trace "t_application_opts_args.at:53"
-( $at_check_trace; grep 'Unknown option.*-v' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:53"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:54: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty -z"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:54"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty -z
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:54"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:55: grep 'Unknown option.*-z' stderr"
-at_fn_check_prepare_trace "t_application_opts_args.at:55"
-( $at_check_trace; grep 'Unknown option.*-z' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:55"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:59: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -d"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:59"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -d
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:59"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:60: grep -- '-d given' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:60"
-( $at_check_trace; grep -- '-d given' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:60"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:61: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -v"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:61"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -v
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:61"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:62: grep 'Option.*-v.*requires an argument' stderr"
-at_fn_check_prepare_trace "t_application_opts_args.at:62"
-( $at_check_trace; grep 'Option.*-v.*requires an argument' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:62"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:63: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -v foo"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:63"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -v foo
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:63"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:64: grep -- '-v given with argument foo' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:64"
-( $at_check_trace; grep -- '-v given with argument foo' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:64"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:65: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -z"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:65"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -z
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:65"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:66: grep 'Unknown option.*-z' stderr"
-at_fn_check_prepare_trace "t_application_opts_args.at:66"
-( $at_check_trace; grep 'Unknown option.*-z' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:66"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:69: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -- -d"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:69"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -- -d
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:69"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:70: grep -- '-d given' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:70"
-( $at_check_trace; grep -- '-d given' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:70"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:71: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args arg -d"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:71"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args arg -d
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:71"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:72: grep -- '-d given' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:72"
-( $at_check_trace; grep -- '-d given' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_opts_args.at:72"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:76: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty -h"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:76"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty -h
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:76"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:77: grep '\\[options\\]\$' stdout"
-at_fn_check_prepare_dynamic "grep '\\[options\\]$' stdout" "t_application_opts_args.at:77"
-( $at_check_trace; grep '\[options\]$' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:77"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:81: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_opts_args -h"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_opts_args.at:81"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_opts_args -h
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:81"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_opts_args.at:82: grep '\\[options\\] <arg1> <arg2>' stdout"
-at_fn_check_prepare_trace "t_application_opts_args.at:82"
-( $at_check_trace; grep '\[options\] <arg1> <arg2>' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_opts_args.at:82"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
- set +x
- $at_times_p && times >"$at_times_file"
-) 5>&1 2>&1 7>&- | eval $at_tee_pipe
-read at_status <"$at_status_file"
-#AT_STOP_6
-#AT_START_7
-at_fn_group_banner 7 't_application_help.at:30' \
- "application: online help option" " "
-at_xfail=no
-(
- $as_echo "7. $at_setup_line: testing $at_desc ..."
- $at_traceon
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_help.at:32: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_help.at:32"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_help.at:32"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_help.at:33: grep 'Available options' stdout"
-at_fn_check_prepare_trace "t_application_help.at:33"
-( $at_check_trace; grep 'Available options' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_application_help.at:33"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_application_help.at:35: \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_app_empty -h"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_application_help.at:35"
-( $at_check_trace; $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_app_empty -h
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_help.at:35"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_application_help.at:36: grep 'Available options' stdout"
-at_fn_check_prepare_trace "t_application_help.at:36"
-( $at_check_trace; grep 'Available options' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_application_help.at:36"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
- set +x
- $at_times_p && times >"$at_times_file"
-) 5>&1 2>&1 7>&- | eval $at_tee_pipe
-read at_status <"$at_status_file"
-#AT_STOP_7
-#AT_START_8
-at_fn_group_banner 8 't_atf_config.at:30' \
- "atf-config: querying of build-time variables" " "
-at_xfail=no
-(
- $as_echo "8. $at_setup_line: testing $at_desc ..."
- $at_traceon
-
-
-
-all_vars="atf_arch \
- atf_build_cc \
- atf_build_cflags \
- atf_build_cpp \
- atf_build_cppflags \
- atf_build_cxx \
- atf_build_cxxflags \
- atf_confdir \
- atf_includedir \
- atf_libdir \
- atf_libexecdir \
- atf_machine \
- atf_pkgdatadir \
- atf_shell \
- atf_workdir"
-all_vars_no=15
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:51: atf-config"
-at_fn_check_prepare_trace "t_atf_config.at:51"
-( $at_check_trace; atf-config
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:51"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:52: test $(wc -l stdout | awk '{ print $1 }') = \${all_vars_no}"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:52"
-( $at_check_trace; test $(wc -l stdout | awk '{ print $1 }') = ${all_vars_no}
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:52"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-for v in ${all_vars}; do
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:54: grep \"\${v}\" stdout"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:54"
-( $at_check_trace; grep "${v}" stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:54"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-done
-
-for v in ${all_vars}; do
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:59: atf-config \${v}"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:59"
-( $at_check_trace; atf-config ${v}
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:59"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:60: test $(wc -l stdout | awk '{ print $1 }') = 1"
-at_fn_check_prepare_notrace 'a shell pipeline' "t_atf_config.at:60"
-( $at_check_trace; test $(wc -l stdout | awk '{ print $1 }') = 1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:60"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:61: grep \"\${v}\" stdout"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:61"
-( $at_check_trace; grep "${v}" stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:61"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:62: cut -d ' ' -f 3- stdout"
-at_fn_check_prepare_trace "t_atf_config.at:62"
-( $at_check_trace; cut -d ' ' -f 3- stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:62"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:63: mv stdout expout"
-at_fn_check_prepare_trace "t_atf_config.at:63"
-( $at_check_trace; mv stdout expout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:63"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:64: atf-config -t \${v}"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:64"
-( $at_check_trace; atf-config -t ${v}
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-$at_diff expout "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:64"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-done
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:68: atf-config atf_libexecdir atf_pkgdatadir"
-at_fn_check_prepare_trace "t_atf_config.at:68"
-( $at_check_trace; atf-config atf_libexecdir atf_pkgdatadir
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:68"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:69: grep 'atf_libexecdir' stdout"
-at_fn_check_prepare_trace "t_atf_config.at:69"
-( $at_check_trace; grep 'atf_libexecdir' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:69"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:70: grep 'atf_pkgdatadir' stdout"
-at_fn_check_prepare_trace "t_atf_config.at:70"
-( $at_check_trace; grep 'atf_pkgdatadir' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:70"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:71: test $(wc -l stdout | awk '{ print $1 }') = 2"
-at_fn_check_prepare_notrace 'a shell pipeline' "t_atf_config.at:71"
-( $at_check_trace; test $(wc -l stdout | awk '{ print $1 }') = 2
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:71"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:74: atf-config non_existent"
-at_fn_check_prepare_trace "t_atf_config.at:74"
-( $at_check_trace; atf-config non_existent
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:74"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_config.at:75: grep 'Unknown variable.*non_existent' stderr"
-at_fn_check_prepare_trace "t_atf_config.at:75"
-( $at_check_trace; grep 'Unknown variable.*non_existent' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:75"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-for v in ${all_vars}; do
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:79: atf-config \${v} non_existent"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:79"
-( $at_check_trace; atf-config ${v} non_existent
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:79"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:80: grep 'Unknown variable.*non_existent' stderr"
-at_fn_check_prepare_trace "t_atf_config.at:80"
-( $at_check_trace; grep 'Unknown variable.*non_existent' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:80"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:82: atf-config non_existent \${v}"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:82"
-( $at_check_trace; atf-config non_existent ${v}
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:82"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:83: grep 'Unknown variable.*non_existent' stderr"
-at_fn_check_prepare_trace "t_atf_config.at:83"
-( $at_check_trace; grep 'Unknown variable.*non_existent' stderr
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:83"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-done
-
-for v in ${all_vars}; do
- V=$(echo ${v} | tr '[a-z]' '[A-Z]')
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:90: env \${V}=testval atf-config"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:90"
-( $at_check_trace; env ${V}=testval atf-config
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:90"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:91: mv stdout all"
-at_fn_check_prepare_trace "t_atf_config.at:91"
-( $at_check_trace; mv stdout all
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:91"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:93: grep \"^\${v} : \" all"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:93"
-( $at_check_trace; grep "^${v} : " all
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:93"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:94: mv stdout affected"
-at_fn_check_prepare_trace "t_atf_config.at:94"
-( $at_check_trace; mv stdout affected
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:94"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:95: grep -v \"^\${v} : \" all"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:95"
-( $at_check_trace; grep -v "^${v} : " all
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:95"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:96: mv stdout unaffected"
-at_fn_check_prepare_trace "t_atf_config.at:96"
-( $at_check_trace; mv stdout unaffected
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:96"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:98: test $(wc -l affected | awk '{ print $1 }') = 1"
-at_fn_check_prepare_notrace 'a shell pipeline' "t_atf_config.at:98"
-( $at_check_trace; test $(wc -l affected | awk '{ print $1 }') = 1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:98"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:99: test $(wc -l unaffected | awk '{ print $1 }') = \$((\${all_vars_no} - 1))"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_config.at:99"
-( $at_check_trace; test $(wc -l unaffected | awk '{ print $1 }') = $((${all_vars_no} - 1))
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:99"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:102: grep \"^\${v} : testval\$\" affected"
-at_fn_check_prepare_notrace 'a ${...} parameter expansion' "t_atf_config.at:102"
-( $at_check_trace; grep "^${v} : testval$" affected
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_config.at:102"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
- { set +x
-$as_echo "$at_srcdir/t_atf_config.at:103: grep ' : testval\$' unaffected"
-at_fn_check_prepare_dynamic "grep ' : testval$' unaffected" "t_atf_config.at:103"
-( $at_check_trace; grep ' : testval$' unaffected
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_config.at:103"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-done
-
- set +x
- $at_times_p && times >"$at_times_file"
-) 5>&1 2>&1 7>&- | eval $at_tee_pipe
-read at_status <"$at_status_file"
-#AT_STOP_8
-#AT_START_9
-at_fn_group_banner 9 't_atf_run.at:30' \
- "atf-run: execution of tests" " "
-at_xfail=no
-(
- $as_echo "9. $at_setup_line: testing $at_desc ..."
- $at_traceon
-
-
-
-
-
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:47: mkdir top"
-at_fn_check_prepare_trace "t_atf_run.at:47"
-( $at_check_trace; mkdir top
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:47"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:48: mkdir top/dir1"
-at_fn_check_prepare_trace "t_atf_run.at:48"
-( $at_check_trace; mkdir top/dir1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:48"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:49: mkdir top/dir2"
-at_fn_check_prepare_trace "t_atf_run.at:49"
-( $at_check_trace; mkdir top/dir2
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:49"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-cat >top/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: dir1
-tp: dir2
-tp: test1
-tp: test2
-_ATEOF
-
-cat >top/dir1/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: test3
-_ATEOF
-
-cat >top/dir2/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: test4
-tp: test5
-_ATEOF
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:75: sed -e 's,@TC_NAME@,tc_1,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:75"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_1,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:75"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:75: mv stdout top/test1"
-at_fn_check_prepare_trace "t_atf_run.at:75"
-( $at_check_trace; mv stdout top/test1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:75"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:75: chmod +x top/test1"
-at_fn_check_prepare_trace "t_atf_run.at:75"
-( $at_check_trace; chmod +x top/test1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:75"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:76: sed -e 's,@TC_NAME@,tc_2,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_fail"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:76"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_2,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_fail
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:76"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:76: mv stdout top/test2"
-at_fn_check_prepare_trace "t_atf_run.at:76"
-( $at_check_trace; mv stdout top/test2
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:76"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:76: chmod +x top/test2"
-at_fn_check_prepare_trace "t_atf_run.at:76"
-( $at_check_trace; chmod +x top/test2
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:76"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:77: sed -e 's,@TC_NAME@,tc_3,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:77"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_3,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:77"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:77: mv stdout top/dir1/test3"
-at_fn_check_prepare_trace "t_atf_run.at:77"
-( $at_check_trace; mv stdout top/dir1/test3
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:77"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:77: chmod +x top/dir1/test3"
-at_fn_check_prepare_trace "t_atf_run.at:77"
-( $at_check_trace; chmod +x top/dir1/test3
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:77"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:78: sed -e 's,@TC_NAME@,tc_4,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_fail"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:78"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_4,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_fail
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:78"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:78: mv stdout top/dir2/test4"
-at_fn_check_prepare_trace "t_atf_run.at:78"
-( $at_check_trace; mv stdout top/dir2/test4
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:78"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:78: chmod +x top/dir2/test4"
-at_fn_check_prepare_trace "t_atf_run.at:78"
-( $at_check_trace; chmod +x top/dir2/test4
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:78"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:79: sed -e 's,@TC_NAME@,tc_5,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:79"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_5,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:79"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:79: mv stdout top/dir2/test5"
-at_fn_check_prepare_trace "t_atf_run.at:79"
-( $at_check_trace; mv stdout top/dir2/test5
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:79"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:79: chmod +x top/dir2/test5"
-at_fn_check_prepare_trace "t_atf_run.at:79"
-( $at_check_trace; chmod +x top/dir2/test5
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:79"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:81: cd top/dir1 && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:81"
-( $at_check_trace; cd top/dir1 && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:81"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:82: grep '^tc-end: [0-9. ]*, tc_3, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:82"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_3, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:82"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:83: grep -i 'tc_[1245]' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:83"
-( $at_check_trace; grep -i 'tc_[1245]' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:83"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:84: grep 'tc-so:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:84"
-( $at_check_trace; grep 'tc-so:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:84"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:85: grep 'tc-se:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:85"
-( $at_check_trace; grep 'tc-se:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:85"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:87: cd top/dir2 && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:87"
-( $at_check_trace; cd top/dir2 && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:87"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:88: grep '^tc-end: [0-9. ]*, tc_4, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:88"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_4, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:88"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:89: grep '^tc-end: [0-9. ]*, tc_5, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:89"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_5, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:89"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:90: grep -i 'tc_[123]' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:90"
-( $at_check_trace; grep -i 'tc_[123]' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:90"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:91: grep 'tc-so:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:91"
-( $at_check_trace; grep 'tc-so:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:91"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:92: grep 'tc-se:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:92"
-( $at_check_trace; grep 'tc-se:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:92"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:94: cd top && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:94"
-( $at_check_trace; cd top && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:94"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:95: grep '^tc-end: [0-9. ]*, tc_1, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:95"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_1, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:95"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:96: grep '^tc-end: [0-9. ]*, tc_2, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:96"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_2, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:96"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:97: grep '^tc-end: [0-9. ]*, tc_3, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:97"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_3, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:97"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:98: grep '^tc-end: [0-9. ]*, tc_4, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:98"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_4, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:98"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:99: grep '^tc-end: [0-9. ]*, tc_5, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:99"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_5, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:99"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:100: grep 'tc-so:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:100"
-( $at_check_trace; grep 'tc-so:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:100"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:101: grep 'tc-se:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:101"
-( $at_check_trace; grep 'tc-se:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:101"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-cat >top/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp-glob: *
-_ATEOF
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:111: cd top && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:111"
-( $at_check_trace; cd top && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:111"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:112: grep '^tc-end: [0-9. ]*, tc_1, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:112"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_1, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:112"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:113: grep '^tc-end: [0-9. ]*, tc_2, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:113"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_2, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:113"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:114: grep '^tc-end: [0-9. ]*, tc_3, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:114"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_3, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:114"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:115: grep '^tc-end: [0-9. ]*, tc_4, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:115"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_4, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:115"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:116: grep '^tc-end: [0-9. ]*, tc_5, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:116"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_5, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:116"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:117: grep 'tc-so:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:117"
-( $at_check_trace; grep 'tc-so:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:117"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:118: grep 'tc-se:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:118"
-( $at_check_trace; grep 'tc-se:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:118"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-cat >top/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp-glob: d*
-_ATEOF
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:128: cd top && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:128"
-( $at_check_trace; cd top && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:128"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:129: grep '^tc-end: [0-9. ]*, tc_3, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:129"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_3, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:129"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:130: grep '^tc-end: [0-9. ]*, tc_4, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:130"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_4, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:130"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:131: grep '^tc-end: [0-9. ]*, tc_5, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:131"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_5, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:131"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:132: grep 'tc-so:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:132"
-( $at_check_trace; grep 'tc-so:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:132"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:133: grep 'tc-se:ignore-me' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:133"
-( $at_check_trace; grep 'tc-se:ignore-me' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:133"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:138: rm -rf top"
-at_fn_check_prepare_trace "t_atf_run.at:138"
-( $at_check_trace; rm -rf top
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:138"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:139: mkdir top"
-at_fn_check_prepare_trace "t_atf_run.at:139"
-( $at_check_trace; mkdir top
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:139"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:140: sed -e 's,@TC_NAME@,tc_1,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:140"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_1,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:140"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:140: mv stdout top/test1"
-at_fn_check_prepare_trace "t_atf_run.at:140"
-( $at_check_trace; mv stdout top/test1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:140"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:140: chmod +x top/test1"
-at_fn_check_prepare_trace "t_atf_run.at:140"
-( $at_check_trace; chmod +x top/test1
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:140"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:141: sed -e 's,@TC_NAME@,tc_2,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:141"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_2,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:141"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:141: mv stdout top/test2"
-at_fn_check_prepare_trace "t_atf_run.at:141"
-( $at_check_trace; mv stdout top/test2
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:141"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:141: chmod +x top/test2"
-at_fn_check_prepare_trace "t_atf_run.at:141"
-( $at_check_trace; chmod +x top/test2
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:141"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:142: sed -e 's,@TC_NAME@,tc_3,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:142"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_3,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:142"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:142: mv stdout top/test3"
-at_fn_check_prepare_trace "t_atf_run.at:142"
-( $at_check_trace; mv stdout top/test3
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:142"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:142: chmod +x top/test3"
-at_fn_check_prepare_trace "t_atf_run.at:142"
-( $at_check_trace; chmod +x top/test3
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:142"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:143: chmod -x top/test3"
-at_fn_check_prepare_trace "t_atf_run.at:143"
-( $at_check_trace; chmod -x top/test3
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:143"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:144: sed -e 's,@TC_NAME@,tc_4,g' <\$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_pass"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:144"
-( $at_check_trace; sed -e 's,@TC_NAME@,tc_4,g' <$({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_pass
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:144"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:144: mv stdout top/.test4"
-at_fn_check_prepare_trace "t_atf_run.at:144"
-( $at_check_trace; mv stdout top/.test4
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:144"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:144: chmod +x top/.test4"
-at_fn_check_prepare_trace "t_atf_run.at:144"
-( $at_check_trace; chmod +x top/.test4
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:144"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:145: chmod -x top/.test4"
-at_fn_check_prepare_trace "t_atf_run.at:145"
-( $at_check_trace; chmod -x top/.test4
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:145"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-cat >top/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp-glob: *
-_ATEOF
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:153: cd top && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:153"
-( $at_check_trace; cd top && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:153"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:154: grep '^tc-end: [0-9. ]*, tc_1, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:154"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_1, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:154"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:155: grep '^tc-end: [0-9. ]*, tc_2, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:155"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, tc_2, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:155"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:156: grep -i 'tc_3' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:156"
-( $at_check_trace; grep -i 'tc_3' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:156"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:157: grep -i 'tc_4' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:157"
-( $at_check_trace; grep -i 'tc_4' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:157"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:160: rm -rf top"
-at_fn_check_prepare_trace "t_atf_run.at:160"
-( $at_check_trace; rm -rf top
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:160"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:161: mkdir top"
-at_fn_check_prepare_trace "t_atf_run.at:161"
-( $at_check_trace; mkdir top
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:161"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:162: cp \$({
- old=\$(pwd)
- while test \$(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=\$(pwd)
- cd \${old}
- echo \${topdir}
-})/bootstrap/h_tp_basic_sh top"
-at_fn_check_prepare_notrace 'a $(...) command substitution' "t_atf_run.at:162"
-( $at_check_trace; cp $({
- old=$(pwd)
- while test $(pwd) != '/' -a ! -e ./Makefile; do
- cd ..
- done
- topdir=$(pwd)
- cd ${old}
- echo ${topdir}
-})/bootstrap/h_tp_basic_sh top
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-at_fn_diff_devnull "$at_stdout" || at_failed=:
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:162"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-cat >top/Atffile <<'_ATEOF'
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: h_tp_basic_sh
-_ATEOF
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:170: cd top && atf-run"
-at_fn_check_prepare_trace "t_atf_run.at:170"
-( $at_check_trace; cd top && atf-run
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-echo stderr:; tee stderr <"$at_stderr"
-echo stdout:; tee stdout <"$at_stdout"
-at_fn_check_status 1 $at_status "$at_srcdir/t_atf_run.at:170"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:171: grep '^tc-end: [0-9. ]*, pass, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:171"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, pass, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:171"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:172: grep '^tc-end: [0-9. ]*, fail, failed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:172"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, fail, failed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:172"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:173: grep '^tc-end: [0-9. ]*, skip, skipped' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:173"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, skip, skipped' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:173"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-{ set +x
-$as_echo "$at_srcdir/t_atf_run.at:174: grep '^tc-end: [0-9. ]*, default, passed' stdout"
-at_fn_check_prepare_trace "t_atf_run.at:174"
-( $at_check_trace; grep '^tc-end: [0-9. ]*, default, passed' stdout
-) >>"$at_stdout" 2>>"$at_stderr" 5>&-
-at_status=$? at_failed=false
-$at_check_filter
-at_fn_diff_devnull "$at_stderr" || at_failed=:
-echo stdout:; cat "$at_stdout"
-at_fn_check_status 0 $at_status "$at_srcdir/t_atf_run.at:174"
-$at_failed && at_fn_log_failure
-$at_traceon; }
-
-
- set +x
- $at_times_p && times >"$at_times_file"
-) 5>&1 2>&1 7>&- | eval $at_tee_pipe
-read at_status <"$at_status_file"
-#AT_STOP_9
diff --git a/bootstrap/testsuite.at b/bootstrap/testsuite.at
index 3536ac95b84d..31098f07fb32 100644
--- a/bootstrap/testsuite.at
+++ b/bootstrap/testsuite.at
@@ -74,11 +74,4 @@ m4_include(bootstrap/t_test_program_list.at)
m4_include(bootstrap/t_test_program_compare.at)
m4_include(bootstrap/t_subr_atf_check.at)
-m4_if(ENABLE_TOOLS, yes, [
- m4_include(bootstrap/t_application_opts_args.at)
- m4_include(bootstrap/t_application_help.at)
- m4_include(bootstrap/t_atf_config.at)
- m4_include(bootstrap/t_atf_run.at)
-])
-
dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4
diff --git a/configure b/configure
index 50333919d7ac..271b7ceca688 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for Automated Testing Framework 0.19.
+# Generated by GNU Autoconf 2.69 for Automated Testing Framework 0.20.
#
# Report bugs to <atf-devel@NetBSD.org>.
#
@@ -592,8 +592,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Automated Testing Framework'
PACKAGE_TARNAME='atf'
-PACKAGE_VERSION='0.19'
-PACKAGE_STRING='Automated Testing Framework 0.19'
+PACKAGE_VERSION='0.20'
+PACKAGE_STRING='Automated Testing Framework 0.20'
PACKAGE_BUGREPORT='atf-devel@NetBSD.org'
PACKAGE_URL='https://github.com/jmmv/atf/'
@@ -642,19 +642,10 @@ GIT
HAVE_KYUA_FALSE
HAVE_KYUA_TRUE
KYUA
-GDB
ATF_SHELL
-atf_xsldir
atf_pkgconfigdir
-atf_egdir
-atf_dtddir
-atf_cssdir
atf_aclocaldir
ATF_WORKDIR
-atf_confdir
-ATF_CONFSUBDIR
-atf_machine
-atf_arch
target_srcdir
ATF_BUILD_CXXFLAGS
ATF_BUILD_CXX
@@ -672,9 +663,6 @@ CXXDEPMODE
ac_ct_CXX
CXXFLAGS
CXX
-ENABLE_TOOLS_FALSE
-ENABLE_TOOLS_TRUE
-ENABLE_TOOLS
CPP
OTOOL64
OTOOL
@@ -803,7 +791,6 @@ enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
-enable_tools
enable_developer
'
ac_precious_vars='build_alias
@@ -825,7 +812,6 @@ ATF_BUILD_CPP
ATF_BUILD_CPPFLAGS
ATF_BUILD_CXX
ATF_BUILD_CXXFLAGS
-ATF_CONFSUBDIR
ATF_WORKDIR
ATF_SHELL'
@@ -1368,7 +1354,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures Automated Testing Framework 0.19 to adapt to many kinds of systems.
+\`configure' configures Automated Testing Framework 0.20 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1439,7 +1425,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of Automated Testing Framework 0.19:";;
+ short | recursive ) echo "Configuration of Automated Testing Framework 0.20:";;
esac
cat <<\_ACEOF
@@ -1458,7 +1444,6 @@ Optional Features:
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
- --enable-tools Enables the build of the deprecated ATF tools
--enable-developer enable developer features
Optional Packages:
@@ -1494,8 +1479,6 @@ Some influential environment variables:
C++ compiler to use at runtime
ATF_BUILD_CXXFLAGS
C++ compiler flags to use at runtime
- ATF_CONFSUBDIR
- Subdirectory of sysconfdir under which to look for files
ATF_WORKDIR Default location to use for ATF work directories
ATF_SHELL Location of the POSIX shell interpreter to use
@@ -1566,7 +1549,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-Automated Testing Framework configure 0.19
+Automated Testing Framework configure 0.20
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2072,65 +2055,11 @@ $as_echo "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_cxx_check_func
-
-# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
-# ---------------------------------------------
-# Tests whether TYPE exists after having included INCLUDES, setting cache
-# variable VAR accordingly.
-ac_fn_cxx_check_type ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- eval "$3=no"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-if (sizeof ($2))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-if (sizeof (($2)))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
-
-else
- eval "$3=yes"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_cxx_check_type
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by Automated Testing Framework $as_me 0.19, which was
+It was created by Automated Testing Framework $as_me 0.20, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -3116,7 +3045,7 @@ fi
# Define the identity of the package.
PACKAGE='atf'
- VERSION='0.19'
+ VERSION='0.20'
cat >>confdefs.h <<_ACEOF
@@ -11931,27 +11860,6 @@ CC="$lt_save_CC"
-# Check whether --enable-tools was given.
-if test "${enable_tools+set}" = set; then :
- enableval=$enable_tools; case $enableval in
- yes|no) enable_tools=${enableval} ;;
- *) as_fn_error $? "Invalid value passed to --enable-tools" "$LINENO" 5 ;;
- esac
-else
- enable_tools=no
-fi
-
-ENABLE_TOOLS=${enable_tools}
-
- if test "${enable_tools}" = yes; then
- ENABLE_TOOLS_TRUE=
- ENABLE_TOOLS_FALSE='#'
-else
- ENABLE_TOOLS_TRUE='#'
- ENABLE_TOOLS_FALSE=
-fi
-
-
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
@@ -17061,102 +16969,6 @@ $as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5
-$as_echo_n "checking for the last valid signal... " >&6; }
-if ${kyua_cv_signal_lastno+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run test program while cross compiling
-See \`config.log' for more details" "$LINENO" 5; }
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <err.h>
-#include <errno.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdio.h>
-#include <stdlib.h>
-int
-main ()
-{
-
- int i;
- FILE *f;
-
- i = 0;
- while (i < 1024) {
- i++;
- if (i != SIGKILL && i != SIGSTOP) {
- struct sigaction sa;
- int ret;
-
- sa.sa_handler = SIG_IGN;
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = 0;
-
- ret = sigaction(i, &sa, NULL);
- if (ret == -1) {
- if (errno == EINVAL) {
- i--;
- break;
- } else
- err(EXIT_FAILURE, "sigaction failed");
- }
- }
- }
- if (i == 100)
- errx(EXIT_FAILURE, "too much signals");
-
- f = fopen("conftest.cnt", "w");
- if (f == NULL)
- err(EXIT_FAILURE, "failed to open file");
-
- fprintf(f, "%d\n", i);
- fclose(f);
-
- return EXIT_SUCCESS;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_cxx_try_run "$LINENO"; then :
- if test ! -f conftest.cnt; then
- kyua_cv_signal_lastno=15
- else
- kyua_cv_signal_lastno=$(cat conftest.cnt)
- rm -f conftest.cnt
- fi
-else
- kyua_cv_signal_lastno=15
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_signal_lastno" >&5
-$as_echo "$kyua_cv_signal_lastno" >&6; }
-
-cat >>confdefs.h <<_ACEOF
-#define LAST_SIGNO ${kyua_cv_signal_lastno}
-_ACEOF
-
-
-
-ac_fn_cxx_check_type "$LINENO" "timer_t" "ac_cv_type_timer_t" "#include <time.h>
-"
-if test "x$ac_cv_type_timer_t" = xyes; then :
-
-fi
-
-
test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
@@ -17197,37 +17009,6 @@ fi
-atf_arch=`uname -p`
-atf_machine=`uname -m`
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&5
-$as_echo "$as_me: Machine type: ${atf_machine}, architecture: ${atf_arch}" >&6;}
-atf_arch=${atf_arch}
-
-atf_machine=${atf_machine}
-
-
-
-
-if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
- ATF_CONFSUBDIR=atf
-else
- case ${ATF_CONFSUBDIR} in
- /*)
- as_fn_error $? "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5
- ;;
- *)
- ;;
- esac
-fi
-if test x"${ATF_CONFSUBDIR}" = x""; then
- atf_confdir=\${sysconfdir}
-
-else
- atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR}
-
-fi
-
if test x"${ATF_WORKDIR}" = x""; then
for t in /tmp /var/tmp; do
@@ -17251,16 +17032,8 @@ fi
atf_aclocaldir=\${datadir}/aclocal
-atf_cssdir=\${datadir}/examples/atf
-
-atf_dtddir=\${datadir}/xml/atf
-
-atf_egdir=\${datadir}/examples/atf
-
atf_pkgconfigdir=\${libdir}/pkgconfig
-atf_xsldir=\${datadir}/xsl/atf
-
@@ -17324,46 +17097,6 @@ if test x"${ATF_SHELL}" = x""; then
fi
-# Extract the first word of "gdb", so it can be a program name with args.
-set dummy gdb; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_GDB+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $GDB in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-GDB=$ac_cv_path_GDB
-if test -n "$GDB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5
-$as_echo "$GDB" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
# Extract the first word of "kyua", so it can be a program name with args.
set dummy kyua; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -17454,7 +17187,7 @@ fi
-ac_config_files="$ac_config_files Makefile atf-c/defs.h tools/defs.hpp"
+ac_config_files="$ac_config_files Makefile atf-c/defs.h"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
@@ -17589,10 +17322,6 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
-if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
- as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -18002,7 +17731,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by Automated Testing Framework $as_me 0.19, which was
+This file was extended by Automated Testing Framework $as_me 0.20, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -18069,7 +17798,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-Automated Testing Framework config.status 0.19
+Automated Testing Framework config.status 0.20
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
@@ -18580,7 +18309,6 @@ do
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
- "tools/defs.hpp") CONFIG_FILES="$CONFIG_FILES tools/defs.hpp" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
@@ -20128,10 +19856,3 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
-if test ${enable_tools} = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&5
-$as_echo "$as_me: WARNING: Building the deprecated ATF tools (atf-run and atf-report);" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please migrate to Kyua as soon as feasible." >&5
-$as_echo "$as_me: WARNING: please migrate to Kyua as soon as feasible." >&2;}
-fi
-
diff --git a/configure.ac b/configure.ac
index bca3184ab0e3..3a443c86ffaa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@ dnl -----------------------------------------------------------------------
dnl Initialize the GNU build system.
dnl -----------------------------------------------------------------------
-AC_INIT([Automated Testing Framework], [0.19], [atf-devel@NetBSD.org], [atf],
+AC_INIT([Automated Testing Framework], [0.20], [atf-devel@NetBSD.org], [atf],
[https://github.com/jmmv/atf/])
AC_PREREQ([2.65])
AC_COPYRIGHT([Copyright (c) 2007-2012 The NetBSD Foundation, Inc.])
@@ -51,17 +51,6 @@ AM_INIT_AUTOMAKE([1.9 check-news foreign subdir-objects -Wall])
AM_PROG_AR
LT_INIT
-AC_ARG_ENABLE(tools,
- AS_HELP_STRING([--enable-tools],
- [Enables the build of the deprecated ATF tools]),
- [case $enableval in
- yes|no) enable_tools=${enableval} ;;
- *) AC_MSG_ERROR([Invalid value passed to --enable-tools]) ;;
- esac],
- [enable_tools=no])
-AC_SUBST([ENABLE_TOOLS], ${enable_tools})
-AM_CONDITIONAL([ENABLE_TOOLS], [test "${enable_tools}" = yes])
-
dnl -----------------------------------------------------------------------
dnl Check for the C and C++ compilers and required features.
dnl -----------------------------------------------------------------------
@@ -91,9 +80,6 @@ ATF_MODULE_APPLICATION
ATF_MODULE_DEFS
ATF_MODULE_ENV
ATF_MODULE_FS
-ATF_MODULE_SIGNALS
-
-AC_CHECK_TYPE([timer_t], [], [], [[#include <time.h>]])
ATF_RUNTIME_TOOL([ATF_BUILD_CC],
[C compiler to use at runtime], [${CC}])
@@ -123,39 +109,9 @@ fi
AC_SUBST([target_srcdir])
dnl -----------------------------------------------------------------------
-dnl Architecture and machine checks.
-dnl -----------------------------------------------------------------------
-
-atf_arch=`uname -p`
-atf_machine=`uname -m`
-
-AC_MSG_NOTICE([Machine type: ${atf_machine}, architecture: ${atf_arch}])
-AC_SUBST(atf_arch, ${atf_arch})
-AC_SUBST(atf_machine, ${atf_machine})
-
-dnl -----------------------------------------------------------------------
dnl User-customizable variables.
dnl -----------------------------------------------------------------------
-AC_ARG_VAR([ATF_CONFSUBDIR],
- [Subdirectory of sysconfdir under which to look for files])
-if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then
- ATF_CONFSUBDIR=atf
-else
- case ${ATF_CONFSUBDIR} in
- /*)
- AC_MSG_ERROR([ATF_CONFSUBDIR must hold a relative path])
- ;;
- *)
- ;;
- esac
-fi
-if test x"${ATF_CONFSUBDIR}" = x""; then
- AC_SUBST(atf_confdir, \${sysconfdir})
-else
- AC_SUBST(atf_confdir, \${sysconfdir}/${ATF_CONFSUBDIR})
-fi
-
AC_ARG_VAR([ATF_WORKDIR],
[Default location to use for ATF work directories])
if test x"${ATF_WORKDIR}" = x""; then
@@ -179,11 +135,7 @@ else
fi
AC_SUBST(atf_aclocaldir, \${datadir}/aclocal)
-AC_SUBST(atf_cssdir, \${datadir}/examples/atf)
-AC_SUBST(atf_dtddir, \${datadir}/xml/atf)
-AC_SUBST(atf_egdir, \${datadir}/examples/atf)
AC_SUBST(atf_pkgconfigdir, \${libdir}/pkgconfig)
-AC_SUBST(atf_xsldir, \${datadir}/xsl/atf)
dnl -----------------------------------------------------------------------
dnl Check for the shell and portability problems.
@@ -209,7 +161,6 @@ dnl -----------------------------------------------------------------------
dnl Check for required tools.
dnl -----------------------------------------------------------------------
-AC_PATH_PROG([GDB], [gdb])
AC_PATH_PROG([KYUA], [kyua])
AM_CONDITIONAL([HAVE_KYUA], [test -n "${KYUA}"])
AC_PATH_PROG([GIT], [git])
@@ -218,11 +169,6 @@ dnl -----------------------------------------------------------------------
dnl Finally, generate output.
dnl -----------------------------------------------------------------------
-AC_OUTPUT([Makefile atf-c/defs.h tools/defs.hpp])
-
-if test ${enable_tools} = yes; then
- AC_MSG_WARN([Building the deprecated ATF tools (atf-run and atf-report);])
- AC_MSG_WARN([please migrate to Kyua as soon as feasible.])
-fi
+AC_OUTPUT([Makefile atf-c/defs.h])
dnl vim: syntax=m4:expandtab:shiftwidth=4:softtabstop=4
diff --git a/m4/module-signals.m4 b/m4/module-signals.m4
deleted file mode 100644
index 6580eb6e1068..000000000000
--- a/m4/module-signals.m4
+++ /dev/null
@@ -1,86 +0,0 @@
-dnl
-dnl Automated Testing Framework (atf)
-dnl
-dnl Copyright (c) 2008 The NetBSD Foundation, Inc.
-dnl All rights reserved.
-dnl
-dnl Redistribution and use in source and binary forms, with or without
-dnl modification, are permitted provided that the following conditions
-dnl are met:
-dnl 1. Redistributions of source code must retain the above copyright
-dnl notice, this list of conditions and the following disclaimer.
-dnl 2. Redistributions in binary form must reproduce the above copyright
-dnl notice, this list of conditions and the following disclaimer in the
-dnl documentation and/or other materials provided with the distribution.
-dnl
-dnl THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-dnl CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-dnl MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-dnl IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-dnl DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-dnl DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-dnl GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-dnl IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-dnl IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-dnl
-
-AC_DEFUN([ATF_MODULE_SIGNALS], [
- AC_CACHE_CHECK(
- [for the last valid signal],
- [kyua_cv_signal_lastno], [
- AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <err.h>
-#include <errno.h>
-#include <signal.h>
-#include <stdio.h>
-#include <stdio.h>
-#include <stdlib.h>], [
- int i;
- FILE *f;
-
- i = 0;
- while (i < 1024) {
- i++;
- if (i != SIGKILL && i != SIGSTOP) {
- struct sigaction sa;
- int ret;
-
- sa.sa_handler = SIG_IGN;
- sigemptyset(&sa.sa_mask);
- sa.sa_flags = 0;
-
- ret = sigaction(i, &sa, NULL);
- if (ret == -1) {
- if (errno == EINVAL) {
- i--;
- break;
- } else
- err(EXIT_FAILURE, "sigaction failed");
- }
- }
- }
- if (i == 100)
- errx(EXIT_FAILURE, "too much signals");
-
- f = fopen("conftest.cnt", "w");
- if (f == NULL)
- err(EXIT_FAILURE, "failed to open file");
-
- fprintf(f, "%d\n", i);
- fclose(f);
-
- return EXIT_SUCCESS;
-])],
- [if test ! -f conftest.cnt; then
- kyua_cv_signal_lastno=15
- else
- kyua_cv_signal_lastno=$(cat conftest.cnt)
- rm -f conftest.cnt
- fi],
- [kyua_cv_signal_lastno=15])
- ])
- AC_DEFINE_UNQUOTED([LAST_SIGNO], [${kyua_cv_signal_lastno}],
- [Define to the last valid signal number])
-])
diff --git a/test-programs/Atffile b/test-programs/Atffile
deleted file mode 100644
index 6a67a8ffbdb8..000000000000
--- a/test-programs/Atffile
+++ /dev/null
@@ -1,9 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: config_test
-tp: expect_test
-tp: meta_data_test
-tp: srcdir_test
-tp: result_test
diff --git a/test-programs/Makefile.am.inc b/test-programs/Makefile.am.inc
index 9e8cdb5e21f3..56993a5fe092 100644
--- a/test-programs/Makefile.am.inc
+++ b/test-programs/Makefile.am.inc
@@ -27,8 +27,7 @@
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-tests_test_programs_DATA = test-programs/Atffile \
- test-programs/Kyuafile
+tests_test_programs_DATA = test-programs/Kyuafile
tests_test_programsdir = $(pkgtestsdir)/test-programs
EXTRA_DIST += $(tests_test_programs_DATA)
diff --git a/tools/Atffile b/tools/Atffile
deleted file mode 100644
index 8896078bcf97..000000000000
--- a/tools/Atffile
+++ /dev/null
@@ -1,25 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: atf-config_test
-tp: atf-report_test
-tp: atf-run_test
-tp: application_test
-tp: atffile_test
-tp: auto_array_test
-tp: config_test
-tp: config_file_test
-tp: env_test
-tp: expand_test
-tp: fs_test
-tp: io_test
-tp: parser_test
-tp: process_test
-tp: reader_test
-tp: requirements_test
-tp: signals_test
-tp: test_program_test
-tp: text_test
-tp: ui_test
-tp: user_test
diff --git a/tools/Kyuafile b/tools/Kyuafile
deleted file mode 100644
index 09c5145ff9eb..000000000000
--- a/tools/Kyuafile
+++ /dev/null
@@ -1,24 +0,0 @@
-syntax("kyuafile", 1)
-
-test_suite("atf")
-
-atf_test_program{name="atf-config_test"}
-atf_test_program{name="atf-report_test"}
-atf_test_program{name="atf-run_test"}
-atf_test_program{name="application_test"}
-atf_test_program{name="atffile_test"}
-atf_test_program{name="auto_array_test"}
-atf_test_program{name="config_test"}
-atf_test_program{name="config_file_test"}
-atf_test_program{name="env_test"}
-atf_test_program{name="expand_test"}
-atf_test_program{name="fs_test"}
-atf_test_program{name="io_test"}
-atf_test_program{name="parser_test"}
-atf_test_program{name="process_test"}
-atf_test_program{name="reader_test"}
-atf_test_program{name="requirements_test"}
-atf_test_program{name="signals_test"}
-atf_test_program{name="test_program_test"}
-atf_test_program{name="text_test"}
-atf_test_program{name="ui_test"}
diff --git a/tools/Makefile.am.inc b/tools/Makefile.am.inc
deleted file mode 100644
index 26668bae6516..000000000000
--- a/tools/Makefile.am.inc
+++ /dev/null
@@ -1,332 +0,0 @@
-#
-# Automated Testing Framework (atf)
-#
-# Copyright (c) 2007 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-TOOLS_CPPFLAGS = -I$(top_srcdir)/tools -I$(top_builddir)/tools
-TOOLS_LDADD = tools/libtools.a
-
-noinst_LIBRARIES = tools/libtools.a
-tools_libtools_a_SOURCES = tools/application.cpp \
- tools/application.hpp \
- tools/atffile.cpp \
- tools/atffile.hpp \
- tools/auto_array.hpp \
- tools/config.cpp \
- tools/config.hpp \
- tools/config_file.cpp \
- tools/config_file.hpp \
- tools/env.cpp \
- tools/env.hpp \
- tools/exceptions.cpp \
- tools/exceptions.hpp \
- tools/expand.cpp \
- tools/expand.hpp \
- tools/fs.cpp \
- tools/fs.hpp \
- tools/io.cpp \
- tools/io.hpp \
- tools/parser.cpp \
- tools/parser.hpp \
- tools/process.cpp \
- tools/process.hpp \
- tools/reader.cpp \
- tools/reader.hpp \
- tools/requirements.cpp \
- tools/requirements.hpp \
- tools/signals.cpp \
- tools/signals.hpp \
- tools/test-program.cpp \
- tools/test-program.hpp \
- tools/test_helpers.hpp \
- tools/text.cpp \
- tools/text.hpp \
- tools/timers.cpp \
- tools/timers.hpp \
- tools/ui.cpp \
- tools/ui.hpp \
- tools/user.cpp \
- tools/user.hpp
-nodist_tools_libtools_a_SOURCES = tools/defs.hpp
-tools_libtools_a_CPPFLAGS = "-DATF_ARCH=\"$(atf_arch)\"" \
- "-DATF_BUILD_CC=\"$(ATF_BUILD_CC)\"" \
- "-DATF_BUILD_CFLAGS=\"$(ATF_BUILD_CFLAGS)\"" \
- "-DATF_BUILD_CPP=\"$(ATF_BUILD_CPP)\"" \
- "-DATF_BUILD_CPPFLAGS=\"$(ATF_BUILD_CPPFLAGS)\"" \
- "-DATF_BUILD_CXX=\"$(ATF_BUILD_CXX)\"" \
- "-DATF_BUILD_CXXFLAGS=\"$(ATF_BUILD_CXXFLAGS)\"" \
- "-DATF_CONFDIR=\"$(atf_confdir)\"" \
- "-DATF_INCLUDEDIR=\"$(includedir)\"" \
- "-DATF_LIBDIR=\"$(libdir)\"" \
- "-DATF_LIBEXECDIR=\"$(libexecdir)\"" \
- "-DATF_MACHINE=\"$(atf_machine)\"" \
- "-DATF_PKGDATADIR=\"$(pkgdatadir)\"" \
- "-DATF_SHELL=\"$(ATF_SHELL)\"" \
- "-DATF_WORKDIR=\"$(ATF_WORKDIR)\"" \
- $(TOOLS_CPPFLAGS)
-
-# XXX For some reason, the nodist line above does not work as expected.
-# Work this problem around.
-DIST_HOOKS += kill-defs-hpp
-kill-defs-hpp:
- rm -f $(distdir)/tools/defs.hpp
-
-
-
-bin_PROGRAMS += tools/atf-config
-tools_atf_config_SOURCES = tools/atf-config.cpp
-tools_atf_config_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_atf_config_LDADD = $(TOOLS_LDADD)
-dist_man_MANS += tools/atf-config.1
-
-bin_PROGRAMS += tools/atf-report
-tools_atf_report_SOURCES = tools/atf-report.cpp
-tools_atf_report_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_atf_report_LDADD = $(TOOLS_LDADD)
-dist_man_MANS += tools/atf-report.1
-
-bin_PROGRAMS += tools/atf-run
-tools_atf_run_CPPFLAGS = $(TOOLS_CPPFLAGS) "-DGDB=\"$(GDB)\""
-tools_atf_run_SOURCES = tools/atf-run.cpp
-tools_atf_run_LDADD = $(TOOLS_LDADD)
-dist_man_MANS += tools/atf-run.1
-
-bin_PROGRAMS += tools/atf-version
-tools_atf_version_SOURCES = tools/atf-version.cpp
-nodist_tools_atf_version_SOURCES = tools/revision.h
-tools_atf_version_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_atf_version_LDADD = $(TOOLS_LDADD)
-dist_man_MANS += tools/atf-version.1
-
-EXTRA_DIST += tools/generate-revision.sh
-
-BUILT_SOURCES += tools/revision.h
-CLEANFILES += tools/revision.h
-tools/revision.h: tools/revision.h.stamp
- @test -d tools || mkdir -p tools
- @cmp -s tools/revision.h tools/revision.h.stamp || \
- cp -p tools/revision.h.stamp tools/revision.h
-
-CLEANFILES += tools/revision.h.stamp
-PHONY_TARGETS += tools/revision.h.stamp
-tools/revision.h.stamp:
- @test -d tools || mkdir -p tools
- @$(top_srcdir)/tools/generate-revision.sh \
- -g "$(GIT)" -r $(top_srcdir) -o tools/revision.h.stamp \
- -v $(PACKAGE_VERSION)
-
-
-
-man_MANS += tools/atf.7
-CLEANFILES += tools/atf.7
-EXTRA_DIST += tools/atf.7.in
-
-dist_man_MANS += tools/atf-formats.5
-
-tools/atf.7: $(srcdir)/tools/atf.7.in
- test -d tools || mkdir -p tools
- sed -e 's#__DOCDIR__#$(docdir)#g' \
- -e 's#__TESTSDIR__#$(testsdir)#g' \
- <$(srcdir)/tools/atf.7.in >tools/atf.7.tmp
- mv tools/atf.7.tmp tools/atf.7
-
-
-
-cssdir = $(atf_cssdir)
-css_DATA = tools/tests-results.css
-EXTRA_DIST += $(css_DATA)
-
-dtddir = $(atf_dtddir)
-dtd_DATA = tools/tests-results.dtd
-EXTRA_DIST += $(dtd_DATA)
-
-egdir = $(atf_egdir)
-eg_DATA = tools/sample/atf-run.hooks
-eg_DATA += tools/sample/common.conf
-EXTRA_DIST += $(eg_DATA)
-
-hooksdir = $(pkgdatadir)
-hooks_DATA = tools/share/atf-run.hooks
-EXTRA_DIST += $(hooks_DATA)
-
-xsldir = $(atf_xsldir)
-xsl_DATA = tools/tests-results.xsl
-EXTRA_DIST += $(xsl_DATA)
-
-
-
-tests_tools_DATA = tools/Atffile tools/Kyuafile
-tests_toolsdir = $(pkgtestsdir)/tools
-EXTRA_DIST += $(tests_tools_DATA)
-
-tests_tools_SCRIPTS = tools/atf-config_test
-CLEANFILES += tools/atf-config_test
-EXTRA_DIST += tools/atf-config_test.sh
-tools/atf-config_test: $(srcdir)/tools/atf-config_test.sh
- @test -d tools || mkdir -p tools
- @src="$(srcdir)/tools/atf-config_test.sh"; \
- dst="tools/atf-config_test"; $(BUILD_SH_TP)
-
-tests_tools_SCRIPTS += tools/atf-report_test
-CLEANFILES += tools/atf-report_test
-EXTRA_DIST += tools/atf-report_test.sh
-tools/atf-report_test: $(srcdir)/tools/atf-report_test.sh
- @test -d tools || mkdir -p tools
- @src="$(srcdir)/tools/atf-report_test.sh"; \
- dst="tools/atf-report_test"; $(BUILD_SH_TP)
-
-tests_tools_SCRIPTS += tools/atf-run_test
-CLEANFILES += tools/atf-run_test
-EXTRA_DIST += tools/atf-run_test.sh
-tools/atf-run_test: $(srcdir)/tools/atf-run_test.sh
- @test -d tools || mkdir -p tools
- @src="$(srcdir)/tools/atf-run_test.sh"; \
- dst="tools/atf-run_test"; $(BUILD_SH_TP)
-
-tests_tools_PROGRAMS = tools/application_test
-tools_application_test_SOURCES = tools/application_test.cpp
-tools_application_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_application_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/atffile_test
-tools_atffile_test_SOURCES = tools/atffile_test.cpp
-tools_atffile_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_atffile_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/auto_array_test
-tools_auto_array_test_SOURCES = tools/auto_array_test.cpp
-tools_auto_array_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_auto_array_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/bad_metadata_helper
-tools_bad_metadata_helper_SOURCES = tools/bad_metadata_helper.c
-tools_bad_metadata_helper_LDADD = libatf-c.la
-
-tests_tools_PROGRAMS += tools/config_test
-tools_config_test_SOURCES = tools/config_test.cpp
-tools_config_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_config_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/config_file_test
-tools_config_file_test_SOURCES = tools/config_file_test.cpp
-tools_config_file_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_config_file_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/env_test
-tools_env_test_SOURCES = tools/env_test.cpp
-tools_env_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_env_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/expand_test
-tools_expand_test_SOURCES = tools/expand_test.cpp
-tools_expand_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_expand_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/expect_helpers
-tools_expect_helpers_SOURCES = tools/expect_helpers.c
-tools_expect_helpers_LDADD = libatf-c.la
-
-tests_tools_PROGRAMS += tools/fail_helper
-tools_fail_helper_SOURCES = tools/fail_helper.cpp
-tools_fail_helper_LDADD = $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/fs_test
-tools_fs_test_SOURCES = tools/fs_test.cpp
-tools_fs_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_fs_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/io_test
-tools_io_test_SOURCES = tools/io_test.cpp
-tools_io_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_io_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/misc_helpers
-tools_misc_helpers_SOURCES = tools/misc_helpers.cpp
-tools_misc_helpers_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_misc_helpers_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/parser_test
-tools_parser_test_SOURCES = tools/parser_test.cpp
-tools_parser_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_parser_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/process_test
-tools_process_test_SOURCES = tools/process_test.cpp
-tools_process_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_process_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/pass_helper
-tools_pass_helper_SOURCES = tools/pass_helper.cpp
-tools_pass_helper_LDADD = $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/process_helpers
-tools_process_helpers_SOURCES = tools/process_helpers.c
-
-tests_tools_PROGRAMS += tools/reader_test
-tools_reader_test_SOURCES = tools/reader_test.cpp
-tools_reader_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_reader_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/requirements_test
-tools_requirements_test_SOURCES = tools/requirements_test.cpp
-tools_requirements_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_requirements_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/several_tcs_helper
-tools_several_tcs_helper_SOURCES = tools/several_tcs_helper.c
-tools_several_tcs_helper_LDADD = libatf-c.la
-
-tests_tools_PROGRAMS += tools/signals_test
-tools_signals_test_SOURCES = tools/signals_test.cpp tools/signals.cpp
-tools_signals_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_signals_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/test_program_test
-tools_test_program_test_SOURCES = tools/test_program_test.cpp
-tools_test_program_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_test_program_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/text_test
-tools_text_test_SOURCES = tools/text_test.cpp tools/text.cpp
-tools_text_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_text_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/ui_test
-tools_ui_test_SOURCES = tools/ui_test.cpp tools/ui.cpp
-tools_ui_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_ui_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/user_test
-tools_user_test_SOURCES = tools/user_test.cpp tools/user.cpp
-tools_user_test_CPPFLAGS = $(TOOLS_CPPFLAGS)
-tools_user_test_LDADD = $(TOOLS_LDADD) $(ATF_CXX_LIBS)
-
-tests_tools_PROGRAMS += tools/zero_tcs_helper
-tools_zero_tcs_helper_SOURCES = tools/zero_tcs_helper.c
-tools_zero_tcs_helper_LDADD = libatf-c.la
-
-# vim: syntax=make:noexpandtab:shiftwidth=8:softtabstop=8
diff --git a/tools/application.cpp b/tools/application.cpp
deleted file mode 100644
index 723e9f185640..000000000000
--- a/tools/application.cpp
+++ /dev/null
@@ -1,317 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if defined(HAVE_CONFIG_H)
-#include "bconfig.h"
-#endif
-
-extern "C" {
-#include <unistd.h>
-}
-
-#include <cassert>
-#include <cstdarg>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <iostream>
-
-#include "application.hpp"
-#include "defs.hpp"
-#include "ui.hpp"
-
-#if !defined(HAVE_VSNPRINTF_IN_STD)
-namespace std {
-using ::vsnprintf;
-}
-#endif // !defined(HAVE_VSNPRINTF_IN_STD)
-
-namespace impl = tools::application;
-#define IMPL_NAME "tools::application"
-
-// ------------------------------------------------------------------------
-// The "usage_error" class.
-// ------------------------------------------------------------------------
-
-impl::usage_error::usage_error(const char *fmt, ...)
- throw() :
- std::runtime_error("usage_error; message unformatted")
-{
- va_list ap;
-
- va_start(ap, fmt);
- std::vsnprintf(m_text, sizeof(m_text), fmt, ap);
- va_end(ap);
-}
-
-impl::usage_error::~usage_error(void)
- throw()
-{
-}
-
-const char*
-impl::usage_error::what(void)
- const throw()
-{
- return m_text;
-}
-
-// ------------------------------------------------------------------------
-// The "application" class.
-// ------------------------------------------------------------------------
-
-impl::option::option(char ch,
- const std::string& a,
- const std::string& desc) :
- m_character(ch),
- m_argument(a),
- m_description(desc)
-{
-}
-
-bool
-impl::option::operator<(const impl::option& o)
- const
-{
- return m_character < o.m_character;
-}
-
-impl::app::app(const std::string& description,
- const std::string& manpage,
- const std::string& global_manpage) :
- m_hflag(false),
- m_argc(-1),
- m_argv(NULL),
- m_prog_name(NULL),
- m_description(description),
- m_manpage(manpage),
- m_global_manpage(global_manpage)
-{
-}
-
-impl::app::~app(void)
-{
-}
-
-bool
-impl::app::inited(void)
-{
- return m_argc != -1;
-}
-
-impl::app::options_set
-impl::app::options(void)
-{
- options_set opts = specific_options();
- opts.insert(option('h', "", "Shows this help message"));
- return opts;
-}
-
-std::string
-impl::app::specific_args(void)
- const
-{
- return "";
-}
-
-impl::app::options_set
-impl::app::specific_options(void)
- const
-{
- return options_set();
-}
-
-void
-impl::app::process_option(int ch ATF_DEFS_ATTRIBUTE_UNUSED,
- const char* arg ATF_DEFS_ATTRIBUTE_UNUSED)
-{
-}
-
-void
-impl::app::process_options(void)
-{
- assert(inited());
-
- std::string optstr;
-#if defined(HAVE_GNU_GETOPT)
- optstr += '+'; // Turn on POSIX behavior.
-#endif
- optstr += ':';
- {
- options_set opts = options();
- for (options_set::const_iterator iter = opts.begin();
- iter != opts.end(); iter++) {
- const option& opt = (*iter);
-
- optstr += opt.m_character;
- if (!opt.m_argument.empty())
- optstr += ':';
- }
- }
-
- int ch;
- const int old_opterr = ::opterr;
- ::opterr = 0;
- while ((ch = ::getopt(m_argc, m_argv, optstr.c_str())) != -1) {
- switch (ch) {
- case 'h':
- m_hflag = true;
- break;
-
- case ':':
- throw usage_error("Option -%c requires an argument.",
- ::optopt);
-
- case '?':
- throw usage_error("Unknown option -%c.", ::optopt);
-
- default:
- process_option(ch, ::optarg);
- }
- }
- m_argc -= ::optind;
- m_argv += ::optind;
-
- // Clear getopt state just in case the test wants to use it.
- opterr = old_opterr;
- optind = 1;
-#if defined(HAVE_OPTRESET)
- optreset = 1;
-#endif
-}
-
-void
-impl::app::usage(std::ostream& os)
-{
- assert(inited());
-
- std::string args = specific_args();
- if (!args.empty())
- args = " " + args;
- os << ui::format_text_with_tag(std::string(m_prog_name) + " [options]" +
- args, "Usage: ", false) << "\n\n"
- << ui::format_text(m_description) << "\n\n";
-
- options_set opts = options();
- assert(!opts.empty());
- os << "Available options:\n";
- size_t coldesc = 0;
- for (options_set::const_iterator iter = opts.begin();
- iter != opts.end(); iter++) {
- const option& opt = (*iter);
-
- if (opt.m_argument.length() + 1 > coldesc)
- coldesc = opt.m_argument.length() + 1;
- }
- for (options_set::const_iterator iter = opts.begin();
- iter != opts.end(); iter++) {
- const option& opt = (*iter);
-
- std::string tag = std::string(" -") + opt.m_character;
- if (opt.m_argument.empty())
- tag += " ";
- else
- tag += " " + opt.m_argument + " ";
- os << ui::format_text_with_tag(opt.m_description, tag, false,
- coldesc + 10) << "\n";
- }
- os << "\n";
-
- std::string gmp;
- if (!m_global_manpage.empty())
- gmp = " and " + m_global_manpage;
- os << ui::format_text("For more details please see " + m_manpage +
- gmp + ".")
- << "\n";
-}
-
-int
-impl::app::run(int argc, char* const* argv)
-{
- assert(argc > 0);
- assert(argv != NULL);
-
- m_argc = argc;
- m_argv = argv;
-
- m_argv0 = m_argv[0];
-
- m_prog_name = std::strrchr(m_argv[0], '/');
- if (m_prog_name == NULL)
- m_prog_name = m_argv[0];
- else
- m_prog_name++;
-
- // Libtool workaround: if running from within the source tree (binaries
- // that are not installed yet), skip the "lt-" prefix added to files in
- // the ".libs" directory to show the real (not temporary) name.
- if (std::strncmp(m_prog_name, "lt-", 3) == 0)
- m_prog_name += 3;
-
- const std::string bug =
- std::string("This is probably a bug in ") + m_prog_name +
- " or one of the libraries it uses. Please report this problem to "
- PACKAGE_BUGREPORT " and provide as many details as possible "
- "describing how you got to this condition.";
-
- int errcode;
- try {
- int oldargc = m_argc;
-
- process_options();
-
- if (m_hflag) {
- if (oldargc != 2)
- throw usage_error("-h must be given alone.");
-
- usage(std::cout);
- errcode = EXIT_SUCCESS;
- } else
- errcode = main();
- } catch (const usage_error& e) {
- std::cerr << ui::format_error(m_prog_name, e.what()) << "\n"
- << ui::format_info(m_prog_name, std::string("Type `") +
- m_prog_name + " -h' for more details.")
- << "\n";
- errcode = EXIT_FAILURE;
- } catch (const std::runtime_error& e) {
- std::cerr << ui::format_error(m_prog_name, std::string(e.what()))
- << "\n";
- errcode = EXIT_FAILURE;
- } catch (const std::exception& e) {
- std::cerr << ui::format_error(m_prog_name, std::string("Caught "
- "unexpected error: ") + e.what() + "\n" + bug) << "\n";
- errcode = EXIT_FAILURE;
- } catch (...) {
- std::cerr << ui::format_error(m_prog_name, std::string("Caught "
- "unknown error\n") + bug) << "\n";
- errcode = EXIT_FAILURE;
- }
- return errcode;
-}
diff --git a/tools/application.hpp b/tools/application.hpp
deleted file mode 100644
index 5a8d57c6e562..000000000000
--- a/tools/application.hpp
+++ /dev/null
@@ -1,113 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_APPLICATION_HPP)
-#define TOOLS_APPLICATION_HPP
-
-#include <ostream>
-#include <set>
-#include <stdexcept>
-#include <string>
-
-namespace tools {
-namespace application {
-
-// ------------------------------------------------------------------------
-// The "usage_error" class.
-// ------------------------------------------------------------------------
-
-class usage_error : public std::runtime_error {
- char m_text[4096];
-
-public:
- usage_error(const char*, ...) throw();
- ~usage_error(void) throw();
-
- const char* what(void) const throw();
-};
-
-// ------------------------------------------------------------------------
-// The "option" class.
-// ------------------------------------------------------------------------
-
-class option {
- char m_character;
- std::string m_argument;
- std::string m_description;
-
- friend class app;
-
-public:
- option(char, const std::string&, const std::string&);
-
- bool operator<(const option&) const;
-};
-
-// ------------------------------------------------------------------------
-// The "app" class.
-// ------------------------------------------------------------------------
-
-class app {
- bool m_hflag;
-
- void process_options(void);
- void usage(std::ostream&);
-
- bool inited(void);
-
-protected:
- typedef std::set< option > options_set;
-
- int m_argc;
- char* const* m_argv;
-
- const char* m_argv0;
- const char* m_prog_name;
- std::string m_description;
- std::string m_manpage, m_global_manpage;
-
- options_set options(void);
-
- // To be redefined.
- virtual std::string specific_args(void) const;
- virtual options_set specific_options(void) const;
- virtual void process_option(int, const char*);
- virtual int main(void) = 0;
-
-public:
- app(const std::string&, const std::string&, const std::string&);
- virtual ~app(void);
-
- int run(int, char* const*);
-};
-
-} // namespace application
-} // namespace tools
-
-#endif // !defined(TOOLS_APPLICATION_HPP)
diff --git a/tools/application_test.cpp b/tools/application_test.cpp
deleted file mode 100644
index a9013cdc6be0..000000000000
--- a/tools/application_test.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2009 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-extern "C" {
-#include <unistd.h>
-}
-
-#include <atf-c++.hpp>
-
-#include "application.hpp"
-
-class getopt_app : public tools::application::app {
-public:
- getopt_app(void) : app("description", "manpage", "other") {}
-
- int main(void)
- {
- // Provide an option that is unknown to the application driver and
- // one that is, together with an argument that would be swallowed by
- // the test program option if it were recognized.
- int argc = 4;
- char arg1[] = "progname";
- char arg2[] = "-Z";
- char arg3[] = "-s";
- char arg4[] = "foo";
- char *const argv[] = { arg1, arg2, arg3, arg4, NULL };
-
- int ch;
- bool zflag;
-
- // Given that this obviously is an application, and that we used the
- // same driver to start, we can test getopt(3) right here without doing
- // any fancy stuff.
- zflag = false;
- while ((ch = ::getopt(argc, argv, ":Z")) != -1) {
- switch (ch) {
- case 'Z':
- zflag = true;
- break;
-
- case '?':
- default:
- if (optopt != 's')
- ATF_FAIL("Unexpected unknown option found");
- }
- }
-
- ATF_REQUIRE(zflag);
- ATF_REQUIRE_EQ(1, argc - optind);
- ATF_REQUIRE_EQ(std::string("foo"), argv[optind]);
-
- return 0;
- }
-};
-
-ATF_TEST_CASE_WITHOUT_HEAD(getopt);
-ATF_TEST_CASE_BODY(getopt)
-{
- int argc = 1;
- char arg1[] = "progname";
- char *const argv[] = { arg1, NULL };
- ATF_REQUIRE_EQ(0, getopt_app().run(argc, argv));
-}
-
-ATF_INIT_TEST_CASES(tcs)
-{
- ATF_ADD_TEST_CASE(tcs, getopt);
-}
diff --git a/tools/atf-config.1 b/tools/atf-config.1
deleted file mode 100644
index deae6f6406cb..000000000000
--- a/tools/atf-config.1
+++ /dev/null
@@ -1,184 +0,0 @@
-.\"
-.\" Automated Testing Framework (atf)
-.\"
-.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd March 14, 2009
-.Dt ATF-CONFIG 1
-.Os
-.Sh NAME
-.Nm atf-config
-.Nd queries static configuration information of ATF
-.Sh SYNOPSIS
-.Nm
-.Op Fl t
-.Op Ar var1 Op Ar .. varN
-.Nm
-.Fl h
-.Sh DESCRIPTION
-.Nm
-is a utility that queries static configuration information of ATF.
-Static configuration refers to all those values for settings that
-were built into the ATF binaries at build time.
-.Pp
-In the first synopsis form,
-.Nm
-will print variable-value pairs for all built-in static variables if
-no variable names are provided as arguments.
-If any is provided, it will only print the variable-value pairs for
-those variables.
-The output of the utility does not use the
-.Sq =
-symbol to separate the variable name from its corresponding value in
-an attempt to avoid sourcing the output in shell scripts or Makefiles.
-If you need to do that, the
-.Fl t
-flag allows you to query the value of individual variables without any
-surrounding text.
-.Pp
-In the second synopsis form,
-.Nm
-will print information about all supported options and their purpose.
-.Pp
-The following options are available:
-.Bl -tag -width flag
-.It Fl h
-Shows a short summary of all available options and their purpose.
-.It Fl t
-Changes the output of the utility to show the variable values, one
-per line, without the variable names.
-.El
-.Ss Static configuration variables
-The following list describes all the variables that are part of ATF's
-static configuration:
-.Bl -tag -width atfXbuildXcppflagsXX
-.It Va atf_arch
-The architecture name detected by ATF.
-This is derived from
-.Va atf_machine
-because it is a subset of it.
-Given that this name might be misdetected, it is provided to the user
-as a configuration variable so that he can fix its value temporarily
-until a real fix is incorporated into mainstream sources.
-.It Va atf_build_cc
-The C compiler used by the ATF checks that provide build-time tests.
-.It Va atf_build_cflags
-The C compiler flags used by the ATF checks that provide build-time tests.
-.It Va atf_build_cpp
-The C/C++ preprocessor used by the ATF checks that provide build-time tests.
-.It Va atf_build_cppflags
-The C/C++ preprocessor flags used by the ATF checks that provide build-time
-tests.
-.It Va atf_build_cxx
-The C++ compiler used by the ATF checks that provide build-time tests.
-.It Va atf_build_cxxflags
-The C++ compiler flags used by the ATF checks that provide build-time tests.
-.It Va atf_confdir
-The path to the directory that contains the system-wide configuration
-files for ATF.
-.It Va atf_includedir
-The path to the directory that contains the ATF header files.
-.It Va atf_libdir
-The path to the directory that contains the ATF libraries.
-.It Va atf_libexecdir
-The path to the directory that contains the auxiliary utilities of ATF,
-used internally by the public tools.
-.It Va atf_machine
-The machine type name detected by ATF.
-This should not be tunable but is provided for symmetry with
-.Va atf_arch .
-.It Va atf_pkgdatadir
-The path to the directory that contains the files that form the ATF's
-shell-scripting library.
-.It Va atf_shell
-The path to the shell interpreter that will be used by ATF.
-.It Va atf_workdir
-The path to the temporary directory that the utilities and the test
-programs will use to store temporary files in.
-.El
-.Sh ENVIRONMENT
-Every variable that is part of the static configuration can be
-overridden at run-time by defining an environment variable.
-This environment variable has the exact same name as the one shown by
-.Nm
-except that the name is all composed of uppercase letters.
-.Pp
-In general, empty values in the environment will be ignored unless
-otherwise noted below.
-.Pp
-The recognized environment variables are:
-.Bl -tag -width ATFXBUILDXCPPFLAGSXX
-.It Ev ATF_ARCH
-Overrides the built-in value of
-.Va atf_arch .
-.It Ev ATF_BUILD_CC
-Overrides the built-in value of
-.Va atf_build_cc .
-.It Ev ATF_BUILD_CFLAGS
-Overrides the built-in value of
-.Va atf_build_cflags .
-Empty values are allowed.
-.It Ev ATF_BUILD_CPP
-Overrides the built-in value of
-.Va atf_build_cpp .
-.It Ev ATF_BUILD_CPPFLAGS
-Overrides the built-in value of
-.Va atf_build_cppflags .
-Empty values are allowed.
-.It Ev ATF_BUILD_CXX
-Overrides the built-in value of
-.Va atf_build_cxx .
-.It Ev ATF_BUILD_CXXFLAGS
-Overrides the built-in value of
-.Va atf_build_cxxflags .
-Empty values are allowed.
-.It Ev ATF_CONFDIR
-Overrides the built-in value of
-.Va atf_confdir .
-.It Ev ATF_INCLUDEDIR
-Overrides the built-in value of
-.Va atf_includedir .
-.It Ev ATF_LIBDIR
-Overrides the built-in value of
-.Va atf_libdir .
-.It Ev ATF_LIBEXECDIR
-Overrides the built-in value of
-.Va atf_libexecdir .
-.It Ev ATF_MACHINE
-Overrides the built-in value of
-.Va atf_machine .
-.It Ev ATF_PKGDATADIR
-Overrides the built-in value of
-.Va atf_pkgdatadir .
-.It Ev ATF_SHELL
-Overrides the built-in value of
-.Va atf_shell .
-.It Ev ATF_WORKDIR
-Overrides the built-in value of
-.Va atf_workdir .
-.El
-.Sh SEE ALSO
-.Xr atf 7
diff --git a/tools/atf-config.cpp b/tools/atf-config.cpp
deleted file mode 100644
index 4d82d55e636b..000000000000
--- a/tools/atf-config.cpp
+++ /dev/null
@@ -1,140 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cstdlib>
-#include <iostream>
-#include <map>
-#include <string>
-
-#include "application.hpp"
-#include "config.hpp"
-#include "defs.hpp"
-
-class atf_config : public tools::application::app {
- static const char* m_description;
-
- bool m_tflag;
-
- void process_option(int, const char*);
- std::string specific_args(void) const;
- options_set specific_options(void) const;
-
- std::string format_var(const std::string&, const std::string&);
-
-public:
- atf_config(void);
-
- int main(void);
-};
-
-const char* atf_config::m_description =
- "atf-config is a tool that queries the value of several "
- "installation-specific configuration values of the atf. "
- "It can be used by external tools to discover where specific "
- "internal atf files are installed.";
-
-atf_config::atf_config(void) :
- app(m_description, "atf-config(1)", "atf(7)"),
- m_tflag(false)
-{
-}
-
-void
-atf_config::process_option(int ch, const char* arg ATF_DEFS_ATTRIBUTE_UNUSED)
-{
- switch (ch) {
- case 't':
- m_tflag = true;
- break;
-
- default:
- std::abort();
- }
-}
-
-std::string
-atf_config::specific_args(void)
- const
-{
- return "[var1 [.. varN]]";
-}
-
-atf_config::options_set
-atf_config::specific_options(void)
- const
-{
- using tools::application::option;
- options_set opts;
- opts.insert(option('t', "", "Terse output: show values only"));
- return opts;
-}
-
-std::string
-atf_config::format_var(const std::string& name, const std::string& val)
-{
- std::string str;
-
- if (m_tflag)
- str = val;
- else
- str = name + " : " + val;
-
- return str;
-}
-
-int
-atf_config::main(void)
-{
- if (m_argc < 1) {
- std::map< std::string, std::string > cv = tools::config::get_all();
-
- for (std::map< std::string, std::string >::const_iterator iter =
- cv.begin(); iter != cv.end(); iter++)
- std::cout << format_var((*iter).first, (*iter).second) << "\n";
- } else {
- for (int i = 0; i < m_argc; i++) {
- if (!tools::config::has(m_argv[i]))
- throw std::runtime_error(std::string("Unknown variable `") +
- m_argv[i] + "'");
- }
-
- for (int i = 0; i < m_argc; i++) {
- std::cout << format_var(m_argv[i], tools::config::get(m_argv[i]))
- << "\n";
- }
- }
-
- return EXIT_SUCCESS;
-}
-
-int
-main(int argc, char* const* argv)
-{
- return atf_config().run(argc, argv);
-}
diff --git a/tools/atf-config_test.sh b/tools/atf-config_test.sh
deleted file mode 100755
index 5d6505a4176e..000000000000
--- a/tools/atf-config_test.sh
+++ /dev/null
@@ -1,180 +0,0 @@
-#
-# Automated Testing Framework (atf)
-#
-# Copyright (c) 2007 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-all_vars="atf_arch \
- atf_build_cc \
- atf_build_cflags \
- atf_build_cpp \
- atf_build_cppflags \
- atf_build_cxx \
- atf_build_cxxflags \
- atf_confdir \
- atf_includedir \
- atf_libdir \
- atf_libexecdir \
- atf_machine \
- atf_pkgdatadir \
- atf_shell \
- atf_workdir"
-all_vars_no=15
-
-atf_test_case list_all
-list_all_head()
-{
- atf_set "descr" "Tests that at atf-config prints all expected" \
- "variables, and not more"
-}
-list_all_body()
-{
- atf_check -s eq:0 -o save:stdout -e empty atf-config
- atf_check -s eq:0 -o empty -e empty \
- test "$(wc -l stdout | awk '{ print $1 }')" = "${all_vars_no}"
- for v in ${all_vars}; do
- atf_check -s eq:0 -o ignore -e empty grep "${v}" stdout
- done
-}
-
-atf_test_case query_one
-query_one_head()
-{
- atf_set "descr" "Tests that querying a single variable works"
-}
-query_one_body()
-{
- for v in ${all_vars}; do
- atf_check -s eq:0 -o save:stdout -o match:"${v}" -e empty \
- atf-config "${v}"
- atf_check -s eq:0 -o empty -e empty \
- test "$(wc -l stdout | awk '{ print $1 }')" = 1
- done
-}
-
-atf_test_case query_one_terse
-query_one_terse_head()
-{
- atf_set "descr" "Tests that querying a single variable in terse mode" \
- "works"
-}
-query_one_terse_body()
-{
- for v in ${all_vars}; do
- atf_check -s eq:0 -o save:stdout -o match:"${v}" -e empty \
- atf-config "${v}"
- atf_check -s eq:0 -o empty -e empty \
- test "$(wc -l stdout | awk '{ print $1 }')" = 1
- atf_check -s eq:0 -o save:stdout -e empty cut -d ' ' -f 3- stdout
- atf_check -s eq:0 -o empty -e empty mv stdout expout
- atf_check -s eq:0 -o file:expout -e empty atf-config -t "${v}"
- done
-}
-
-atf_test_case query_multiple
-query_multiple_head()
-{
- atf_set "descr" "Tests that querying multiple variables works"
-}
-query_multiple_body()
-{
- atf_check -s eq:0 -o save:stdout -o match:'atf_libexecdir' \
- -o match:'atf_shell' -e empty atf-config atf_libexecdir atf_shell
- atf_check -s eq:0 -o empty -e empty \
- test "$(wc -l stdout | awk '{ print $1 }')" = 2
-}
-
-atf_test_case query_unknown
-query_unknown_head()
-{
- atf_set "descr" "Tests that querying an unknown variable delivers" \
- "the correct error"
-}
-query_unknown_body()
-{
- atf_check -s eq:1 -o empty -e match:'Unknown variable.*non_existent' \
- atf-config non_existent
-}
-
-atf_test_case query_mixture
-query_mixture_head()
-{
- atf_set "descr" "Tests that querying a known and an unknown variable" \
- "delivers the correct error"
-}
-query_mixture_body()
-{
- for v in ${all_vars}; do
- atf_check -s eq:1 -o empty -e match:'Unknown variable.*non_existent' \
- atf-config "${v}" non_existent
- atf_check -s eq:1 -o empty -e match:'Unknown variable.*non_existent' \
- atf-config non_existent "${v}"
- done
-}
-
-atf_test_case override_env
-override_env_head()
-{
- atf_set "descr" "Tests that build-time variables can be overriden" \
- "through their corresponding environment variables"
-}
-override_env_body()
-{
- for v in ${all_vars}; do
- V=$(echo ${v} | tr '[a-z]' '[A-Z]')
- atf_check -s eq:0 -o save:stdout -e empty -x "${V}=testval atf-config"
- atf_check -s eq:0 -o empty -e empty mv stdout all
-
- atf_check -s eq:0 -o save:stdout -e empty grep "^${v} : " all
- atf_check -s eq:0 -o empty -e empty mv stdout affected
- atf_check -s eq:0 -o save:stdout -e empty grep -v "^${v} : " all
- atf_check -s eq:0 -o empty -e empty mv stdout unaffected
-
- atf_check -s eq:0 -o empty -e empty \
- test "$(wc -l affected | awk '{ print $1 }')" = 1
- atf_check -s eq:0 -o empty -e empty \
- test "$(wc -l unaffected | awk '{ print $1 }')" = \
- "$((${all_vars_no} -1))"
-
- atf_check -s eq:0 -o ignore -e empty grep "^${v} : testval$" affected
- atf_check -s eq:1 -o empty -e empty grep ' : testval$' unaffected
- done
-}
-
-atf_init_test_cases()
-{
- atf_add_test_case list_all
-
- atf_add_test_case query_one
- atf_add_test_case query_one_terse
- atf_add_test_case query_multiple
- atf_add_test_case query_unknown
- atf_add_test_case query_mixture
-
- atf_add_test_case override_env
-}
-
-# vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4
diff --git a/tools/atf-formats.5 b/tools/atf-formats.5
deleted file mode 100644
index bb919f483a9c..000000000000
--- a/tools/atf-formats.5
+++ /dev/null
@@ -1,231 +0,0 @@
-.\"
-.\" Automated Testing Framework (atf)
-.\"
-.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd December 20, 2011
-.Dt ATF-FORMATS 5
-.Os
-.Sh NAME
-.Nm atf-formats
-.Nd machine-parseable data formats used by ATF
-.Sh DESCRIPTION
-This manual page describes the multiple data formats used in ATF.
-These formats affect configuration files, control files and any data that
-is externalized or internalized by the tools.
-.Pp
-Data files are always organized as follows:
-.Bd -literal -offset indent
-Header1: Value1 \\
- ... | head
-HeaderN: ValueN /
- mandatory blank line
-Free-form text contents \\
- ... | body
- ... /
-.Ed
-.Pp
-A file must always contain a
-.Sq Content-Type
-header and must always separate that header from the body with a blank
-line, even if the body is empty.
-.Pp
-The
-.Sq Content-Type
-is always of the form:
-.Bd -literal -offset indent
-Content-Type: application/X-atf-<subtype>; version="<version>"
-.Ed
-.Pp
-where
-.Sq subtype
-indicates the specific file format and
-.Sq version
-its format version.
-This header must be the first one of the file.
-.Pp
-The main purpose of the
-.Sq Content-Type
-header, aside from determining the format used in the file, is to allow
-future changes to a given format.
-Whenever an incompatible change is made, the version is bumped by one.
-By keeping the header in the first line, future versions may even remove
-the need for such a header -- e.g. if some format was replaced by XML
-files, which have their own mandatory header.
-.Pp
-The rest of this document details the different format types.
-.Ss Format: application/X-atf-atffile, version: 1
-Atffiles are logically divided into three sections:
-.Bl -bullet
-.It
-Test programs: the list of test programs that define the test suite
-described by the Atffile.
-.It
-Meta-data properties: these define some constant values applicable to
-all the test programs defined in the file.
-In some sense they define the properties that describe the test suite.
-.It
-Configuration variables: defaults for configuration variables that
-can be overridden through configuration files or the command line.
-.El
-.Pp
-The grammar for Atffiles is the following:
-.Bd -literal -offset indent
-DATA ::= ( ( CONF | PROP | TP )? COMMENT? NEWLINE )* EOF
-CONF ::= 'conf:' WORD EQUAL STRING
-PROP ::= 'prop:' WORD EQUAL STRING
-TP ::= TPFILE | TPGLOB
-TPFILE ::= 'tp: ' STRING
-TPGLOB ::= 'tp-glob: ' STRING
-STRING ::= WORD | '"' WORD* '"'
-.Ed
-.Pp
-The meaning of the constructions above is:
-.Bl -tag -width TPGLOBXX
-.It CONF
-Definition of a configuration variable.
-.It PROP
-Definition of a meta-data property.
-.It TPFILE
-Addition of a test program into the test suite.
-The string is taken literally as the program's name, and this program
-must exist.
-.It TPGLOB
-Addition of multiple test programs into the test suite.
-The string is taken as a glob pattern, which may have or not have any
-matches in the current directory.
-.El
-.Pp
-An example:
-.Bd -literal -offset indent
-prop: test-suite = utilities
-
-conf: unprivileged-user = nobody
-
-tp: t_cp
-tp: t_mv
-tp: t_df
-tp-glob: t_dir_*
-.Ed
-.Ss Format: application/X-atf-config, version: 1
-Configuration files are very simple: they only contain a list of variable
-name/variable value pairs.
-Their grammar is:
-.Bd -literal -offset indent
-DATA ::= ( VAR? COMMENT? NEWLINE )* EOF
-VAR ::= WORD EQUAL STRING
-COMMENT ::= HASH WORD*
-STRING ::= WORD | '"' WORD* '"'
-.Ed
-.Pp
-An example:
-.Bd -literal -offset indent
-# This is the system-wide configuration file for ATF.
-# The above and this line are comments placed on their own line.
-
-var1 = this is a variable value
-var2 = this is another one # Optional comment at the end.
-.Ed
-.Ss Format: application/X-atf-tps, version: 3
-The
-.Sq application/X-atf-tps
-format multiplexes the standard output, standard error and results output
-streams from multiple test programs into a single data file.
-This format is used by
-.Xr atf-run 1
-to report the execution of several test programs and is later parsed by
-.Xr atf-report 1
-to inform the user of this process.
-It has the following grammar:
-.Bd -literal -offset indent
-DATA ::= INFO* TPS-COUNT TP-STANZA* INFO* EOF
-INFO ::= 'info' COLON STRING COMMA STRING NEWLINE
-TPS-COUNT ::= 'tps-count' COLON POSITIVE-NUMBER NEWLINE
-TP-STANZA ::= TP-START TC-STANZA* TC-END
-TP-START ::= 'tp-start' COLON TIMESTAMP COMMA STRING COMMA
- POSITIVE-NUMBER NEWLINE
-TP-END ::= 'tc-end' COLON TIMESTAMP COMMA STRING (COMMA STRING)?
-TC-STANZA ::= TC-START (TC-SO | TC-SE)* TC-END
-TC-START ::= 'tc-start' COLON TIMESTAMP COMMA STRING NEWLINE
-TC-SO ::= 'tc-so' COLON STRING NEWLINE
-TC-SE ::= 'tc-se' COLON STRING NEWLINE
-TC-END ::= 'tc-end' COLON TIMESTAMP COMMA STRING COMMA TCR NEWLINE
-TCR ::= 'passed' | ('failed' | 'skipped') COMMA STRING
-TIMESTAMP ::= [0-9]+.[0-9]+
-.Ed
-.Pp
-The meaning of the constructions above is:
-.Bl -tag -width TPSXCOUNTXX
-.It TPS-COUNT
-Indicates the number of test programs that will be executed.
-There will be this exact amount of
-.Sq TP-STANZA
-constructions following it.
-.It TP-START
-Indicates the beginning of a test program.
-This includes the program's name and the amount of test cases that
-will follow.
-.It TP-END
-Indicates the completion of a test program.
-This is followed by the program's name and, if the program ended
-prematurely, an error message indicating the reason of its failure.
-A successful execution of a test program (regardless of the status of its
-test cases) must not be accompanied by any reason.
-.It TC-START
-Indicates the beginning of a test case.
-This is accompanied by the test case's name.
-.It TC-SO
-Contains a text line sent to the standard output stream during the
-execution of the test case.
-Leading and trailing space is preserved.
-.It TC-SE
-Contains a text line sent to the standard error stream during the
-execution of the test case.
-Leading and trailing space is preserved.
-.It TC-END
-Indicates the completion of a test case.
-This is accompanied by the test case's name, its result and the reason
-associated with this result (if applicable).
-.El
-.Pp
-An example:
-.Bd -literal -offset indent
-tps-count: 2
-tp-start: calculator, 1324318951.838923, 2
-tc-start: add, 1324318951.839101
-tc-end: add, 1324318951.839500, passed
-tc-start: subtract, 1324318951.840001
-tc-so: 3-2 expected to return 1 but got 0
-tc-end: subtract, 1324318952.000123, failed, Calculated an unexpected value
-tp-end: calculator, 1324318952.002301
-tp-start: files, 1, 1324318952.502348
-tc-start: copy, 1324318952.508291
-tc-se: could not find the cp(1) utility
-tc-end: copy, 1324318953.203145, skipped
-tp-end: files, 1324318953.203800
-.Ed
-.Sh SEE ALSO
-.Xr atf 7
diff --git a/tools/atf-report.1 b/tools/atf-report.1
deleted file mode 100644
index df03af0e072e..000000000000
--- a/tools/atf-report.1
+++ /dev/null
@@ -1,168 +0,0 @@
-.\"
-.\" Automated Testing Framework (atf)
-.\"
-.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd December 16, 2011
-.Dt ATF-REPORT 1
-.Os
-.Sh NAME
-.Nm atf-report
-.Nd transforms the output of atf-run to different formats
-.Sh SYNOPSIS
-.Nm
-.Op Fl o Ar fmt1:path1 Op .. Fl o Ar fmtN:pathN
-.Nm
-.Fl h
-.Sh DESCRIPTION
-.Nm
-reads the output of
-.Nm atf-run
-and transforms it to different formats.
-Some of these are user-friendly and others are machine-parseable, which
-opens a wide range of possibilities to analyze the results of a test
-suite's execution.
-See
-.Sx Output formats
-below for more details on which these formats are.
-.Pp
-In the first synopsis form,
-.Nm
-reads the output of
-.Nm atf-run
-through its standard input and, if no
-.Fl o
-options are given, prints a user-friendly report on its standard
-output using the
-.Sq ticker
-format.
-If
-.Fl o
-options are provided (more than one are allowed), they specify the complete
-list of reports to generate.
-They are all generated simultaneously, and for obvious reasons, two reports
-cannot be written to the same file.
-Note that the default output is suppressed when
-.Fl o
-is provided.
-.Pp
-In the second synopsis form,
-.Nm
-will print information about all supported options and their purpose.
-.Pp
-The following options are available:
-.Bl -tag -width XoXfmtXpathXX
-.It Fl h
-Shows a short summary of all available options and their purpose.
-.It Fl o Ar fmt:path
-Adds a new output format.
-.Ar fmt
-is one of the formats described later on in
-.Sx Output formats .
-.Ar path
-specifies where the report will be written to.
-Depending on the chosen format, this may refer to a single file or to
-a directory.
-For those formats that write to a single file, specifying a
-.Sq -
-as the path will redirect the report to the standard output.
-.El
-.Ss Output formats
-The following output formats are allowed:
-.Bl -tag -width tickerXX
-.It csv
-A machine-parseable Comma-Separated Values (CSV) file.
-This file contains the results for all test cases and test programs.
-Test cases are logged using the following syntax:
-.Bd -literal -offset indent
-tc, duration, test-program, test-case, result[, reason]
-.Ed
-.Pp
-The
-.Sq result
-field for test cases is always one of
-.Sq passed ,
-.Sq skipped
-or
-.Sq failed .
-The last two are always followed by a reason.
-.Pp
-Test programs are logged with the following syntax:
-.Bd -literal -offset indent
-tp, duration, test-program, result[, reason]
-.Ed
-.Pp
-In this case, the
-.Sq result
-can be one of:
-.Sq passed ,
-which denotes test programs that ran without any failure;
-.Sq failed ,
-which refers to test programs in which one or more test cases failed;
-or
-.Sq bogus ,
-which mentions those test programs that failed to execute by some reason.
-The reason field is only available in the last case.
-.Pp
-The time required to execute each test case and test program is
-also provided.
-You should not rely on the order of the entries in the resulting output.
-.It ticker
-A user-friendly report that shows the progress of the test suite's
-execution as it operates.
-This type of report should always be redirected to a virtual terminal,
-not a file, as it may use control sequences that will make the output
-unreadable in regular files.
-.It xml
-A report contained in a single XML file.
-Ideal for later processing with
-.Xr xsltproc 1
-to generate nice HTML reports.
-.El
-.Sh EXAMPLES
-The most simple way of running a test suite is to pipe the output of
-.Nm atf-run
-through
-.Nm
-without any additional flags.
-This will use the default output format, which is suitable to most users:
-.Bd -literal -offset indent
-atf-run | atf-report
-.Ed
-.Pp
-In some situations, it may be interesting to get a machine-parseable file
-aside from the standard report.
-This can be done as follows:
-.Bd -literal -offset indent
-atf-run | atf-report -o csv:testsuite.csv -o ticker:-
-.Ed
-.Pp
-Or if the standard report is not desired, thus achieving completely silent
-operation:
-atf-run | atf-report -o csv:testsuite.csv
-.Sh SEE ALSO
-.Xr atf-run 1 ,
-.Xr atf 7
diff --git a/tools/atf-report.cpp b/tools/atf-report.cpp
deleted file mode 100644
index cb065f993ed9..000000000000
--- a/tools/atf-report.cpp
+++ /dev/null
@@ -1,710 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-extern "C" {
-#include <sys/time.h>
-}
-
-#include <cctype>
-#include <cstdlib>
-#include <fstream>
-#include <iomanip>
-#include <iostream>
-#include <memory>
-#include <sstream>
-#include <utility>
-#include <vector>
-
-#include "application.hpp"
-#include "defs.hpp"
-#include "fs.hpp"
-#include "reader.hpp"
-#include "text.hpp"
-#include "ui.hpp"
-
-typedef std::auto_ptr< std::ostream > ostream_ptr;
-
-static ostream_ptr
-open_outfile(const tools::fs::path& path)
-{
- ostream_ptr osp;
- if (path.str() == "-")
- osp = ostream_ptr(new std::ofstream("/dev/stdout"));
- else
- osp = ostream_ptr(new std::ofstream(path.c_str()));
- if (!(*osp))
- throw std::runtime_error("Could not create file " + path.str());
- return osp;
-}
-
-static std::string
-format_tv(struct timeval* tv)
-{
- std::ostringstream output;
- output << static_cast< long >(tv->tv_sec) << '.'
- << std::setfill('0') << std::setw(6)
- << static_cast< long >(tv->tv_usec);
- return output.str();
-}
-
-// ------------------------------------------------------------------------
-// The "writer" interface.
-// ------------------------------------------------------------------------
-
-//!
-//! \brief A base class that defines an output format.
-//!
-//! The writer base class defines a generic interface to output formats.
-//! This is meant to be subclassed, and each subclass can redefine any
-//! method to format the information as it wishes.
-//!
-//! This class is not tied to a output stream nor a file because, depending
-//! on the output format, we will want to write to a single file or to
-//! multiple ones.
-//!
-class writer {
-public:
- writer(void) {}
- virtual ~writer(void) {}
-
- virtual void write_info(const std::string&, const std::string&) {}
- virtual void write_ntps(size_t) {}
- virtual void write_tp_start(const std::string&, size_t) {}
- virtual void write_tp_end(struct timeval*, const std::string&) {}
- virtual void write_tc_start(const std::string&) {}
- virtual void write_tc_stdout_line(const std::string&) {}
- virtual void write_tc_stderr_line(const std::string&) {}
- virtual void write_tc_end(const std::string&, struct timeval*,
- const std::string&) {}
- virtual void write_eof(void) {}
-};
-
-// ------------------------------------------------------------------------
-// The "csv_writer" class.
-// ------------------------------------------------------------------------
-
-//!
-//! \brief A very simple plain-text output format.
-//!
-//! The csv_writer class implements a very simple plain-text output
-//! format that summarizes the results of each executed test case. The
-//! results are meant to be easily parseable by third-party tools, hence
-//! they are formatted as a CSV file.
-//!
-class csv_writer : public writer {
- ostream_ptr m_os;
- bool m_failed;
-
- std::string m_tpname;
- std::string m_tcname;
-
-public:
- csv_writer(const tools::fs::path& p) :
- m_os(open_outfile(p))
- {
- }
-
- virtual
- void
- write_tp_start(const std::string& name,
- size_t ntcs ATF_DEFS_ATTRIBUTE_UNUSED)
- {
- m_tpname = name;
- m_failed = false;
- }
-
- virtual
- void
- write_tp_end(struct timeval* tv, const std::string& reason)
- {
- const std::string timestamp = format_tv(tv);
-
- if (!reason.empty())
- (*m_os) << "tp, " << timestamp << ", " << m_tpname << ", bogus, "
- << reason << "\n";
- else if (m_failed)
- (*m_os) << "tp, " << timestamp << ", "<< m_tpname << ", failed\n";
- else
- (*m_os) << "tp, " << timestamp << ", "<< m_tpname << ", passed\n";
- }
-
- virtual
- void
- write_tc_start(const std::string& name)
- {
- m_tcname = name;
- }
-
- virtual
- void
- write_tc_end(const std::string& state, struct timeval* tv,
- const std::string& reason)
- {
- std::string str = m_tpname + ", " + m_tcname + ", " + state;
- if (!reason.empty())
- str += ", " + reason;
- (*m_os) << "tc, " << format_tv(tv) << ", " << str << "\n";
-
- if (state == "failed")
- m_failed = true;
- }
-};
-
-// ------------------------------------------------------------------------
-// The "ticker_writer" class.
-// ------------------------------------------------------------------------
-
-//!
-//! \brief A console-friendly output format.
-//!
-//! The ticker_writer class implements a formatter that is user-friendly
-//! in the sense that it shows the execution of test cases in an easy to
-//! read format. It is not meant to be parseable and its format can
-//! freely change across releases.
-//!
-class ticker_writer : public writer {
- ostream_ptr m_os;
-
- size_t m_curtp, m_ntps;
- size_t m_tcs_passed, m_tcs_failed, m_tcs_skipped, m_tcs_expected_failures;
- std::string m_tcname, m_tpname;
- std::vector< std::string > m_failed_tcs;
- std::map< std::string, std::string > m_expected_failures_tcs;
- std::vector< std::string > m_failed_tps;
-
- void
- write_info(const std::string& what, const std::string& val)
- {
- if (what == "tests.root") {
- (*m_os) << "Tests root: " << val << "\n\n";
- }
- }
-
- void
- write_ntps(size_t ntps)
- {
- m_curtp = 1;
- m_tcs_passed = 0;
- m_tcs_failed = 0;
- m_tcs_skipped = 0;
- m_tcs_expected_failures = 0;
- m_ntps = ntps;
- }
-
- void
- write_tp_start(const std::string& tp, size_t ntcs)
- {
- using tools::text::to_string;
- using tools::ui::format_text;
-
- m_tpname = tp;
-
- (*m_os) << format_text(tp + " (" + to_string(m_curtp) +
- "/" + to_string(m_ntps) + "): " +
- to_string(ntcs) + " test cases")
- << "\n";
- (*m_os).flush();
- }
-
- void
- write_tp_end(struct timeval* tv, const std::string& reason)
- {
- using tools::ui::format_text_with_tag;
-
- m_curtp++;
-
- if (!reason.empty()) {
- (*m_os) << format_text_with_tag("BOGUS TEST PROGRAM: Cannot "
- "trust its results because "
- "of `" + reason + "'",
- m_tpname + ": ", false)
- << "\n";
- m_failed_tps.push_back(m_tpname);
- }
- (*m_os) << "[" << format_tv(tv) << "s]\n\n";
- (*m_os).flush();
-
- m_tpname.clear();
- }
-
- void
- write_tc_start(const std::string& tcname)
- {
- m_tcname = tcname;
-
- (*m_os) << " " + tcname + ": ";
- (*m_os).flush();
- }
-
- void
- write_tc_end(const std::string& state, struct timeval* tv,
- const std::string& reason)
- {
- std::string str;
-
- (*m_os) << "[" << format_tv(tv) << "s] ";
-
- if (state == "expected_death" || state == "expected_exit" ||
- state == "expected_failure" || state == "expected_signal" ||
- state == "expected_timeout") {
- str = "Expected failure: " + reason;
- m_tcs_expected_failures++;
- m_expected_failures_tcs[m_tpname + ":" + m_tcname] = reason;
- } else if (state == "failed") {
- str = "Failed: " + reason;
- m_tcs_failed++;
- m_failed_tcs.push_back(m_tpname + ":" + m_tcname);
- } else if (state == "passed") {
- str = "Passed.";
- m_tcs_passed++;
- } else if (state == "skipped") {
- str = "Skipped: " + reason;
- m_tcs_skipped++;
- } else
- std::abort();
-
- // XXX Wrap text. format_text_with_tag does not currently allow
- // to specify the current column, which is needed because we have
- // already printed the tc's name.
- (*m_os) << str << '\n';
-
- m_tcname = "";
- }
-
- static void
- write_expected_failures(const std::map< std::string, std::string >& xfails,
- std::ostream& os)
- {
- using tools::ui::format_text;
- using tools::ui::format_text_with_tag;
-
- os << format_text("Test cases for known bugs:") << "\n";
-
- for (std::map< std::string, std::string >::const_iterator iter =
- xfails.begin(); iter != xfails.end(); iter++) {
- const std::string& name = (*iter).first;
- const std::string& reason = (*iter).second;
-
- os << format_text_with_tag(reason, " " + name + ": ", false)
- << "\n";
- }
- }
-
- void
- write_eof(void)
- {
- using tools::text::join;
- using tools::text::to_string;
- using tools::ui::format_text;
- using tools::ui::format_text_with_tag;
-
- if (!m_failed_tps.empty()) {
- (*m_os) << format_text("Failed (bogus) test programs:")
- << "\n";
- (*m_os) << format_text_with_tag(join(m_failed_tps, ", "),
- " ", false) << "\n\n";
- }
-
- if (!m_expected_failures_tcs.empty()) {
- write_expected_failures(m_expected_failures_tcs, *m_os);
- (*m_os) << "\n";
- }
-
- if (!m_failed_tcs.empty()) {
- (*m_os) << format_text("Failed test cases:") << "\n";
- (*m_os) << format_text_with_tag(join(m_failed_tcs, ", "),
- " ", false) << "\n\n";
- }
-
- (*m_os) << format_text("Summary for " + to_string(m_ntps) +
- " test programs:") << "\n";
- (*m_os) << format_text_with_tag(to_string(m_tcs_passed) +
- " passed test cases.",
- " ", false) << "\n";
- (*m_os) << format_text_with_tag(to_string(m_tcs_failed) +
- " failed test cases.",
- " ", false) << "\n";
- (*m_os) << format_text_with_tag(to_string(m_tcs_expected_failures) +
- " expected failed test cases.",
- " ", false) << "\n";
- (*m_os) << format_text_with_tag(to_string(m_tcs_skipped) +
- " skipped test cases.",
- " ", false) << "\n";
- }
-
-public:
- ticker_writer(const tools::fs::path& p) :
- m_os(open_outfile(p))
- {
- }
-};
-
-// ------------------------------------------------------------------------
-// The "xml" class.
-// ------------------------------------------------------------------------
-
-//!
-//! \brief A single-file XML output format.
-//!
-//! The xml_writer class implements a formatter that prints the results
-//! of test cases in an XML format easily parseable later on by other
-//! utilities.
-//!
-class xml_writer : public writer {
- ostream_ptr m_os;
-
- std::string m_tcname, m_tpname;
-
- static
- std::string
- attrval(const std::string& str)
- {
- return str;
- }
-
- static
- std::string
- elemval(const std::string& str)
- {
- std::ostringstream buf;
- for (std::string::const_iterator iter = str.begin();
- iter != str.end(); iter++) {
- const int character = static_cast< unsigned char >(*iter);
- if (character == '&') {
- buf << "&amp;";
- } else if (character == '<') {
- buf << "&lt;";
- } else if (character == '>') {
- buf << "&gt;";
- } else if (std::isalnum(character) || std::ispunct(character) ||
- std::isspace(character)) {
- buf << static_cast< char >(character);
- } else {
- buf << "&amp;#" << character << ";";
- }
- }
- return buf.str();
- }
-
- void
- write_info(const std::string& what, const std::string& val)
- {
- (*m_os) << "<info class=\"" << what << "\">" << val << "</info>\n";
- }
-
- void
- write_tp_start(const std::string& tp,
- size_t ntcs ATF_DEFS_ATTRIBUTE_UNUSED)
- {
- (*m_os) << "<tp id=\"" << attrval(tp) << "\">\n";
- }
-
- void
- write_tp_end(struct timeval* tv, const std::string& reason)
- {
- if (!reason.empty())
- (*m_os) << "<failed>" << elemval(reason) << "</failed>\n";
- (*m_os) << "<tp-time>" << format_tv(tv) << "</tp-time>";
- (*m_os) << "</tp>\n";
- }
-
- void
- write_tc_start(const std::string& tcname)
- {
- (*m_os) << "<tc id=\"" << attrval(tcname) << "\">\n";
- }
-
- void
- write_tc_stdout_line(const std::string& line)
- {
- (*m_os) << "<so>" << elemval(line) << "</so>\n";
- }
-
- void
- write_tc_stderr_line(const std::string& line)
- {
- (*m_os) << "<se>" << elemval(line) << "</se>\n";
- }
-
- void
- write_tc_end(const std::string& state, struct timeval* tv,
- const std::string& reason)
- {
- std::string str;
-
- if (state == "expected_death" || state == "expected_exit" ||
- state == "expected_failure" || state == "expected_signal" ||
- state == "expected_timeout") {
- (*m_os) << "<" << state << ">" << elemval(reason)
- << "</" << state << ">\n";
- } else if (state == "passed") {
- (*m_os) << "<passed />\n";
- } else if (state == "failed") {
- (*m_os) << "<failed>" << elemval(reason) << "</failed>\n";
- } else if (state == "skipped") {
- (*m_os) << "<skipped>" << elemval(reason) << "</skipped>\n";
- } else
- std::abort();
- (*m_os) << "<tc-time>" << format_tv(tv) << "</tc-time>";
- (*m_os) << "</tc>\n";
- }
-
- void
- write_eof(void)
- {
- (*m_os) << "</tests-results>\n";
- }
-
-public:
- xml_writer(const tools::fs::path& p) :
- m_os(open_outfile(p))
- {
- (*m_os) << "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"
- << "<!DOCTYPE tests-results PUBLIC "
- "\"-//NetBSD//DTD ATF Tests Results 0.1//EN\" "
- "\"http://www.NetBSD.org/XML/atf/tests-results.dtd\">\n\n"
- "<tests-results>\n";
- }
-};
-
-// ------------------------------------------------------------------------
-// The "converter" class.
-// ------------------------------------------------------------------------
-
-//!
-//! \brief A reader that redirects events to multiple writers.
-//!
-//! The converter class implements an atf_tps_reader that, for each event
-//! raised by the parser, redirects it to multiple writers so that they
-//! can reformat it according to their output rules.
-//!
-class converter : public tools::atf_report::atf_tps_reader {
- typedef std::vector< writer* > outs_vector;
- outs_vector m_outs;
-
- void
- got_info(const std::string& what, const std::string& val)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_info(what, val);
- }
-
- void
- got_ntps(size_t ntps)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_ntps(ntps);
- }
-
- void
- got_tp_start(const std::string& tp, size_t ntcs)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_tp_start(tp, ntcs);
- }
-
- void
- got_tp_end(struct timeval* tv, const std::string& reason)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_tp_end(tv, reason);
- }
-
- void
- got_tc_start(const std::string& tcname)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_tc_start(tcname);
- }
-
- void
- got_tc_stdout_line(const std::string& line)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_tc_stdout_line(line);
- }
-
- void
- got_tc_stderr_line(const std::string& line)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_tc_stderr_line(line);
- }
-
- void
- got_tc_end(const std::string& state, struct timeval* tv,
- const std::string& reason)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_tc_end(state, tv, reason);
- }
-
- void
- got_eof(void)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- (*iter)->write_eof();
- }
-
-public:
- converter(std::istream& is) :
- tools::atf_report::atf_tps_reader(is)
- {
- }
-
- ~converter(void)
- {
- for (outs_vector::iterator iter = m_outs.begin();
- iter != m_outs.end(); iter++)
- delete *iter;
- }
-
- void
- add_output(const std::string& fmt, const tools::fs::path& p)
- {
- if (fmt == "csv") {
- m_outs.push_back(new csv_writer(p));
- } else if (fmt == "ticker") {
- m_outs.push_back(new ticker_writer(p));
- } else if (fmt == "xml") {
- m_outs.push_back(new xml_writer(p));
- } else
- throw std::runtime_error("Unknown format `" + fmt + "'");
- }
-};
-
-// ------------------------------------------------------------------------
-// The "atf_report" class.
-// ------------------------------------------------------------------------
-
-class atf_report : public tools::application::app {
- static const char* m_description;
-
- typedef std::pair< std::string, tools::fs::path > fmt_path_pair;
- std::vector< fmt_path_pair > m_oflags;
-
- void process_option(int, const char*);
- options_set specific_options(void) const;
-
-public:
- atf_report(void);
-
- int main(void);
-};
-
-const char* atf_report::m_description =
- "atf-report is a tool that parses the output of atf-run and "
- "generates user-friendly reports in multiple different formats.";
-
-atf_report::atf_report(void) :
- app(m_description, "atf-report(1)", "atf(7)")
-{
-}
-
-void
-atf_report::process_option(int ch, const char* arg)
-{
- switch (ch) {
- case 'o':
- {
- std::string str(arg);
- std::string::size_type pos = str.find(':');
- if (pos == std::string::npos)
- throw std::runtime_error("Syntax error in -o option");
- else {
- std::string fmt = str.substr(0, pos);
- tools::fs::path path = tools::fs::path(str.substr(pos + 1));
- m_oflags.push_back(fmt_path_pair(fmt, path));
- }
- }
- break;
-
- default:
- std::abort();
- }
-}
-
-atf_report::options_set
-atf_report::specific_options(void)
- const
-{
- using tools::application::option;
- options_set opts;
- opts.insert(option('o', "fmt:path", "Adds a new output file; multiple "
- "ones can be specified, and a - "
- "path means stdout"));
- return opts;
-}
-
-int
-atf_report::main(void)
-{
- if (m_argc > 0)
- throw std::runtime_error("No arguments allowed");
-
- if (m_oflags.empty())
- m_oflags.push_back(fmt_path_pair("ticker", tools::fs::path("-")));
-
- // Look for path duplicates.
- std::set< tools::fs::path > paths;
- for (std::vector< fmt_path_pair >::const_iterator iter = m_oflags.begin();
- iter != m_oflags.end(); iter++) {
- tools::fs::path p = (*iter).second;
- if (p == tools::fs::path("/dev/stdout"))
- p = tools::fs::path("-");
- if (paths.find(p) != paths.end())
- throw std::runtime_error("The file `" + p.str() + "' was "
- "specified more than once");
- paths.insert((*iter).second);
- }
-
- // Generate the output files.
- converter cnv(std::cin);
- for (std::vector< fmt_path_pair >::const_iterator iter = m_oflags.begin();
- iter != m_oflags.end(); iter++)
- cnv.add_output((*iter).first, (*iter).second);
- cnv.read();
-
- return EXIT_SUCCESS;
-}
-
-int
-main(int argc, char* const* argv)
-{
- return atf_report().run(argc, argv);
-}
diff --git a/tools/atf-report_test.sh b/tools/atf-report_test.sh
deleted file mode 100755
index 9f0f47fc61cf..000000000000
--- a/tools/atf-report_test.sh
+++ /dev/null
@@ -1,449 +0,0 @@
-#
-# Automated Testing Framework (atf)
-#
-# Copyright (c) 2007 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-create_helpers()
-{
- mkdir dir1
- cp $(atf_get_srcdir)/pass_helper dir1/tp1
- cp $(atf_get_srcdir)/fail_helper dir1/tp2
- cp $(atf_get_srcdir)/pass_helper tp3
- cp $(atf_get_srcdir)/fail_helper tp4
-
- cat >tp5 <<EOF
-#! $(atf-config -t atf_shell)
-echo foo
-EOF
- chmod +x tp5
-
- cat >Atffile <<EOF
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: dir1
-tp: tp3
-tp: tp4
-tp: tp5
-EOF
-
- cat >dir1/Atffile <<EOF
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: tp1
-tp: tp2
-EOF
-}
-
-run_helpers()
-{
- mkdir etc
- cat >etc/atf-run.hooks <<EOF
-#! $(atf-config -t atf_shell)
-
-info_start_hook()
-{
- atf_tps_writer_info "startinfo" "A value"
-}
-
-info_end_hook()
-{
- atf_tps_writer_info "endinfo" "Another value"
-}
-EOF
- echo "Using atf-run to run helpers"
- ATF_CONFDIR=$(pwd)/etc atf-run >tps.out 2>/dev/null
- rm -rf etc
-}
-
-atf_test_case default
-default_head()
-{
- atf_set "descr" "Checks that the default output uses the ticker" \
- "format"
-}
-default_body()
-{
- create_helpers
- run_helpers
-
- # Check that the default output uses the ticker format.
- atf_check -s eq:0 -o match:'test cases' -o match:'Failed test cases' \
- -o match:'Summary for' -e empty -x 'atf-report <tps.out'
-}
-
-# XXX The test for all expect_ values should be intermixed with the other
-# tests. However, to do that, we need to migrate to using C helpers for
-# simplicity in raising signals...
-atf_test_case expect
-expect_body()
-{
- ln -s "$(atf_get_srcdir)/expect_helpers" .
- cat >Atffile <<EOF
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: expect_helpers
-EOF
- run_helpers
-
-# NO_CHECK_STYLE_BEGIN
- cat >expout <<EOF
-tc, #.#, expect_helpers, death_and_exit, expected_death, Exit case
-tc, #.#, expect_helpers, death_and_signal, expected_death, Signal case
-tc, #.#, expect_helpers, death_but_pass, failed, Test case was expected to terminate abruptly but it continued execution
-tc, #.#, expect_helpers, exit_any_and_exit, expected_exit, Call will exit
-tc, #.#, expect_helpers, exit_but_pass, failed, Test case was expected to exit cleanly but it continued execution
-tc, #.#, expect_helpers, exit_code_and_exit, expected_exit, Call will exit
-tc, #.#, expect_helpers, fail_and_fail_check, expected_failure, And fail again: 2 checks failed as expected; see output for more details
-tc, #.#, expect_helpers, fail_and_fail_requirement, expected_failure, Fail reason: The failure
-tc, #.#, expect_helpers, fail_but_pass, failed, Test case was expecting a failure but none were raised
-tc, #.#, expect_helpers, pass_and_pass, passed
-tc, #.#, expect_helpers, pass_but_fail_check, failed, 1 checks failed; see output for more details
-tc, #.#, expect_helpers, pass_but_fail_requirement, failed, Some reason
-tc, #.#, expect_helpers, signal_any_and_signal, expected_signal, Call will signal
-tc, #.#, expect_helpers, signal_but_pass, failed, Test case was expected to receive a termination signal but it continued execution
-tc, #.#, expect_helpers, signal_no_and_signal, expected_signal, Call will signal
-tc, #.#, expect_helpers, timeout_and_hang, expected_timeout, Will overrun
-tc, #.#, expect_helpers, timeout_but_pass, failed, Test case was expected to hang but it continued execution
-tp, #.#, expect_helpers, failed
-EOF
-# NO_CHECK_STYLE_END
- atf_check -s eq:0 -o file:expout -e empty -x \
- "atf-report -o csv:- <tps.out | " \
- "sed -E -e 's/[0-9]+.[0-9]{6}, /#.#, /'"
-
-# NO_CHECK_STYLE_BEGIN
- cat >expout <<EOF
-expect_helpers (1/1): 17 test cases
- death_and_exit: [#.#s] Expected failure: Exit case
- death_and_signal: [#.#s] Expected failure: Signal case
- death_but_pass: [#.#s] Failed: Test case was expected to terminate abruptly but it continued execution
- exit_any_and_exit: [#.#s] Expected failure: Call will exit
- exit_but_pass: [#.#s] Failed: Test case was expected to exit cleanly but it continued execution
- exit_code_and_exit: [#.#s] Expected failure: Call will exit
- fail_and_fail_check: [#.#s] Expected failure: And fail again: 2 checks failed as expected; see output for more details
- fail_and_fail_requirement: [#.#s] Expected failure: Fail reason: The failure
- fail_but_pass: [#.#s] Failed: Test case was expecting a failure but none were raised
- pass_and_pass: [#.#s] Passed.
- pass_but_fail_check: [#.#s] Failed: 1 checks failed; see output for more details
- pass_but_fail_requirement: [#.#s] Failed: Some reason
- signal_any_and_signal: [#.#s] Expected failure: Call will signal
- signal_but_pass: [#.#s] Failed: Test case was expected to receive a termination signal but it continued execution
- signal_no_and_signal: [#.#s] Expected failure: Call will signal
- timeout_and_hang: [#.#s] Expected failure: Will overrun
- timeout_but_pass: [#.#s] Failed: Test case was expected to hang but it continued execution
-[#.#s]
-
-Test cases for known bugs:
- expect_helpers:death_and_exit: Exit case
- expect_helpers:death_and_signal: Signal case
- expect_helpers:exit_any_and_exit: Call will exit
- expect_helpers:exit_code_and_exit: Call will exit
- expect_helpers:fail_and_fail_check: And fail again: 2 checks failed as expected; see output for more details
- expect_helpers:fail_and_fail_requirement: Fail reason: The failure
- expect_helpers:signal_any_and_signal: Call will signal
- expect_helpers:signal_no_and_signal: Call will signal
- expect_helpers:timeout_and_hang: Will overrun
-
-Failed test cases:
- expect_helpers:death_but_pass, expect_helpers:exit_but_pass, expect_helpers:fail_but_pass, expect_helpers:pass_but_fail_check, expect_helpers:pass_but_fail_requirement, expect_helpers:signal_but_pass, expect_helpers:timeout_but_pass
-
-Summary for 1 test programs:
- 1 passed test cases.
- 7 failed test cases.
- 9 expected failed test cases.
- 0 skipped test cases.
-EOF
-# NO_CHECK_STYLE_END
- atf_check -s eq:0 -o file:expout -e empty -x \
- "atf-report -o ticker:- <tps.out | " \
- "sed -E -e 's/[0-9]+.[0-9]{6}/#.#/'"
-
- # Just ensure that this does not crash for now...
- atf_check -s eq:0 -o ignore -e empty -x "atf-report -o xml:- <tps.out"
-}
-
-atf_test_case oflag
-oflag_head()
-{
- atf_set "descr" "Checks that the -o flag works"
-}
-oflag_body()
-{
- create_helpers
- run_helpers
-
- # Get the default output.
- atf_check -s eq:0 -o save:stdout -e empty -x 'atf-report <tps.out'
- mv stdout defout
-
- # Check that changing the stdout output works.
- atf_check -s eq:0 -o save:stdout -e empty -x 'atf-report -o csv:- <tps.out'
- atf_check -s eq:1 -o empty -e empty cmp -s defout stdout
- cp stdout expcsv
-
- # Check that sending the output to a file does not write to stdout.
- atf_check -s eq:0 -o empty -e empty -x 'atf-report -o csv:fmt.out <tps.out'
- atf_check -s eq:0 -o empty -e empty cmp -s expcsv fmt.out
- rm -f fmt.out
-
- # Check that defining two outputs using the same format works.
- atf_check -s eq:0 -o empty -e empty -x \
- 'atf-report -o csv:fmt.out -o csv:fmt2.out <tps.out'
- atf_check -s eq:0 -o empty -e empty cmp -s expcsv fmt.out
- atf_check -s eq:0 -o empty -e empty cmp -s fmt.out fmt2.out
- rm -f fmt.out fmt2.out
-
- # Check that defining two outputs using different formats works.
- atf_check -s eq:0 -o empty -e empty -x \
- 'atf-report -o csv:fmt.out -o ticker:fmt2.out <tps.out'
- atf_check -s eq:0 -o empty -e empty cmp -s expcsv fmt.out
- atf_check -s eq:1 -o empty -e empty cmp -s fmt.out fmt2.out
- atf_check -s eq:0 -o ignore -e empty grep "test cases" fmt2.out
- atf_check -s eq:0 -o ignore -e empty grep "Failed test cases" fmt2.out
- atf_check -s eq:0 -o ignore -e empty grep "Summary for" fmt2.out
- rm -f fmt.out fmt2.out
-
- # Check that defining two outputs over the same file does not work.
- atf_check -s eq:1 -o empty -e match:'more than once' -x \
- 'atf-report -o csv:fmt.out -o ticker:fmt.out <tps.out'
- rm -f fmt.out
-
- # Check that defining two outputs over stdout (but using different
- # paths) does not work.
- atf_check -s eq:1 -o empty -e match:'more than once' -x \
- 'atf-report -o csv:- -o ticker:/dev/stdout <tps.out'
- rm -f fmt.out
-}
-
-atf_test_case output_csv
-output_csv_head()
-{
- atf_set "descr" "Checks the CSV output format"
-}
-output_csv_body()
-{
- create_helpers
- run_helpers
-
-# NO_CHECK_STYLE_BEGIN
- cat >expout <<EOF
-tc, #.#, dir1/tp1, main, passed
-tp, #.#, dir1/tp1, passed
-tc, #.#, dir1/tp2, main, failed, This always fails
-tp, #.#, dir1/tp2, failed
-tc, #.#, tp3, main, passed
-tp, #.#, tp3, passed
-tc, #.#, tp4, main, failed, This always fails
-tp, #.#, tp4, failed
-tp, #.#, tp5, bogus, Invalid format for test case list: 1: Unexpected token \`<<NEWLINE>>'; expected \`:'
-EOF
-# NO_CHECK_STYLE_END
-
- atf_check -s eq:0 -o file:expout -e empty -x \
- "atf-report -o csv:- <tps.out | sed -E -e 's/[0-9]+.[0-9]{6}, /#.#, /'"
-}
-
-atf_test_case output_ticker
-output_ticker_head()
-{
- atf_set "descr" "Checks the ticker output format"
-}
-output_ticker_body()
-{
- create_helpers
- run_helpers
-
-# NO_CHECK_STYLE_BEGIN
- cat >expout <<EOF
-dir1/tp1 (1/5): 1 test cases
- main: [#.#s] Passed.
-[#.#s]
-
-dir1/tp2 (2/5): 1 test cases
- main: [#.#s] Failed: This always fails
-[#.#s]
-
-tp3 (3/5): 1 test cases
- main: [#.#s] Passed.
-[#.#s]
-
-tp4 (4/5): 1 test cases
- main: [#.#s] Failed: This always fails
-[#.#s]
-
-tp5 (5/5): 0 test cases
-tp5: BOGUS TEST PROGRAM: Cannot trust its results because of \`Invalid format for test case list: 1: Unexpected token \`<<NEWLINE>>'; expected \`:''
-[#.#s]
-
-Failed (bogus) test programs:
- tp5
-
-Failed test cases:
- dir1/tp2:main, tp4:main
-
-Summary for 5 test programs:
- 2 passed test cases.
- 2 failed test cases.
- 0 expected failed test cases.
- 0 skipped test cases.
-EOF
-
- atf_check -s eq:0 -o file:expout -e empty -x \
- "atf-report -o ticker:- <tps.out | sed -E -e 's/[0-9]+.[0-9]{6}/#.#/'"
-}
-# NO_CHECK_STYLE_END
-
-atf_test_case output_xml
-output_xml_head()
-{
- atf_set "descr" "Checks the XML output format"
-}
-output_xml_body()
-{
- create_helpers
- run_helpers
-
-# NO_CHECK_STYLE_BEGIN
- cat >expout <<EOF
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE tests-results PUBLIC "-//NetBSD//DTD ATF Tests Results 0.1//EN" "http://www.NetBSD.org/XML/atf/tests-results.dtd">
-
-<tests-results>
-<info class="startinfo">A value</info>
-<tp id="dir1/tp1">
-<tc id="main">
-<passed />
-<tc-time>#.#</tc-time></tc>
-<tp-time>#.#</tp-time></tp>
-<tp id="dir1/tp2">
-<tc id="main">
-<failed>This always fails</failed>
-<tc-time>#.#</tc-time></tc>
-<tp-time>#.#</tp-time></tp>
-<tp id="tp3">
-<tc id="main">
-<passed />
-<tc-time>#.#</tc-time></tc>
-<tp-time>#.#</tp-time></tp>
-<tp id="tp4">
-<tc id="main">
-<failed>This always fails</failed>
-<tc-time>#.#</tc-time></tc>
-<tp-time>#.#</tp-time></tp>
-<tp id="tp5">
-<failed>Invalid format for test case list: 1: Unexpected token \`&lt;&lt;NEWLINE&gt;&gt;'; expected \`:'</failed>
-<tp-time>#.#</tp-time></tp>
-<info class="endinfo">Another value</info>
-</tests-results>
-EOF
-# NO_CHECK_STYLE_END
-
- atf_check -s eq:0 -o file:expout -e empty -x \
- "atf-report -o xml:- < tps.out | sed -E -e 's/>[0-9]+.[0-9]{6}</>#.#</'"
-}
-
-atf_test_case output_xml_space
-output_xml_space_head()
-{
- atf_set "descr" "Checks that the XML output format properly preserves" \
- "leading and trailing whitespace in stdout and stderr" \
- "lines"
-}
-output_xml_space_body()
-{
- export TESTCASE=diff
- cp $(atf_get_srcdir)/misc_helpers .
- cat >Atffile <<EOF
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-tp: misc_helpers
-EOF
-
-# NO_CHECK_STYLE_BEGIN
- cat >expout <<EOF
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE tests-results PUBLIC "-//NetBSD//DTD ATF Tests Results 0.1//EN" "http://www.NetBSD.org/XML/atf/tests-results.dtd">
-
-<tests-results>
-<info class="startinfo">A value</info>
-<tp id="misc_helpers">
-<tc id="diff">
-<so>--- a 2007-11-04 14:00:41.000000000 +0100</so>
-<so>+++ b 2007-11-04 14:00:48.000000000 +0100</so>
-<so>@@ -1,7 +1,7 @@</so>
-<so> This test is meant to simulate a diff.</so>
-<so> Blank space at beginning of context lines must be preserved.</so>
-<so> </so>
-<so>-First original line.</so>
-<so>-Second original line.</so>
-<so>+First modified line.</so>
-<so>+Second modified line.</so>
-<so> </so>
-<so> EOF</so>
-<passed />
-<tc-time>#.#</tc-time></tc>
-<tp-time>#.#</tp-time></tp>
-<info class="endinfo">Another value</info>
-</tests-results>
-EOF
-# NO_CHECK_STYLE_END
-
- run_helpers
- atf_check -s eq:0 -o file:expout -e empty -x \
- "atf-report -o xml:- <tps.out | sed -E -e 's/>[0-9]+.[0-9]{6}</>#.#</'"
-}
-
-atf_test_case too_many_args
-too_many_args_body()
-{
- cat >experr <<EOF
-atf-report: ERROR: No arguments allowed
-EOF
- atf_check -s eq:1 -o empty -e file:experr atf-report foo
-}
-
-atf_init_test_cases()
-{
- atf_add_test_case default
- atf_add_test_case expect
- atf_add_test_case oflag
- atf_add_test_case output_csv
- atf_add_test_case output_ticker
- atf_add_test_case output_xml
- atf_add_test_case output_xml_space
- atf_add_test_case too_many_args
-}
-
-# vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4
diff --git a/tools/atf-run.1 b/tools/atf-run.1
deleted file mode 100644
index d593f4794451..000000000000
--- a/tools/atf-run.1
+++ /dev/null
@@ -1,202 +0,0 @@
-.\"
-.\" Automated Testing Framework (atf)
-.\"
-.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd November 1, 2010
-.Dt ATF-RUN 1
-.Os
-.Sh NAME
-.Nm atf-run
-.Nd executes a collection of test programs
-.Sh SYNOPSIS
-.Nm
-.Op Fl v Ar var1=value1 Op .. Fl v Ar varN=valueN
-.Op Ar test_program1 Op Ar .. test_programN
-.Nm
-.Fl h
-.Sh DESCRIPTION
-.Nm
-executes a collection of test programs or, in other words, a complete
-test suite.
-The results of each test program are collected by the tool, and are then
-multiplexed into a single machine-parseable report; see
-.Xr atf-formats 5
-for more details.
-This report can later be transformed into many different and saner formats
-using the
-.Nm atf-report
-tool.
-.Pp
-The list of test programs to execute is read from an
-.Pa Atffile
-present in the current directory.
-This file describes the test suite stored in the directory it lives in,
-which aside from the list of test programs also includes meta-data and
-configuration variables.
-.Pp
-.Nm
-is also in charge of reading the configuration files that tune the behavior
-of each test program and passing down the necessary variables to them.
-More details on how this is done are given in the
-.Sx Configuration
-section.
-.Pp
-In the first synopsis form,
-.Nm
-parses the
-.Pa Atffile
-in the current directory and runs all the test programs specified in it.
-If any test program names are given as part of the command line, those are
-the ones executed instead of the complete list.
-.Pp
-In the second synopsis form,
-.Nm
-will print information about all supported options and their purpose.
-.Pp
-The following options are available:
-.Bl -tag -width XvXvarXvalueXX
-.It Fl h
-Shows a short summary of all available options and their purpose.
-.It Fl v Ar var=value
-Sets the configuration variable
-.Ar var
-to the given value
-.Ar value .
-.El
-.Ss Configuration
-.Nm
-reads configuration data from multiple places.
-After all of these places have been analyzed, a list of variable-value
-pairs are passed to the test programs to be run.
-.Pp
-The following locations are scanned for configuration data, in order.
-Items down the list override values defined above them:
-.Bl -enum
-.It
-Configuration variables defined in the
-.Pa Atffile .
-.It
-Configuration variables defined in the system-wide configuration file
-shared among all test suites.
-This lives in
-.Pa ${ATF_CONFDIR}/common.conf .
-.It
-Configuration variables defined in the system-wide test-suite-specific
-configuration file.
-This lives in
-.Pa ${ATF_CONFDIR}/<test-suite>.conf .
-.It
-Configuration variables defined in the user-specific configuration file
-shared among all test suites.
-This lives in
-.Pa ${HOME}/.atf/common.conf .
-.It
-Configuration variables defined in the user-specific test-suite-specific
-configuration file.
-This lives in
-.Pa ${HOME}/.atf/<test-suite>.conf .
-.It
-Configuration variables provided as part of the command line through the
-.Fl v
-option.
-.El
-.Pp
-The value of
-.Va ATF_CONFDIR
-in the above list determined as detailed in
-.Xr atf-config 1 .
-.Pp
-The following configuration variables are globally recognized:
-.Bl -tag -width XunprivilegedXuserXX
-.It Va unprivileged-user
-The name of the system user that atf-run will drop root privileges into
-for test cases defining
-.Sq require.user=unprivileged .
-Note that this is
-.Em not provided for security purposes ;
-this feature is only for the convenience of the user.
-.El
-.Ss Hooks
-.Nm Ns 's
-internal behavior can be customized by the system administrator and the
-user by means of hooks.
-These hooks are written in the shell script language for simplicity and
-are stored in the following files, which are read in the order provided
-below:
-.Bl -enum
-.It
-${ATF_CONFDIR}/atf-run.hooks
-.It
-${HOME}/.atf/atf-run.hooks
-.El
-.Pp
-The following hooks are supported:
-.Bl -tag -width infoXstartXhookXX
-.It info_start_hook
-Called before
-.Nm
-executes any test program.
-The purpose of this hook is to write additional
-.Sq info
-stanzas to the top of the output report; these are defined by the
-.Sq application/X-atf-tps format
-described in
-.Xr atf-formats 5 .
-Always use the
-.Sq atf_tps_writer_info
-function to print these.
-.Pp
-This takes no parameters.
-.It info_end_hook
-Similar to
-.Sq info_start_hook
-but executed after all test programs have been run so that additional
-.Sq info
-stanzas can be added to the bottom of the output report.
-.Pp
-This takes no parameters.
-.El
-.Pp
-All hooks are accompanied by a function named
-.Sq default_<hook_name>
-that can be executed by them to invoke the default behavior built into
-.Nm .
-For example, in order to extend the default
-.Sq info_start_hook
-hook, we could write the following function:
-.Bd -literal -offset indent
-info_start_hook()
-{
- default_info_start_hook "${@}"
-
- atf_tps_writer_info "uptime" "$(uptime)"
-}
-.Ed
-.Sh SEE ALSO
-.Xr atf-report 1 ,
-.Xr atf-test-program 1 ,
-.Xr atf 7
diff --git a/tools/atf-run.cpp b/tools/atf-run.cpp
deleted file mode 100644
index 3bc6f63c1dcf..000000000000
--- a/tools/atf-run.cpp
+++ /dev/null
@@ -1,567 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if defined(HAVE_CONFIG_H)
-#include "bconfig.h"
-#endif
-
-extern "C" {
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <unistd.h>
-}
-
-#include <algorithm>
-#include <cassert>
-#include <cerrno>
-#include <cstdlib>
-#include <cstring>
-#include <fstream>
-#include <iostream>
-#include <map>
-#include <string>
-
-#include "application.hpp"
-#include "atffile.hpp"
-#include "config.hpp"
-#include "config_file.hpp"
-#include "env.hpp"
-#include "exceptions.hpp"
-#include "fs.hpp"
-#include "parser.hpp"
-#include "process.hpp"
-#include "requirements.hpp"
-#include "test-program.hpp"
-#include "text.hpp"
-
-namespace {
-
-typedef std::map< std::string, std::string > vars_map;
-
-} // anonymous namespace
-
-#if defined(MAXCOMLEN)
-static const std::string::size_type max_core_name_length = MAXCOMLEN;
-#else
-static const std::string::size_type max_core_name_length = std::string::npos;
-#endif
-
-class atf_run : public tools::application::app {
- static const char* m_description;
-
- vars_map m_cmdline_vars;
-
- static vars_map::value_type parse_var(const std::string&);
-
- void process_option(int, const char*);
- std::string specific_args(void) const;
- options_set specific_options(void) const;
-
- void parse_vflag(const std::string&);
-
- std::vector< std::string > conf_args(void) const;
-
- size_t count_tps(std::vector< std::string >) const;
-
- int run_test(const tools::fs::path&, tools::test_program::atf_tps_writer&,
- const vars_map&);
- int run_test_directory(const tools::fs::path&,
- tools::test_program::atf_tps_writer&);
- int run_test_program(const tools::fs::path&,
- tools::test_program::atf_tps_writer&,
- const vars_map&);
-
- tools::test_program::test_case_result get_test_case_result(
- const std::string&, const tools::process::status&,
- const tools::fs::path&) const;
-
-public:
- atf_run(void);
-
- int main(void);
-};
-
-static void
-sanitize_gdb_env(void)
-{
- try {
- tools::env::unset("TERM");
- } catch (...) {
- // Just swallow exceptions here; they cannot propagate into C, which
- // is where this function is called from, and even if these exceptions
- // appear they are benign.
- }
-}
-
-static void
-dump_stacktrace(const tools::fs::path& tp, const tools::process::status& s,
- const tools::fs::path& workdir,
- tools::test_program::atf_tps_writer& w)
-{
- assert(s.signaled() && s.coredump());
-
- w.stderr_tc("Test program crashed; attempting to get stack trace");
-
- const tools::fs::path corename = workdir /
- (tp.leaf_name().substr(0, max_core_name_length) + ".core");
- if (!tools::fs::exists(corename)) {
- w.stderr_tc("Expected file " + corename.str() + " not found");
- return;
- }
-
- const tools::fs::path gdb(GDB);
- const tools::fs::path gdbout = workdir / "gdb.out";
- const tools::process::argv_array args(gdb.leaf_name().c_str(), "-batch",
- "-q", "-ex", "bt", tp.c_str(),
- corename.c_str(), NULL);
- tools::process::status status = tools::process::exec(
- gdb, args,
- tools::process::stream_redirect_path(gdbout),
- tools::process::stream_redirect_path(tools::fs::path("/dev/null")),
- sanitize_gdb_env);
- if (!status.exited() || status.exitstatus() != EXIT_SUCCESS) {
- w.stderr_tc("Execution of " GDB " failed");
- return;
- }
-
- std::ifstream input(gdbout.c_str());
- if (input) {
- std::string line;
- while (std::getline(input, line).good())
- w.stderr_tc(line);
- input.close();
- }
-
- w.stderr_tc("Stack trace complete");
-}
-
-const char* atf_run::m_description =
- "atf-run is a tool that runs tests programs and collects their "
- "results.";
-
-atf_run::atf_run(void) :
- app(m_description, "atf-run(1)", "atf(7)")
-{
-}
-
-void
-atf_run::process_option(int ch, const char* arg)
-{
- switch (ch) {
- case 'v':
- parse_vflag(arg);
- break;
-
- default:
- std::abort();
- }
-}
-
-std::string
-atf_run::specific_args(void)
- const
-{
- return "[test-program1 .. test-programN]";
-}
-
-atf_run::options_set
-atf_run::specific_options(void)
- const
-{
- using tools::application::option;
- options_set opts;
- opts.insert(option('v', "var=value", "Sets the configuration variable "
- "`var' to `value'; overrides "
- "values in configuration files"));
- return opts;
-}
-
-void
-atf_run::parse_vflag(const std::string& str)
-{
- if (str.empty())
- throw std::runtime_error("-v requires a non-empty argument");
-
- std::vector< std::string > ws = tools::text::split(str, "=");
- if (ws.size() == 1 && str[str.length() - 1] == '=') {
- m_cmdline_vars[ws[0]] = "";
- } else {
- if (ws.size() != 2)
- throw std::runtime_error("-v requires an argument of the form "
- "var=value");
-
- m_cmdline_vars[ws[0]] = ws[1];
- }
-}
-
-int
-atf_run::run_test(const tools::fs::path& tp,
- tools::test_program::atf_tps_writer& w,
- const vars_map& config)
-{
- tools::fs::file_info fi(tp);
-
- int errcode;
- if (fi.get_type() == tools::fs::file_info::dir_type)
- errcode = run_test_directory(tp, w);
- else {
- const vars_map effective_config =
- tools::config_file::merge_configs(config, m_cmdline_vars);
-
- errcode = run_test_program(tp, w, effective_config);
- }
- return errcode;
-}
-
-int
-atf_run::run_test_directory(const tools::fs::path& tp,
- tools::test_program::atf_tps_writer& w)
-{
- tools::atffile af = tools::read_atffile(tp / "Atffile");
-
- vars_map test_suite_vars;
- {
- vars_map::const_iterator iter = af.props().find("test-suite");
- assert(iter != af.props().end());
- test_suite_vars = tools::config_file::read_config_files((*iter).second);
- }
-
- bool ok = true;
- for (std::vector< std::string >::const_iterator iter = af.tps().begin();
- iter != af.tps().end(); iter++) {
- const bool result = run_test(tp / *iter, w,
- tools::config_file::merge_configs(af.conf(), test_suite_vars));
- ok &= (result == EXIT_SUCCESS);
- }
-
- return ok ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-
-tools::test_program::test_case_result
-atf_run::get_test_case_result(const std::string& broken_reason,
- const tools::process::status& s,
- const tools::fs::path& resfile)
- const
-{
- using tools::text::to_string;
- using tools::test_program::read_test_case_result;
- using tools::test_program::test_case_result;
-
- if (!broken_reason.empty()) {
- test_case_result tcr;
-
- try {
- tcr = read_test_case_result(resfile);
-
- if (tcr.state() == "expected_timeout") {
- return tcr;
- } else {
- return test_case_result("failed", -1, broken_reason);
- }
- } catch (const std::runtime_error&) {
- return test_case_result("failed", -1, broken_reason);
- }
- }
-
- if (s.exited()) {
- test_case_result tcr;
-
- try {
- tcr = read_test_case_result(resfile);
- } catch (const std::runtime_error& e) {
- return test_case_result("failed", -1, "Test case exited "
- "normally but failed to create the results file: " +
- std::string(e.what()));
- }
-
- if (tcr.state() == "expected_death") {
- return tcr;
- } else if (tcr.state() == "expected_exit") {
- if (tcr.value() == -1 || s.exitstatus() == tcr.value())
- return tcr;
- else
- return test_case_result("failed", -1, "Test case was "
- "expected to exit with a " + to_string(tcr.value()) +
- " error code but returned " + to_string(s.exitstatus()));
- } else if (tcr.state() == "expected_failure") {
- if (s.exitstatus() == EXIT_SUCCESS)
- return tcr;
- else
- return test_case_result("failed", -1, "Test case returned an "
- "error in expected_failure mode but it should not have");
- } else if (tcr.state() == "expected_signal") {
- return test_case_result("failed", -1, "Test case exited cleanly "
- "but was expected to receive a signal");
- } else if (tcr.state() == "failed") {
- if (s.exitstatus() == EXIT_SUCCESS)
- return test_case_result("failed", -1, "Test case "
- "exited successfully but reported failure");
- else
- return tcr;
- } else if (tcr.state() == "passed") {
- if (s.exitstatus() == EXIT_SUCCESS)
- return tcr;
- else
- return test_case_result("failed", -1, "Test case exited as "
- "passed but reported an error");
- } else if (tcr.state() == "skipped") {
- if (s.exitstatus() == EXIT_SUCCESS)
- return tcr;
- else
- return test_case_result("failed", -1, "Test case exited as "
- "skipped but reported an error");
- }
- } else if (s.signaled()) {
- test_case_result tcr;
-
- try {
- tcr = read_test_case_result(resfile);
- } catch (const std::runtime_error&) {
- return test_case_result("failed", -1, "Test program received "
- "signal " + tools::text::to_string(s.termsig()) +
- (s.coredump() ? " (core dumped)" : ""));
- }
-
- if (tcr.state() == "expected_death") {
- return tcr;
- } else if (tcr.state() == "expected_signal") {
- if (tcr.value() == -1 || s.termsig() == tcr.value())
- return tcr;
- else
- return test_case_result("failed", -1, "Test case was "
- "expected to exit due to a " + to_string(tcr.value()) +
- " signal but got " + to_string(s.termsig()));
- } else {
- return test_case_result("failed", -1, "Test program received "
- "signal " + tools::text::to_string(s.termsig()) +
- (s.coredump() ? " (core dumped)" : "") + " and created a "
- "bogus results file");
- }
- }
- std::abort();
- return test_case_result();
-}
-
-int
-atf_run::run_test_program(const tools::fs::path& tp,
- tools::test_program::atf_tps_writer& w,
- const vars_map& config)
-{
- int errcode = EXIT_SUCCESS;
-
- tools::test_program::metadata md;
- try {
- md = tools::test_program::get_metadata(tp, config);
- } catch (const tools::parser::format_error& e) {
- w.start_tp(tp.str(), 0);
- w.end_tp("Invalid format for test case list: " + std::string(e.what()));
- return EXIT_FAILURE;
- } catch (const tools::parser::parse_errors& e) {
- const std::string reason = tools::text::join(e, "; ");
- w.start_tp(tp.str(), 0);
- w.end_tp("Invalid format for test case list: " + reason);
- return EXIT_FAILURE;
- }
-
- tools::fs::temp_dir resdir(
- tools::fs::path(tools::config::get("atf_workdir")) / "atf-run.XXXXXX");
-
- w.start_tp(tp.str(), md.test_cases.size());
- if (md.test_cases.empty()) {
- w.end_tp("Bogus test program: reported 0 test cases");
- errcode = EXIT_FAILURE;
- } else {
- for (std::map< std::string, vars_map >::const_iterator iter
- = md.test_cases.begin(); iter != md.test_cases.end(); iter++) {
- const std::string& tcname = (*iter).first;
- const vars_map& tcmd = (*iter).second;
-
- w.start_tc(tcname);
-
- try {
- const std::string& reqfail = tools::check_requirements(
- tcmd, config);
- if (!reqfail.empty()) {
- w.end_tc("skipped", reqfail);
- continue;
- }
- } catch (const std::runtime_error& e) {
- w.end_tc("failed", e.what());
- errcode = EXIT_FAILURE;
- continue;
- }
-
- const std::pair< int, int > user = tools::get_required_user(
- tcmd, config);
-
- tools::fs::path resfile = resdir.get_path() / "tcr";
- assert(!tools::fs::exists(resfile));
- try {
- const bool has_cleanup = tools::text::to_bool(
- (*tcmd.find("has.cleanup")).second);
-
- tools::fs::temp_dir workdir(tools::fs::path(tools::config::get(
- "atf_workdir")) / "atf-run.XXXXXX");
- if (user.first != -1 && user.second != -1) {
- if (::chown(workdir.get_path().c_str(), user.first,
- user.second) == -1) {
- throw tools::system_error("chown(" +
- workdir.get_path().str() + ")", "chown(2) failed",
- errno);
- }
- resfile = workdir.get_path() / "tcr";
- }
-
- std::pair< std::string, const tools::process::status > s =
- tools::test_program::run_test_case(
- tp, tcname, "body", tcmd, config,
- resfile, workdir.get_path(), w);
- if (s.second.signaled() && s.second.coredump())
- dump_stacktrace(tp, s.second, workdir.get_path(), w);
- if (has_cleanup)
- (void)tools::test_program::run_test_case(
- tp, tcname, "cleanup", tcmd,
- config, resfile, workdir.get_path(), w);
-
- // TODO: Force deletion of workdir.
-
- tools::test_program::test_case_result tcr =
- get_test_case_result(s.first, s.second, resfile);
-
- w.end_tc(tcr.state(), tcr.reason());
- if (tcr.state() == "failed")
- errcode = EXIT_FAILURE;
- } catch (...) {
- if (tools::fs::exists(resfile))
- tools::fs::remove(resfile);
- throw;
- }
- if (tools::fs::exists(resfile))
- tools::fs::remove(resfile);
-
- }
- w.end_tp("");
- }
-
- return errcode;
-}
-
-size_t
-atf_run::count_tps(std::vector< std::string > tps)
- const
-{
- size_t ntps = 0;
-
- for (std::vector< std::string >::const_iterator iter = tps.begin();
- iter != tps.end(); iter++) {
- tools::fs::path tp(*iter);
- tools::fs::file_info fi(tp);
-
- if (fi.get_type() == tools::fs::file_info::dir_type) {
- tools::atffile af = tools::read_atffile(tp / "Atffile");
- std::vector< std::string > aux = af.tps();
- for (std::vector< std::string >::iterator i2 = aux.begin();
- i2 != aux.end(); i2++)
- *i2 = (tp / *i2).str();
- ntps += count_tps(aux);
- } else
- ntps++;
- }
-
- return ntps;
-}
-
-static
-void
-call_hook(const std::string& tool, const std::string& hook)
-{
- const tools::fs::path sh(tools::config::get("atf_shell"));
- const tools::fs::path hooks =
- tools::fs::path(tools::config::get("atf_pkgdatadir")) / (tool + ".hooks");
-
- const tools::process::status s =
- tools::process::exec(sh,
- tools::process::argv_array(sh.c_str(), hooks.c_str(),
- hook.c_str(), NULL),
- tools::process::stream_inherit(),
- tools::process::stream_inherit());
-
-
- if (!s.exited() || s.exitstatus() != EXIT_SUCCESS)
- throw std::runtime_error("Failed to run the '" + hook + "' hook "
- "for '" + tool + "'");
-}
-
-int
-atf_run::main(void)
-{
- tools::atffile af = tools::read_atffile(tools::fs::path("Atffile"));
-
- std::vector< std::string > tps;
- tps = af.tps();
- if (m_argc >= 1) {
- // TODO: Ensure that the given test names are listed in the
- // Atffile. Take into account that the file can be using globs.
- tps.clear();
- for (int i = 0; i < m_argc; i++)
- tps.push_back(m_argv[i]);
- }
-
- // Read configuration data for this test suite.
- vars_map test_suite_vars;
- {
- vars_map::const_iterator iter = af.props().find("test-suite");
- assert(iter != af.props().end());
- test_suite_vars = tools::config_file::read_config_files((*iter).second);
- }
-
- tools::test_program::atf_tps_writer w(std::cout);
- call_hook("atf-run", "info_start_hook");
- w.ntps(count_tps(tps));
-
- bool ok = true;
- for (std::vector< std::string >::const_iterator iter = tps.begin();
- iter != tps.end(); iter++) {
- const bool result = run_test(tools::fs::path(*iter), w,
- tools::config_file::merge_configs(af.conf(), test_suite_vars));
- ok &= (result == EXIT_SUCCESS);
- }
-
- call_hook("atf-run", "info_end_hook");
-
- return ok ? EXIT_SUCCESS : EXIT_FAILURE;
-}
-
-int
-main(int argc, char* const* argv)
-{
- return atf_run().run(argc, argv);
-}
diff --git a/tools/atf-run_test.sh b/tools/atf-run_test.sh
deleted file mode 100755
index afd013efbf06..000000000000
--- a/tools/atf-run_test.sh
+++ /dev/null
@@ -1,1134 +0,0 @@
-#
-# Automated Testing Framework (atf)
-#
-# Copyright (c) 2007 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-create_atffile()
-{
- ATF_CONFDIR="$(pwd)"; export ATF_CONFDIR
-
- cat >Atffile <<EOF
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = atf
-
-EOF
- for f in "${@}"; do
- echo "tp: ${f}" >>Atffile
- done
-}
-
-create_helper()
-{
- cp $(atf_get_srcdir)/misc_helpers helper
- create_atffile helper
- TESTCASE=${1}; export TESTCASE
-}
-
-create_helper_stdin()
-{
- # TODO: This really, really, really must use real test programs.
- cat >${1} <<EOF
-#! $(atf-config -t atf_shell)
-while [ \${#} -gt 0 ]; do
- case \${1} in
- -l)
- echo 'Content-Type: application/X-atf-tp; version="1"'
- echo
-EOF
- cnt=1
- while [ ${cnt} -le ${2} ]; do
- echo "echo 'ident: tc${cnt}'" >>${1}
- [ ${cnt} -lt ${2} ] && echo "echo" >>${1}
- cnt=$((${cnt} + 1))
- done
-cat >>${1} <<EOF
- exit 0
- ;;
- -r*)
- resfile=\$(echo \${1} | cut -d r -f 2-)
- ;;
- esac
- testcase=\$(echo \${1} | cut -d : -f 1)
- shift
-done
-EOF
- cat >>${1}
-}
-
-create_mount_helper()
-{
- cat >${1} <<EOF
-#! /usr/bin/env atf-sh
-
-do_mount() {
- platform=\$(uname)
- case \${platform} in
- Linux|NetBSD)
- mount -t tmpfs tmpfs \${1} || atf_fail "Mount failed"
- ;;
- FreeBSD)
- mdmfs -s 16m md \${1} || atf_fail "Mount failed"
- ;;
- SunOS)
- mount -F tmpfs tmpfs \$(pwd)/\${1} || atf_fail "Mount failed"
- ;;
- *)
- atf_fail "create_mount_helper called for an unsupported platform."
- ;;
- esac
-}
-
-atf_test_case main
-main_head() {
- atf_set "require.user" "root"
-}
-main_body() {
-EOF
- cat >>${1}
- cat >>${1} <<EOF
-}
-
-atf_init_test_cases()
-{
- atf_add_test_case main
-}
-EOF
-}
-
-atf_test_case no_warnings
-no_warnings_head()
-{
- atf_set "descr" "Tests that atf-run suppresses warnings about not running" \
- "within atf-run"
-}
-no_warnings_body()
-{
- create_helper pass
- atf_check -s eq:0 -o ignore -e not-match:'WARNING.*atf-run' atf-run helper
-}
-
-atf_test_case config
-config_head()
-{
- atf_set "descr" "Tests that the config files are read in the correct" \
- "order"
-}
-config_body()
-{
- create_helper config
-
- mkdir etc
- mkdir .atf
-
- echo "First: read system-wide common.conf."
- cat >etc/common.conf <<EOF
-Content-Type: application/X-atf-config; version="1"
-
-1st = "sw common"
-2nd = "sw common"
-3rd = "sw common"
-4th = "sw common"
-EOF
- atf_check -s eq:0 \
- -o match:'1st: sw common' \
- -o match:'2nd: sw common' \
- -o match:'3rd: sw common' \
- -o match:'4th: sw common' \
- -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc HOME=$(pwd) atf-run helper"
-
- echo "Second: read system-wide <test-suite>.conf."
- cat >etc/atf.conf <<EOF
-Content-Type: application/X-atf-config; version="1"
-
-1st = "sw atf"
-EOF
- atf_check -s eq:0 \
- -o match:'1st: sw atf' \
- -o match:'2nd: sw common' \
- -o match:'3rd: sw common' \
- -o match:'4th: sw common' \
- -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc HOME=$(pwd) atf-run helper"
-
- echo "Third: read user-specific common.conf."
- cat >.atf/common.conf <<EOF
-Content-Type: application/X-atf-config; version="1"
-
-2nd = "us common"
-EOF
- atf_check -s eq:0 \
- -o match:'1st: sw atf' \
- -o match:'2nd: us common' \
- -o match:'3rd: sw common' \
- -o match:'4th: sw common' \
- -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc HOME=$(pwd) atf-run helper"
-
- echo "Fourth: read user-specific <test-suite>.conf."
- cat >.atf/atf.conf <<EOF
-Content-Type: application/X-atf-config; version="1"
-
-3rd = "us atf"
-EOF
- atf_check -s eq:0 \
- -o match:'1st: sw atf' \
- -o match:'2nd: us common' \
- -o match:'3rd: us atf' \
- -o match:'4th: sw common' \
- -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc HOME=$(pwd) atf-run helper"
-}
-
-atf_test_case vflag
-vflag_head()
-{
- atf_set "descr" "Tests that the -v flag works and that it properly" \
- "overrides the values in configuration files"
-}
-vflag_body()
-{
- create_helper testvar
-
- echo "Checking that 'testvar' is not defined."
- atf_check -s eq:1 -o ignore -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run helper"
-
- echo "Checking that defining 'testvar' trough '-v' works."
- atf_check -s eq:0 -o match:'testvar: a value' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run -v testvar='a value' helper"
-
- echo "Checking that defining 'testvar' trough the configuration" \
- "file works."
- mkdir etc
- cat >etc/common.conf <<EOF
-Content-Type: application/X-atf-config; version="1"
-
-testvar = "value in conf file"
-EOF
- atf_check -s eq:0 -o match:'testvar: value in conf file' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run helper"
-
- echo "Checking that defining 'testvar' trough -v overrides the" \
- "configuration file."
- atf_check -s eq:0 -o match:'testvar: a value' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run -v testvar='a value' helper"
-}
-
-atf_test_case atffile
-atffile_head()
-{
- atf_set "descr" "Tests that the variables defined by the Atffile" \
- "are recognized and that they take the lowest priority"
-}
-atffile_body()
-{
- create_helper testvar
-
- echo "Checking that 'testvar' is not defined."
- atf_check -s eq:1 -o ignore -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run helper"
-
- echo "Checking that defining 'testvar' trough the Atffile works."
- echo 'conf: testvar = "a value"' >>Atffile
- atf_check -s eq:0 -o match:'testvar: a value' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run helper"
-
- echo "Checking that defining 'testvar' trough the configuration" \
- "file overrides the one in the Atffile."
- mkdir etc
- cat >etc/common.conf <<EOF
-Content-Type: application/X-atf-config; version="1"
-
-testvar = "value in conf file"
-EOF
- atf_check -s eq:0 -o match:'testvar: value in conf file' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run helper"
- rm -rf etc
-
- echo "Checking that defining 'testvar' trough -v overrides the" \
- "one in the Atffile."
- atf_check -s eq:0 -o match:'testvar: new value' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run -v testvar='new value' helper"
-}
-
-atf_test_case atffile_recursive
-atffile_recursive_head()
-{
- atf_set "descr" "Tests that variables defined by an Atffile are not" \
- "inherited by other Atffiles."
-}
-atffile_recursive_body()
-{
- create_helper testvar
-
- mkdir dir
- mv Atffile helper dir
-
- echo "Checking that 'testvar' is not inherited."
- create_atffile dir
- echo 'conf: testvar = "a value"' >> Atffile
- atf_check -s eq:1 -o ignore -e ignore -x "ATF_CONFDIR=$(pwd)/etc atf-run"
-
- echo "Checking that defining 'testvar' in the correct Atffile works."
- echo 'conf: testvar = "a value"' >>dir/Atffile
- atf_check -s eq:0 -o match:'testvar: a value' -e ignore -x \
- "ATF_CONFDIR=$(pwd)/etc atf-run"
-}
-
-atf_test_case fds
-fds_head()
-{
- atf_set "descr" "Tests that all streams are properly captured"
-}
-fds_body()
-{
- create_helper fds
-
- atf_check -s eq:0 \
- -o match:'^tc-so:msg1 to stdout$' \
- -o match:'^tc-so:msg2 to stdout$' \
- -o match:'^tc-se:msg1 to stderr$' \
- -o match:'^tc-se:msg2 to stderr$' \
- -e empty atf-run
-}
-
-atf_test_case mux_streams
-mux_streams_head()
-{
- atf_set "descr" "Tests for a race condition in stream multiplexing"
-}
-mux_streams_body()
-{
- create_helper mux_streams
-
- for i in 1 2 3 4 5; do
- echo "Attempt ${i}"
- atf_check -s eq:0 -o match:'stdout 9999' -o match:'stderr 9999' atf-run
- done
-}
-
-atf_test_case expect
-expect_head()
-{
- atf_set "descr" "Tests the processing of test case results and the" \
- "expect features"
-}
-expect_body()
-{
- ln -s "$(atf_get_srcdir)/expect_helpers" .
- create_atffile expect_helpers
-
- atf_check -s eq:1 \
- -o match:'death_and_exit, expected_death' \
- -o match:'death_and_signal, expected_death' \
- -o match:'death_but_pass, failed' \
- -o match:'exit_any_and_exit, expected_exit' \
- -o match:'exit_but_pass, failed' \
- -o match:'exit_code_and_exit, expected_exit' \
- -o match:'fail_and_fail_check, expected_failure' \
- -o match:'fail_and_fail_requirement, expected_failure' \
- -o match:'fail_but_pass, failed' \
- -o match:'pass_and_pass, passed' \
- -o match:'pass_but_fail_check, failed' \
- -o match:'pass_but_fail_requirement, failed' \
- -o match:'signal_any_and_signal, expected_signal' \
- -o match:'signal_but_pass, failed' \
- -o match:'signal_no_and_signal, expected_signal' \
- -o match:'timeout_and_hang, expected_timeout' \
- -o match:'timeout_but_pass, failed' \
- -e empty atf-run
-}
-
-atf_test_case missing_results
-missing_results_head()
-{
- atf_set "descr" "Ensures that atf-run correctly handles test cases that " \
- "do not create the results file"
-}
-missing_results_body()
-{
- create_helper_stdin helper 1 <<EOF
-test -f \${resfile} && echo "resfile found"
-exit 0
-EOF
- chmod +x helper
-
- create_atffile helper
-
- re='^tc-end: [0-9][0-9]*\.[0-9]*, tc1,'
- atf_check -s eq:1 \
- -o match:"${re} failed,.*failed to create" \
- -o not-match:'resfile found' \
- -e empty atf-run
-}
-
-atf_test_case broken_results
-broken_results_head()
-{
- atf_set "descr" "Ensures that atf-run reports test programs that" \
- "provide a bogus results output as broken programs"
-}
-broken_results_body()
-{
- # We produce two errors from the header to ensure that the parse
- # errors are printed on a single line on the output file. Printing
- # them on separate lines would be incorrect.
- create_helper_stdin helper 1 <<EOF
-echo 'line 1' >\${resfile}
-echo 'line 2' >>\${resfile}
-exit 0
-EOF
- chmod +x helper
-
- create_atffile helper
-
- re='^tc-end: [0-9][0-9]*\.[0-9]*, tc1,'
- atf_check -s eq:1 -o match:"${re} .*line 1.*line 2" -e empty atf-run
-}
-
-atf_test_case broken_tp_list
-broken_tp_list_head()
-{
- atf_set "descr" "Ensures that atf-run reports test programs that" \
- "provide a bogus test case list"
-}
-broken_tp_list_body()
-{
- cat >helper <<EOF
-#! $(atf-config -t atf_shell)
-while [ \${#} -gt 0 ]; do
- if [ \${1} = -l ]; then
- echo 'Content-Type: application/X-atf-tp; version="1"'
- echo
- echo 'foo: bar'
- exit 0
- else
- shift
- fi
-done
-exit 0
-EOF
- chmod +x helper
-
- create_atffile helper
-
- re='^tp-end: [0-9][0-9]*\.[0-9]*, helper,'
- re="${re} Invalid format for test case list:.*First property.*ident"
- atf_check -s eq:1 -o match:"${re}" -e empty atf-run
-}
-
-atf_test_case zero_tcs
-zero_tcs_head()
-{
- atf_set "descr" "Ensures that atf-run reports test programs without" \
- "test cases as errors"
-}
-zero_tcs_body()
-{
- create_helper_stdin helper 0 <<EOF
-echo 'Content-Type: application/X-atf-tp; version="1"'
-echo
-exit 1
-EOF
- chmod +x helper
-
- create_atffile helper
-
- re='^tp-end: [0-9][0-9]*\.[0-9]*, helper,'
- atf_check -s eq:1 \
- -o match:"${re} .*Invalid format for test case list" \
- -e empty atf-run
-}
-
-atf_test_case exit_codes
-exit_codes_head()
-{
- atf_set "descr" "Ensures that atf-run reports bogus exit codes for" \
- "programs correctly"
-}
-exit_codes_body()
-{
- create_helper_stdin helper 1 <<EOF
-echo "failed: Yes, it failed" >\${resfile}
-exit 0
-EOF
- chmod +x helper
-
- create_atffile helper
-
- re='^tc-end: [0-9][0-9]*\.[0-9]*, tc1,'
- atf_check -s eq:1 \
- -o match:"${re} .*exited successfully.*reported failure" \
- -e empty atf-run
-}
-
-atf_test_case signaled
-signaled_head()
-{
- atf_set "descr" "Ensures that atf-run reports test program's crashes" \
- "correctly regardless of their actual results"
-}
-signaled_body()
-{
- create_helper_stdin helper 2 <<EOF
-echo "passed" >\${resfile}
-case \${testcase} in
- tc1) ;;
- tc2) echo "Killing myself!" ; kill -9 \$\$ ;;
-esac
-EOF
- chmod +x helper
-
- create_atffile helper
-
- re='^tc-end: [0-9][0-9]*\.[0-9]*, tc2,'
- atf_check -s eq:1 -o match:"${re} .*received signal 9" \
- -e empty atf-run
-}
-
-atf_test_case hooks
-hooks_head()
-{
- atf_set "descr" "Checks that the default hooks work and that they" \
- "can be overriden by the user"
-}
-hooks_body()
-{
- cp $(atf_get_srcdir)/pass_helper helper
- create_atffile helper
-
- mkdir atf
- mkdir .atf
-
- echo "Checking default hooks"
- atf_check -s eq:0 -o match:'^info: time.start, ' \
- -o match:'^info: time.end, ' -e empty -x \
- "ATF_CONFDIR=$(pwd)/atf atf-run"
-
- echo "Checking the system-wide info_start hook"
- cat >atf/atf-run.hooks <<EOF
-info_start_hook()
-{
- atf_tps_writer_info "test" "sw value"
-}
-EOF
- atf_check -s eq:0 \
- -o match:'^info: test, sw value' \
- -o not-match:'^info: time.start, ' \
- -o match:'^info: time.end, ' \
- -e empty -x \
- "ATF_CONFDIR=$(pwd)/atf atf-run"
-
- echo "Checking the user-specific info_start hook"
- cat >.atf/atf-run.hooks <<EOF
-info_start_hook()
-{
- atf_tps_writer_info "test" "user value"
-}
-EOF
- atf_check -s eq:0 \
- -o match:'^info: test, user value' \
- -o not-match:'^info: time.start, ' \
- -o match:'^info: time.end, ' \
- -e empty -x \
- "ATF_CONFDIR=$(pwd)/atf atf-run"
-
- rm atf/atf-run.hooks
- rm .atf/atf-run.hooks
-
- echo "Checking the system-wide info_end hook"
- cat >atf/atf-run.hooks <<EOF
-info_end_hook()
-{
- atf_tps_writer_info "test" "sw value"
-}
-EOF
- atf_check -s eq:0 \
- -o match:'^info: time.start, ' \
- -o not-match:'^info: time.end, ' \
- -o match:'^info: test, sw value' \
- -e empty -x \
- "ATF_CONFDIR=$(pwd)/atf atf-run"
-
- echo "Checking the user-specific info_end hook"
- cat >.atf/atf-run.hooks <<EOF
-info_end_hook()
-{
- atf_tps_writer_info "test" "user value"
-}
-EOF
- atf_check -s eq:0 \
- -o match:'^info: time.start, ' \
- -o not-match:'^info: time.end, ' \
- -o match:'^info: test, user value' \
- -e empty -x \
- "ATF_CONFDIR=$(pwd)/atf atf-run"
-}
-
-atf_test_case isolation_env
-isolation_env_head()
-{
- atf_set "descr" "Tests that atf-run sets a set of environment variables" \
- "to known sane values"
-}
-isolation_env_body()
-{
- undef_vars="LANG LC_ALL LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY \
- LC_NUMERIC LC_TIME"
- def_vars="HOME TZ"
-
- mangleenv="env"
- for v in ${undef_vars} ${def_vars}; do
- mangleenv="${mangleenv} ${v}=bogus-value"
- done
-
- create_helper env_list
- create_atffile helper
-
- # We must ignore stderr in this call (instead of specifying -e empty)
- # because, when atf-run invokes the shell to run the hooks, we may get
- # error messages about an invalid locale. This happens, at least, when
- # the shell is bash 4.x.
- atf_check -s eq:0 -o save:stdout -e ignore ${mangleenv} atf-run helper
-
- for v in ${undef_vars}; do
- atf_check -s eq:1 -o empty -e empty grep "^tc-so:${v}=" stdout
- done
-
- for v in ${def_vars}; do
- atf_check -s eq:0 -o ignore -e empty grep "^tc-so:${v}=" stdout
- done
-
- atf_check -s eq:0 -o ignore -e empty grep "^tc-so:TZ=UTC" stdout
-}
-
-atf_test_case isolation_home
-isolation_home_head()
-{
- atf_set "descr" "Tests that atf-run sets HOME to a sane and valid value"
-}
-isolation_home_body()
-{
- create_helper env_home
- create_atffile helper
- atf_check -s eq:0 -o ignore -e ignore env HOME=foo atf-run helper
-}
-
-atf_test_case isolation_stdin
-isolation_stdin_head()
-{
- atf_set "descr" "Tests that atf-run nullifies the stdin of test cases"
-}
-isolation_stdin_body()
-{
- create_helper read_stdin
- create_atffile helper
- atf_check -s eq:0 -o ignore -e ignore -x 'echo hello world | atf-run helper'
-}
-
-atf_test_case isolation_umask
-isolation_umask_head()
-{
- atf_set "descr" "Tests that atf-run sets the umask to a known value"
-}
-isolation_umask_body()
-{
- create_helper umask
- create_atffile helper
-
- atf_check -s eq:0 -o match:'umask: 0022' -e ignore -x \
- "umask 0000 && atf-run helper"
-}
-
-atf_test_case cleanup_pass
-cleanup_pass_head()
-{
- atf_set "descr" "Tests that atf-run calls the cleanup routine of the test" \
- "case when the test case result is passed"
-}
-cleanup_pass_body()
-{
- create_helper cleanup_states
- create_atffile helper
-
- atf_check -s eq:0 -o match:'cleanup_states, passed' -e ignore atf-run \
- -v state=pass -v statedir=$(pwd) helper
- test -f to-stay || atf_fail "Test case body did not run correctly"
- if [ -f to-delete ]; then
- atf_fail "Test case cleanup did not run correctly"
- fi
-}
-
-atf_test_case cleanup_fail
-cleanup_fail_head()
-{
- atf_set "descr" "Tests that atf-run calls the cleanup routine of the test" \
- "case when the test case result is failed"
-}
-cleanup_fail_body()
-{
- create_helper cleanup_states
- create_atffile helper
-
- atf_check -s eq:1 -o match:'cleanup_states, failed' -e ignore atf-run \
- -v state=fail -v statedir=$(pwd) helper
- test -f to-stay || atf_fail "Test case body did not run correctly"
- if [ -f to-delete ]; then
- atf_fail "Test case cleanup did not run correctly"
- fi
-}
-
-atf_test_case cleanup_skip
-cleanup_skip_head()
-{
- atf_set "descr" "Tests that atf-run calls the cleanup routine of the test" \
- "case when the test case result is skipped"
-}
-cleanup_skip_body()
-{
- create_helper cleanup_states
- create_atffile helper
-
- atf_check -s eq:0 -o match:'cleanup_states, skipped' -e ignore atf-run \
- -v state=skip -v statedir=$(pwd) helper
- test -f to-stay || atf_fail "Test case body did not run correctly"
- if [ -f to-delete ]; then
- atf_fail "Test case cleanup did not run correctly"
- fi
-}
-
-atf_test_case cleanup_curdir
-cleanup_curdir_head()
-{
- atf_set "descr" "Tests that atf-run calls the cleanup routine in the same" \
- "work directory as the body so that they can share data"
-}
-cleanup_curdir_body()
-{
- create_helper cleanup_curdir
- create_atffile helper
-
- atf_check -s eq:0 -o match:'cleanup_curdir, passed' \
- -o match:'Old value: 1234' -e ignore atf-run helper
-}
-
-atf_test_case cleanup_signal
-cleanup_signal_head()
-{
- atf_set "descr" "Tests that atf-run calls the cleanup routine if it gets" \
- "a termination signal while running the body"
-}
-cleanup_signal_body()
-{
- : # TODO: Write this.
-}
-
-atf_test_case cleanup_mount
-cleanup_mount_head()
-{
- atf_set "descr" "Tests that the removal algorithm does not cross" \
- "mount points"
- atf_set "require.user" "root"
-}
-cleanup_mount_body()
-{
- ROOT="$(pwd)/root"; export ROOT
-
- create_mount_helper helper <<EOF
-echo \$(pwd) >\${ROOT}
-mkdir foo
-mkdir foo/bar
-mkdir foo/bar/mnt
-do_mount foo/bar/mnt
-mkdir foo/baz
-do_mount foo/baz
-mkdir foo/baz/foo
-mkdir foo/baz/foo/bar
-do_mount foo/baz/foo/bar
-EOF
- create_atffile helper
- chmod +x helper
-
- platform=$(uname)
- case ${platform} in
- Linux|FreeBSD|NetBSD|SunOS)
- ;;
- *)
- # XXX Possibly specify in meta-data too.
- atf_skip "Test unimplemented in this platform (${platform})"
- ;;
- esac
-
- atf_check -s eq:0 -o match:"main, passed" -e ignore atf-run helper
- mount | grep $(cat root) && atf_fail "Some file systems remain mounted"
- atf_check -s eq:1 -o empty -e empty test -d $(cat root)/foo
-}
-
-atf_test_case cleanup_symlink
-cleanup_symlink_head()
-{
- atf_set "descr" "Tests that the removal algorithm does not follow" \
- "symlinks, which may live in another device and thus" \
- "be treated as mount points"
- atf_set "require.user" "root"
-}
-cleanup_symlink_body()
-{
- ROOT="$(pwd)/root"; export ROOT
-
- create_mount_helper helper <<EOF
-echo \$(pwd) >\${ROOT}
-atf_check -s eq:0 -o empty -e empty mkdir foo
-atf_check -s eq:0 -o empty -e empty mkdir foo/bar
-do_mount foo/bar
-atf_check -s eq:0 -o empty -e empty touch a
-atf_check -s eq:0 -o empty -e empty ln -s "\$(pwd)/a" foo/bar
-EOF
- create_atffile helper
- chmod +x helper
-
- platform=$(uname)
- case ${platform} in
- Linux|FreeBSD|NetBSD|SunOS)
- ;;
- *)
- # XXX Possibly specify in meta-data too.
- atf_skip "Test unimplemented in this platform (${platform})"
- ;;
- esac
-
- atf_check -s eq:0 -o match:"main, passed" -e ignore atf-run helper
- mount | grep $(cat root) && atf_fail "Some file systems remain mounted"
- atf_check -s eq:1 -o empty -e empty test -d $(cat root)/foo
-}
-
-atf_test_case require_arch
-require_arch_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.arch property"
-}
-require_arch_body()
-{
- create_helper require_arch
- create_atffile helper
-
- echo "Checking for the real architecture"
- arch=$(atf-config -t atf_arch)
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v arch="${arch}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v arch="foo ${arch}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v arch="${arch} foo" helper
-
- echo "Checking for a fictitious architecture"
- arch=fictitious
- export ATF_ARCH=fictitious
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v arch="${arch}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v arch="foo ${arch}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v arch="${arch} foo" helper
-
- echo "Triggering some failures"
- atf_check -s eq:0 -o match:"${TESTCASE}, skipped, .*foo.*architecture" \
- -e ignore atf-run -v arch="foo" helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*foo bar.*architectures" -e ignore \
- atf-run -v arch="foo bar" helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*fictitiousxxx.*architecture" \
- -e ignore atf-run -v arch="${arch}xxx" helper
-}
-
-atf_test_case require_config
-require_config_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.config property"
-}
-require_config_body()
-{
- create_helper require_config
- create_atffile helper
-
- atf_check -s eq:0 -o match:"${TESTCASE}, skipped, .*var1.*not defined" \
- -e ignore atf-run helper
- atf_check -s eq:0 -o match:"${TESTCASE}, skipped, .*var2.*not defined" \
- -e ignore atf-run -v var1=foo helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v var1=a -v var2=' ' helper
-}
-
-atf_test_case require_files
-require_files_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.files property"
-}
-require_files_body()
-{
- create_helper require_files
- create_atffile helper
-
- touch i-exist
-
- echo "Checking absolute paths"
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v files='/bin/cp' helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v files="$(pwd)/i-exist" helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*/dont-exist" \
- -e ignore atf-run -v files="$(pwd)/i-exist $(pwd)/dont-exist" helper
-
- echo "Checking that relative paths are not allowed"
- atf_check -s eq:1 \
- -o match:"${TESTCASE}, failed, Relative paths.*not allowed.*hello" \
- -e ignore atf-run -v files='hello' helper
- atf_check -s eq:1 \
- -o match:"${TESTCASE}, failed, Relative paths.*not allowed.*a/b" \
- -e ignore atf-run -v files='a/b' helper
-}
-
-atf_test_case require_machine
-require_machine_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.machine property"
-}
-require_machine_body()
-{
- create_helper require_machine
- create_atffile helper
-
- echo "Checking for the real machine type"
- machine=$(atf-config -t atf_machine)
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v machine="${machine}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v machine="foo ${machine}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v machine="${machine} foo" helper
-
- echo "Checking for a fictitious machine type"
- machine=fictitious
- export ATF_MACHINE=fictitious
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v machine="${machine}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v machine="foo ${machine}" helper
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v machine="${machine} foo" helper
-
- echo "Triggering some failures"
- atf_check -s eq:0 -o match:"${TESTCASE}, skipped, .*foo.*machine type" \
- -e ignore atf-run -v machine="foo" helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*foo bar.*machine types" -e ignore \
- atf-run -v machine="foo bar" helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*fictitiousxxx.*machine type" \
- -e ignore atf-run -v machine="${machine}xxx" helper
-}
-
-atf_test_case require_progs
-require_progs_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.progs property"
-}
-require_progs_body()
-{
- create_helper require_progs
- create_atffile helper
-
- echo "Checking absolute paths"
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v progs='/bin/cp' helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*/bin/__non-existent__.*PATH" \
- -e ignore atf-run -v progs='/bin/__non-existent__' helper
-
- echo "Checking that relative paths are not allowed"
- atf_check -s eq:1 \
- -o match:"${TESTCASE}, failed, Relative paths.*not allowed.*bin/cp" \
- -e ignore atf-run -v progs='bin/cp' helper
-
- echo "Check plain file names, searching them in the PATH."
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v progs='cp' helper
- atf_check -s eq:0 \
- -o match:"${TESTCASE}, skipped, .*__non-existent__.*PATH" -e ignore \
- atf-run -v progs='__non-existent__' helper
-}
-
-atf_test_case require_user_root
-require_user_root_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.user property" \
- "when it is set to 'root'"
-}
-require_user_root_body()
-{
- create_helper require_user
- create_atffile helper
-
- if [ $(id -u) -eq 0 ]; then
- exp=passed
- else
- exp=skipped
- fi
- atf_check -s eq:0 -o match:"${TESTCASE}, ${exp}" -e ignore atf-run \
- -v user=root helper
-}
-
-atf_test_case require_user_unprivileged
-require_user_unprivileged_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.user property" \
- "when it is set to 'root'"
-}
-require_user_unprivileged_body()
-{
- create_helper require_user
- create_atffile helper
-
- if [ $(id -u) -eq 0 ]; then
- exp=skipped
- else
- exp=passed
- fi
- atf_check -s eq:0 -o match:"${TESTCASE}, ${exp}" -e ignore atf-run \
- -v user=unprivileged helper
-}
-
-atf_test_case require_user_bad
-require_user_bad_head()
-{
- atf_set "descr" "Tests that atf-run validates the require.user property" \
- "when it is set to 'root'"
-}
-require_user_bad_body()
-{
- create_helper require_user
- create_atffile helper
-
- atf_check -s eq:1 -o match:"${TESTCASE}, failed, Invalid value.*foobar" \
- -e ignore atf-run -v user=foobar helper
-}
-
-atf_test_case timeout
-timeout_head()
-{
- atf_set "descr" "Tests that atf-run kills a test case that times out"
-}
-timeout_body()
-{
- create_helper timeout
- create_atffile helper
-
- atf_check -s eq:1 \
- -o match:"${TESTCASE}, failed, .*timed out after 1 second" -e ignore \
- atf-run -v statedir=$(pwd) helper
- if [ -f finished ]; then
- atf_fail "Test case was not killed after time out"
- fi
-}
-
-atf_test_case timeout_forkexit
-timeout_forkexit_head()
-{
- atf_set "descr" "Tests that atf-run deals gracefully with a test program" \
- "that forks, exits, but the child process hangs"
-}
-timeout_forkexit_body()
-{
- create_helper timeout_forkexit
- create_atffile helper
-
- atf_check -s eq:0 -o match:"${TESTCASE}, passed" -e ignore atf-run \
- -v statedir=$(pwd) helper
- test -f parent-finished || atf_fail "Parent did not exit as expected"
- test -f child-finished && atf_fail "Subprocess exited but it should have" \
- "been forcibly terminated" || true
-}
-
-atf_test_case ignore_deprecated_use_fs
-ignore_deprecated_use_fs_head()
-{
- atf_set "descr" "Tests that atf-run ignores the deprecated use.fs property"
-}
-ignore_deprecated_use_fs_body()
-{
- create_helper use_fs
- create_atffile helper
-
- atf_check -s eq:0 -o ignore -e ignore atf-run helper
-}
-
-atf_init_test_cases()
-{
- atf_add_test_case no_warnings
- atf_add_test_case config
- atf_add_test_case vflag
- atf_add_test_case atffile
- atf_add_test_case atffile_recursive
- atf_add_test_case expect
- atf_add_test_case fds
- atf_add_test_case mux_streams
- atf_add_test_case missing_results
- atf_add_test_case broken_results
- atf_add_test_case broken_tp_list
- atf_add_test_case zero_tcs
- atf_add_test_case exit_codes
- atf_add_test_case signaled
- atf_add_test_case hooks
- atf_add_test_case isolation_env
- atf_add_test_case isolation_home
- atf_add_test_case isolation_stdin
- atf_add_test_case isolation_umask
- atf_add_test_case cleanup_pass
- atf_add_test_case cleanup_fail
- atf_add_test_case cleanup_skip
- atf_add_test_case cleanup_curdir
- atf_add_test_case cleanup_signal
- atf_add_test_case cleanup_mount
- atf_add_test_case cleanup_symlink
- atf_add_test_case require_arch
- atf_add_test_case require_config
- atf_add_test_case require_files
- atf_add_test_case require_machine
- atf_add_test_case require_progs
- atf_add_test_case require_user_root
- atf_add_test_case require_user_unprivileged
- atf_add_test_case require_user_bad
- atf_add_test_case timeout
- atf_add_test_case timeout_forkexit
- atf_add_test_case ignore_deprecated_use_fs
-}
-
-# vim: syntax=sh:expandtab:shiftwidth=4:softtabstop=4
diff --git a/tools/atf-version.1 b/tools/atf-version.1
deleted file mode 100644
index 136f13cd463d..000000000000
--- a/tools/atf-version.1
+++ /dev/null
@@ -1,56 +0,0 @@
-.\"
-.\" Automated Testing Framework (atf)
-.\"
-.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd September 16, 2007
-.Dt ATF-VERSION 1
-.Os
-.Sh NAME
-.Nm atf-version
-.Nd shows information about the installed ATF version
-.Sh SYNOPSIS
-.Nm
-.Nm
-.Fl h
-.Sh DESCRIPTION
-.Nm
-is a utility that prints information about the version of ATF currently
-installed in the system.
-.Pp
-In the first synopsis form,
-.Nm
-shows the release version of the ATF package installed in the system (the
-installation that corresponds to the instance of
-.Nm
-being executed) and also shows information related to the repository
-revision used to build that package.
-.Pp
-In the second synopsis form,
-.Nm
-will print information about all supported options and their purpose.
-.Sh SEE ALSO
-.Xr atf 7
diff --git a/tools/atf-version.cpp b/tools/atf-version.cpp
deleted file mode 100644
index 0a13e7ecd99e..000000000000
--- a/tools/atf-version.cpp
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if defined(HAVE_CONFIG_H)
-#include "bconfig.h"
-#endif
-
-#include <cstdlib>
-#include <iostream>
-
-#include "application.hpp"
-#include "revision.h"
-#include "ui.hpp"
-
-class atf_version : public tools::application::app {
- static const char* m_description;
-
-public:
- atf_version(void);
-
- int main(void);
-};
-
-const char* atf_version::m_description =
- "atf-version is a tool that shows information about the currently "
- "installed version of ATF.";
-
-atf_version::atf_version(void) :
- app(m_description, "atf-version(1)", "atf(7)")
-{
-}
-
-int
-atf_version::main(void)
-{
- using tools::ui::format_text;
- using tools::ui::format_text_with_tag;
-
- std::cout << PACKAGE_STRING " (" PACKAGE_TARNAME "-" PACKAGE_VERSION
- ")\n" PACKAGE_COPYRIGHT "\n\n";
-
-#if defined(PACKAGE_REVISION_TYPE_DIST)
- std::cout << format_text("Built from a distribution file; no revision "
- "information available.") << "\n";
-#elif defined(PACKAGE_REVISION_TYPE_GIT)
- std::cout << format_text_with_tag(PACKAGE_REVISION_BRANCH, "Branch: ",
- false) << "\n";
- std::cout << format_text_with_tag(PACKAGE_REVISION_BASE
-# if PACKAGE_REVISION_MODIFIED
- " (locally modified)"
-# endif
- " " PACKAGE_REVISION_DATE,
- "Base revision: ", false) << "\n";
-#else
-# error "Unknown PACKAGE_REVISION_TYPE value"
-#endif
-
- return EXIT_SUCCESS;
-}
-
-int
-main(int argc, char* const* argv)
-{
- return atf_version().run(argc, argv);
-}
diff --git a/tools/atf.7.in b/tools/atf.7.in
deleted file mode 100644
index b11054cc4779..000000000000
--- a/tools/atf.7.in
+++ /dev/null
@@ -1,192 +0,0 @@
-.\"
-.\" Automated Testing Framework (atf)
-.\"
-.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd August 28, 2010
-.Dt ATF 7
-.Os
-.Sh NAME
-.Nm ATF
-.Nd introduction to the Automated Testing Framework
-.Sh DESCRIPTION
-.Em IMPORTANT: If you are here because you want to know how to run the tests in
-.Pa __TESTSDIR__ ,
-.Em you most likely want to read the
-.Xr tests 7
-.Em manual page instead.
-.Pp
-The Automated Testing Framework
-.Pf ( Nm )
-is a collection of libraries and utilities designed to ease unattended
-application testing in the hands of developers and end users of a specific
-piece of software.
-.Pp
-As regards developers,
-.Nm
-provides the necessary means to easily create
-test suites composed of multiple test programs, which in turn are a
-collection of test cases.
-It also attempts to simplify the debugging of problems when these test
-cases detect an error by providing as much information as possible
-about the failure.
-.Pp
-As regards users, it simplifies the process of running the test suites and,
-in special, encourages end users to run them often: they do not need to
-have source trees around nor any other development tools installed to be
-able to certify that a given piece of software works on their machine as
-advertised.
-.Pp
-If your operating systems distributes
-.Nm ,
-it is possible that it provides an introductory
-.Xr tests 7
-manual page.
-You are encouraged to read it now.
-.Ss License
-.Nm
-is distributed under the terms of the TNF License, a 2-clause BSD license.
-For more details please see:
-.Bd -literal -offset indent
-.Pa __DOCDIR__/COPYING
-.Ed
-.Ss Components
-.Nm
-is a highly modular piece of software.
-It provides a couple of libraries to ease the implementation of test
-programs: one for the C and C++ languages and another one for shell
-scripts.
-It also includes multiple small utilities that follow the principle of
-doing a single thing but doing it right.
-This section outlines which these components are.
-.Pp
-Public utilities:
-.Bl -tag -width atfXtestXprogramXXXXX
-.It Xr atf-check 1
-Executes a command and checks that its exit code, its standard output
-and its standard error output match pre-specified expected values.
-.It Xr atf-config 1
-Queries static configuration information.
-.It Xr atf-report 1
-Converts the output of
-.Nm atf-run
-to user-friendly and/or machine-parseable reports.
-.It Xr atf-run 1
-Automates the execution of a series of test programs and collects their
-results in a unified report.
-.It Xr atf-sh 1
-Shell interpreter for shell-based test programs.
-.El
-.Pp
-Programming interfaces:
-.Bl -tag -width atfXtestXprogramXXXXX
-.It Xr atf-c-api 3
-C programming interface for test programs.
-.It Xr atf-c++-api 3
-C++ programming interface for test programs.
-.It Xr atf-sh-api 3
-POSIX shell programming interface for test programs.
-.El
-.Pp
-Other:
-.Bl -tag -width atfXtestXprogramXXXXX
-.It Xr atf-formats 5
-Description of the machine-parseable data formats used by the tools.
-.It Xr atf-test-case 4
-Generic description of test cases, independent of the language they are
-implemented in.
-.It Xr atf-test-program 1
-Common interface provided by the test programs written using the
-.Nm
-libraries.
-.El
-.Ss Recommended reading order
-For end users wishing to run tests:
-.Bl -enum -compact
-.It
-.Xr tests 7
-(only if provided by your operating system).
-.It
-.Xr atf-test-program 1
-.It
-.Xr atf-run 1
-.It
-.Xr atf-report 1
-.It
-.Xr atf-config 1
-.El
-.Pp
-For developers wanting to write their own tests:
-.Bl -enum -compact
-.It
-Everything recommended to users.
-.It
-.Xr atf-test-case 4
-.It
-.Xr atf-c-api 3
-.It
-.Xr atf-c++-api 3
-.It
-.Xr atf-sh-api 3
-.It
-.Xr atf-sh 1
-.It
-.Xr atf-check 1
-.El
-.Pp
-For those interested in
-.Nm
-internals:
-.Bl -enum -compact
-.It
-Everything recommended to users.
-.It
-Everything recommended to developers.
-.It
-.Xr atf-formats 5
-.El
-.Sh SEE ALSO
-.Xr tests 7
-.Sh HISTORY
-.Nm
-started as a Google Summer of Code 2007 project mentored by The NetBSD
-Foundation.
-Its original goal was to provide a testing framework for The NetBSD
-Operating System, but it grew as an independent project because the
-framework itself did not need to be tied to a specific operating system.
-.Pp
-For more details on this subject, please see:
-.Bd -literal -offset indent
-.Pa __DOCDIR__/NEWS
-.Pa __DOCDIR__/ROADMAP
-.Ed
-.Sh AUTHORS
-For more details on the people that made
-.Nm
-possible, please see:
-.Bd -literal -offset indent
-.Pa __DOCDIR__/AUTHORS
-.Ed
diff --git a/tools/atffile.cpp b/tools/atffile.cpp
deleted file mode 100644
index b04c59ed3bc0..000000000000
--- a/tools/atffile.cpp
+++ /dev/null
@@ -1,348 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cassert>
-#include <cstdlib>
-#include <fstream>
-
-#include "atffile.hpp"
-#include "defs.hpp"
-#include "exceptions.hpp"
-#include "expand.hpp"
-#include "parser.hpp"
-
-namespace impl = tools;
-namespace detail = tools::detail;
-
-namespace {
-
-typedef std::map< std::string, std::string > vars_map;
-
-} // anonymous namespace
-
-// ------------------------------------------------------------------------
-// The "atf_atffile" auxiliary parser.
-// ------------------------------------------------------------------------
-
-namespace atf_atffile {
-
-static const tools::parser::token_type eof_type = 0;
-static const tools::parser::token_type nl_type = 1;
-static const tools::parser::token_type text_type = 2;
-static const tools::parser::token_type colon_type = 3;
-static const tools::parser::token_type conf_type = 4;
-static const tools::parser::token_type dblquote_type = 5;
-static const tools::parser::token_type equal_type = 6;
-static const tools::parser::token_type hash_type = 7;
-static const tools::parser::token_type prop_type = 8;
-static const tools::parser::token_type tp_type = 9;
-static const tools::parser::token_type tp_glob_type = 10;
-
-class tokenizer : public tools::parser::tokenizer< std::istream > {
-public:
- tokenizer(std::istream& is, size_t curline) :
- tools::parser::tokenizer< std::istream >
- (is, true, eof_type, nl_type, text_type, curline)
- {
- add_delim(':', colon_type);
- add_delim('=', equal_type);
- add_delim('#', hash_type);
- add_quote('"', dblquote_type);
- add_keyword("conf", conf_type);
- add_keyword("prop", prop_type);
- add_keyword("tp", tp_type);
- add_keyword("tp-glob", tp_glob_type);
- }
-};
-
-} // namespace atf_atffile
-
-// ------------------------------------------------------------------------
-// The "atf_atffile_reader" class.
-// ------------------------------------------------------------------------
-
-detail::atf_atffile_reader::atf_atffile_reader(std::istream& is) :
- m_is(is)
-{
-}
-
-detail::atf_atffile_reader::~atf_atffile_reader(void)
-{
-}
-
-void
-detail::atf_atffile_reader::got_conf(
- const std::string& name ATF_DEFS_ATTRIBUTE_UNUSED,
- const std::string& val ATF_DEFS_ATTRIBUTE_UNUSED)
-{
-}
-
-void
-detail::atf_atffile_reader::got_prop(
- const std::string& name ATF_DEFS_ATTRIBUTE_UNUSED,
- const std::string& val ATF_DEFS_ATTRIBUTE_UNUSED)
-{
-}
-
-void
-detail::atf_atffile_reader::got_tp(
- const std::string& name ATF_DEFS_ATTRIBUTE_UNUSED,
- bool isglob ATF_DEFS_ATTRIBUTE_UNUSED)
-{
-}
-
-void
-detail::atf_atffile_reader::got_eof(void)
-{
-}
-
-void
-detail::atf_atffile_reader::read(void)
-{
- using tools::parser::parse_error;
- using namespace atf_atffile;
-
- std::pair< size_t, tools::parser::headers_map > hml =
- tools::parser::read_headers(m_is, 1);
- tools::parser::validate_content_type(hml.second,
- "application/X-atf-atffile", 1);
-
- tokenizer tkz(m_is, hml.first);
- tools::parser::parser< tokenizer > p(tkz);
-
- for (;;) {
- try {
- tools::parser::token t =
- p.expect(conf_type, hash_type, prop_type, tp_type,
- tp_glob_type, nl_type, eof_type,
- "conf, #, prop, tp, tp-glob, a new line or eof");
- if (t.type() == eof_type)
- break;
-
- if (t.type() == conf_type) {
- t = p.expect(colon_type, "`:'");
-
- t = p.expect(text_type, "variable name");
- std::string var = t.text();
-
- t = p.expect(equal_type, "equal sign");
-
- t = p.expect(text_type, "word or quoted string");
- ATF_PARSER_CALLBACK(p, got_conf(var, t.text()));
- } else if (t.type() == hash_type) {
- (void)p.rest_of_line();
- } else if (t.type() == prop_type) {
- t = p.expect(colon_type, "`:'");
-
- t = p.expect(text_type, "property name");
- std::string name = t.text();
-
- t = p.expect(equal_type, "equale sign");
-
- t = p.expect(text_type, "word or quoted string");
- ATF_PARSER_CALLBACK(p, got_prop(name, t.text()));
- } else if (t.type() == tp_type) {
- t = p.expect(colon_type, "`:'");
-
- t = p.expect(text_type, "word or quoted string");
- ATF_PARSER_CALLBACK(p, got_tp(t.text(), false));
- } else if (t.type() == tp_glob_type) {
- t = p.expect(colon_type, "`:'");
-
- t = p.expect(text_type, "word or quoted string");
- ATF_PARSER_CALLBACK(p, got_tp(t.text(), true));
- } else if (t.type() == nl_type) {
- continue;
- } else
- std::abort();
-
- t = p.expect(nl_type, hash_type, eof_type,
- "new line or comment");
- if (t.type() == hash_type) {
- (void)p.rest_of_line();
- t = p.next();
- } else if (t.type() == eof_type)
- break;
- } catch (const parse_error& pe) {
- p.add_error(pe);
- p.reset(nl_type);
- }
- }
-
- ATF_PARSER_CALLBACK(p, got_eof());
-}
-
-// ------------------------------------------------------------------------
-// The "reader" helper class.
-// ------------------------------------------------------------------------
-
-class reader : public detail::atf_atffile_reader {
- const tools::fs::directory& m_dir;
- vars_map m_conf, m_props;
- std::vector< std::string > m_tps;
-
- void
- got_tp(const std::string& name, bool isglob)
- {
- if (isglob) {
- std::vector< std::string > ms =
- tools::expand::expand_glob(name, m_dir.names());
- // Cannot use m_tps.insert(iterator, begin, end) here because it
- // does not work under Solaris.
- for (std::vector< std::string >::const_iterator iter = ms.begin();
- iter != ms.end(); iter++)
- m_tps.push_back(*iter);
- } else {
- if (m_dir.find(name) == m_dir.end())
- throw tools::not_found_error< tools::fs::path >
- ("Cannot locate the " + name + " file",
- tools::fs::path(name));
- m_tps.push_back(name);
- }
- }
-
- void
- got_prop(const std::string& name, const std::string& val)
- {
- m_props[name] = val;
- }
-
- void
- got_conf(const std::string& var, const std::string& val)
- {
- m_conf[var] = val;
- }
-
-public:
- reader(std::istream& is, const tools::fs::directory& dir) :
- detail::atf_atffile_reader(is),
- m_dir(dir)
- {
- }
-
- const vars_map&
- conf(void)
- const
- {
- return m_conf;
- }
-
- const vars_map&
- props(void)
- const
- {
- return m_props;
- }
-
- const std::vector< std::string >&
- tps(void)
- const
- {
- return m_tps;
- }
-};
-
-// ------------------------------------------------------------------------
-// The "atffile" class.
-// ------------------------------------------------------------------------
-
-impl::atffile::atffile(const vars_map& config_vars,
- const std::vector< std::string >& test_program_names,
- const vars_map& properties) :
- m_conf(config_vars),
- m_tps(test_program_names),
- m_props(properties)
-{
- assert(properties.find("test-suite") != properties.end());
-}
-
-const std::vector< std::string >&
-impl::atffile::tps(void)
- const
-{
- return m_tps;
-}
-
-const vars_map&
-impl::atffile::conf(void)
- const
-{
- return m_conf;
-}
-
-const vars_map&
-impl::atffile::props(void)
- const
-{
- return m_props;
-}
-
-// ------------------------------------------------------------------------
-// Free functions.
-// ------------------------------------------------------------------------
-
-// XXX Glob expansion and file existance checks certainly do not belong in
-// a *parser*. This needs to be taken out...
-impl::atffile
-impl::read_atffile(const tools::fs::path& filename)
-{
- // Scan the directory where the atffile lives in to gather a list of
- // all possible test programs in it.
- tools::fs::directory dir(filename.branch_path());
- dir.erase(filename.leaf_name());
- tools::fs::directory::iterator iter = dir.begin();
- while (iter != dir.end()) {
- const std::string& name = (*iter).first;
- const tools::fs::file_info& fi = (*iter).second;
-
- // Discard hidden files and non-executable ones so that they are
- // not candidates for glob matching.
- if (name[0] == '.' || (!fi.is_owner_executable() &&
- !fi.is_group_executable()))
- dir.erase(iter++);
- else
- iter++;
- }
-
- // Parse the atffile.
- std::ifstream is(filename.c_str());
- if (!is)
- throw tools::not_found_error< tools::fs::path >
- ("Cannot open Atffile", filename);
- reader r(is, dir);
- r.read();
- is.close();
-
- // Sanity checks.
- if (r.props().find("test-suite") == r.props().end())
- throw tools::not_found_error< std::string >
- ("Undefined property `test-suite'", "test-suite");
-
- return atffile(r.conf(), r.tps(), r.props());
-}
diff --git a/tools/atffile.hpp b/tools/atffile.hpp
deleted file mode 100644
index f326b241d7f0..000000000000
--- a/tools/atffile.hpp
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_ATFFILE_HPP)
-#define TOOLS_ATFFILE_HPP
-
-#include <map>
-#include <string>
-#include <vector>
-
-#include "fs.hpp"
-
-namespace tools {
-
-// ------------------------------------------------------------------------
-// The "atf_atffile_reader" class.
-// ------------------------------------------------------------------------
-
-namespace detail {
-
-class atf_atffile_reader {
- std::istream& m_is;
-
-protected:
- virtual void got_conf(const std::string&, const std::string &);
- virtual void got_prop(const std::string&, const std::string &);
- virtual void got_tp(const std::string&, bool);
- virtual void got_eof(void);
-
-public:
- atf_atffile_reader(std::istream&);
- virtual ~atf_atffile_reader(void);
-
- void read(void);
-};
-
-} // namespace detail
-
-// ------------------------------------------------------------------------
-// The "atffile" class.
-// ------------------------------------------------------------------------
-
-class atffile {
- std::map< std::string, std::string > m_conf;
- std::vector< std::string > m_tps;
- std::map< std::string, std::string > m_props;
-
-public:
- atffile(const std::map< std::string, std::string >&,
- const std::vector< std::string >&,
- const std::map< std::string, std::string >&);
-
- const std::map< std::string, std::string >& conf(void) const;
- const std::vector< std::string >& tps(void) const;
- const std::map< std::string, std::string >& props(void) const;
-};
-
-// ------------------------------------------------------------------------
-// Free functions.
-// ------------------------------------------------------------------------
-
-atffile read_atffile(const tools::fs::path&);
-
-} // namespace tools
-
-#endif // !defined(TOOLS_ATFFILE_HPP)
diff --git a/tools/atffile_test.cpp b/tools/atffile_test.cpp
deleted file mode 100644
index cb358dfa8b9f..000000000000
--- a/tools/atffile_test.cpp
+++ /dev/null
@@ -1,636 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2009 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-extern "C" {
-#include <sys/types.h>
-#include <sys/stat.h>
-}
-
-#include <algorithm>
-#include <fstream>
-#include <memory>
-
-#include <atf-c++.hpp>
-
-#include "atffile.hpp"
-#include "exceptions.hpp"
-#include "test_helpers.hpp"
-
-namespace detail = tools::detail;
-
-// ------------------------------------------------------------------------
-// Auxiliary functions.
-// ------------------------------------------------------------------------
-
-namespace {
-
-typedef std::map< std::string, std::string > vars_map;
-
-static
-std::auto_ptr< std::ofstream >
-new_atffile(void)
-{
- std::auto_ptr< std::ofstream > os(new std::ofstream("Atffile"));
- ATF_REQUIRE(*os);
-
- (*os) << "Content-Type: application/X-atf-atffile; version=\"1\"\n\n";
- return os;
-}
-
-static
-void
-touch_exec(const char* name)
-{
- std::ofstream os(name);
- ATF_REQUIRE(os);
- os.close();
- ATF_REQUIRE(::chmod(name, S_IRWXU) != -1);
-}
-
-static inline
-bool
-is_in(const std::string& value, const std::vector< std::string >& v)
-{
- return std::find(v.begin(), v.end(), value) != v.end();
-}
-
-} // anonymous namespace
-
-// ------------------------------------------------------------------------
-// Tests cases for the "atffile" parser.
-// ------------------------------------------------------------------------
-
-class atffile_reader : protected detail::atf_atffile_reader {
- void
- got_conf(const std::string& name, const std::string& val)
- {
- m_calls.push_back("got_conf(" + name + ", " + val + ")");
- }
-
- void
- got_prop(const std::string& name, const std::string& val)
- {
- m_calls.push_back("got_prop(" + name + ", " + val + ")");
- }
-
- void
- got_tp(const std::string& name, bool isglob)
- {
- m_calls.push_back("got_tp(" + name + ", " + (isglob ? "true" : "false")
- + ")");
- }
-
- void
- got_eof(void)
- {
- m_calls.push_back("got_eof()");
- }
-
-public:
- atffile_reader(std::istream& is) :
- detail::atf_atffile_reader(is)
- {
- }
-
- void
- read(void)
- {
- atf_atffile_reader::read();
- }
-
- std::vector< std::string > m_calls;
-};
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_1);
-ATF_TEST_CASE_BODY(atffile_1)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- ;
-
- const char* exp_calls[] = {
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_2);
-ATF_TEST_CASE_BODY(atffile_2)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "# This is a comment on a line of its own.\n"
- "# And this is another one.\n"
- "\n"
- " # Another after some whitespace.\n"
- "\n"
- "# The last one after an empty line.\n"
- ;
-
- const char* exp_calls[] = {
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_3);
-ATF_TEST_CASE_BODY(atffile_3)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "conf: var1=value1\n"
- "conf: var2 = value2\n"
- "conf: var3 = value3\n"
- "conf: var4 = value4\n"
- "\n"
- "conf:var5=value5\n"
- " conf:var6=value6\n"
- "\n"
- "conf: var7 = \"This is a long value.\"\n"
- "conf: var8 = \"Single-word\"\n"
- "conf: var9 = \" Single-word \"\n"
- "conf: var10 = Single-word\n"
- ;
-
- const char* exp_calls[] = {
- "got_conf(var1, value1)",
- "got_conf(var2, value2)",
- "got_conf(var3, value3)",
- "got_conf(var4, value4)",
- "got_conf(var5, value5)",
- "got_conf(var6, value6)",
- "got_conf(var7, This is a long value.)",
- "got_conf(var8, Single-word)",
- "got_conf(var9, Single-word )",
- "got_conf(var10, Single-word)",
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_4);
-ATF_TEST_CASE_BODY(atffile_4)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "prop: var1=value1\n"
- "prop: var2 = value2\n"
- "prop: var3 = value3\n"
- "prop: var4 = value4\n"
- "\n"
- "prop:var5=value5\n"
- " prop:var6=value6\n"
- "\n"
- "prop: var7 = \"This is a long value.\"\n"
- "prop: var8 = \"Single-word\"\n"
- "prop: var9 = \" Single-word \"\n"
- "prop: var10 = Single-word\n"
- ;
-
- const char* exp_calls[] = {
- "got_prop(var1, value1)",
- "got_prop(var2, value2)",
- "got_prop(var3, value3)",
- "got_prop(var4, value4)",
- "got_prop(var5, value5)",
- "got_prop(var6, value6)",
- "got_prop(var7, This is a long value.)",
- "got_prop(var8, Single-word)",
- "got_prop(var9, Single-word )",
- "got_prop(var10, Single-word)",
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_5);
-ATF_TEST_CASE_BODY(atffile_5)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "tp:foo\n"
- "tp: foo\n"
- "tp: foo\n"
- "tp: foo\n"
- "tp: foo\n"
- "tp: \"name with spaces\"\n"
- "tp: \"single-word\"\n"
- "tp: single-word\n"
- "\n"
- "tp-glob:foo*?bar\n"
- "tp-glob: foo*?bar\n"
- "tp-glob: foo*?bar\n"
- "tp-glob: foo*?bar\n"
- "tp-glob: foo*?bar\n"
- "tp-glob: \"glob * with ? spaces\"\n"
- "tp-glob: \"single-*-word\"\n"
- "tp-glob: single-*-word\n"
- ;
-
- const char* exp_calls[] = {
- "got_tp(foo, false)",
- "got_tp(foo, false)",
- "got_tp(foo, false)",
- "got_tp(foo, false)",
- "got_tp(foo, false)",
- "got_tp(name with spaces, false)",
- "got_tp(single-word, false)",
- "got_tp(single-word, false)",
- "got_tp(foo*?bar, true)",
- "got_tp(foo*?bar, true)",
- "got_tp(foo*?bar, true)",
- "got_tp(foo*?bar, true)",
- "got_tp(foo*?bar, true)",
- "got_tp(glob * with ? spaces, true)",
- "got_tp(single-*-word, true)",
- "got_tp(single-*-word, true)",
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_6);
-ATF_TEST_CASE_BODY(atffile_6)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "prop: foo = bar # A comment.\n"
- "conf: foo = bar # A comment.\n"
- "tp: foo # A comment.\n"
- "tp-glob: foo # A comment.\n"
- ;
-
- const char* exp_calls[] = {
- "got_prop(foo, bar)",
- "got_conf(foo, bar)",
- "got_tp(foo, false)",
- "got_tp(foo, true)",
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_50);
-ATF_TEST_CASE_BODY(atffile_50)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "foo\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- // NO_CHECK_STYLE_BEGIN
- const char* exp_errors[] = {
- "3: Unexpected token `foo'; expected conf, #, prop, tp, tp-glob, a new line or eof",
- NULL
- };
- // NO_CHECK_STYLE_END
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_51);
-ATF_TEST_CASE_BODY(atffile_51)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "foo bar\n"
- "baz\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- // NO_CHECK_STYLE_BEGIN
- const char* exp_errors[] = {
- "3: Unexpected token `foo'; expected conf, #, prop, tp, tp-glob, a new line or eof",
- "4: Unexpected token `baz'; expected conf, #, prop, tp, tp-glob, a new line or eof",
- NULL
- };
- // NO_CHECK_STYLE_END
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_52);
-ATF_TEST_CASE_BODY(atffile_52)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "conf\n"
- "conf:\n"
- "conf: foo =\n"
- "conf: bar = # A comment.\n"
- "\n"
- "prop\n"
- "prop:\n"
- "prop: foo =\n"
- "prop: bar = # A comment.\n"
- "\n"
- "tp\n"
- "tp:\n"
- "tp: # A comment.\n"
- "\n"
- "tp-glob\n"
- "tp-glob:\n"
- "tp-glob: # A comment.\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- const char* exp_errors[] = {
- "3: Unexpected token `<<NEWLINE>>'; expected `:'",
- "4: Unexpected token `<<NEWLINE>>'; expected variable name",
- "5: Unexpected token `<<NEWLINE>>'; expected word or quoted string",
- "6: Unexpected token `#'; expected word or quoted string",
- "8: Unexpected token `<<NEWLINE>>'; expected `:'",
- "9: Unexpected token `<<NEWLINE>>'; expected property name",
- "10: Unexpected token `<<NEWLINE>>'; expected word or quoted string",
- "11: Unexpected token `#'; expected word or quoted string",
- "13: Unexpected token `<<NEWLINE>>'; expected `:'",
- "14: Unexpected token `<<NEWLINE>>'; expected word or quoted string",
- "15: Unexpected token `#'; expected word or quoted string",
- "17: Unexpected token `<<NEWLINE>>'; expected `:'",
- "18: Unexpected token `<<NEWLINE>>'; expected word or quoted string",
- "19: Unexpected token `#'; expected word or quoted string",
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_53);
-ATF_TEST_CASE_BODY(atffile_53)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "prop: foo = \"Correct value\" # With comment.\n"
- "\n"
- "prop: bar = # A comment.\n"
- "\n"
- "prop: baz = \"Last variable\"\n"
- "\n"
- "# End of file.\n"
- ;
-
- const char* exp_calls[] = {
- "got_prop(foo, Correct value)",
- NULL
- };
-
- const char* exp_errors[] = {
- "5: Unexpected token `#'; expected word or quoted string",
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(atffile_54);
-ATF_TEST_CASE_BODY(atffile_54)
-{
- const char* input =
- "Content-Type: application/X-atf-atffile; version=\"1\"\n"
- "\n"
- "prop: foo = \"\n"
- "prop: bar = \"text\n"
- "prop: baz = \"te\\\"xt\n"
- "prop: last = \"\\\"\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- const char* exp_errors[] = {
- "3: Missing double quotes before end of line",
- "4: Missing double quotes before end of line",
- "5: Missing double quotes before end of line",
- "6: Missing double quotes before end of line",
- NULL
- };
-
- do_parser_test< atffile_reader >(input, exp_calls, exp_errors);
-}
-
-// ------------------------------------------------------------------------
-// Tests cases for the "atffile" class.
-// ------------------------------------------------------------------------
-
-ATF_TEST_CASE(atffile_getters);
-ATF_TEST_CASE_HEAD(atffile_getters) {}
-ATF_TEST_CASE_BODY(atffile_getters) {
- vars_map config_vars;
- config_vars["config-var-1"] = "value 1";
-
- std::vector< std::string > test_program_names;
- test_program_names.push_back("test-program-1");
-
- vars_map properties;
- properties["test-suite"] = "a test name";
-
- const tools::atffile atffile(config_vars, test_program_names, properties);
- ATF_REQUIRE(config_vars == atffile.conf());
- ATF_REQUIRE(test_program_names == atffile.tps());
- ATF_REQUIRE(properties == atffile.props());
-}
-
-// ------------------------------------------------------------------------
-// Tests cases for the free functions.
-// ------------------------------------------------------------------------
-
-ATF_TEST_CASE_WITHOUT_HEAD(read_ok_simple);
-ATF_TEST_CASE_BODY(read_ok_simple) {
- std::auto_ptr< std::ofstream > os = new_atffile();
- (*os) << "prop: test-suite = foo\n";
- (*os) << "tp: tp-1\n";
- (*os) << "conf: var1 = value1\n";
- (*os) << "tp: tp-2\n";
- (*os) << "tp: tp-3\n";
- (*os) << "prop: prop1 = propvalue1\n";
- (*os) << "conf: var2 = value2\n";
- (*os).close();
-
- touch_exec("tp-1");
- touch_exec("tp-2");
- touch_exec("tp-3");
-
- const tools::atffile atffile = tools::read_atffile(
- tools::fs::path("Atffile"));
- ATF_REQUIRE_EQ(2, atffile.conf().size());
- ATF_REQUIRE_EQ("value1", atffile.conf().find("var1")->second);
- ATF_REQUIRE_EQ("value2", atffile.conf().find("var2")->second);
- ATF_REQUIRE_EQ(3, atffile.tps().size());
- ATF_REQUIRE(is_in("tp-1", atffile.tps()));
- ATF_REQUIRE(is_in("tp-2", atffile.tps()));
- ATF_REQUIRE(is_in("tp-3", atffile.tps()));
- ATF_REQUIRE_EQ(2, atffile.props().size());
- ATF_REQUIRE_EQ("foo", atffile.props().find("test-suite")->second);
- ATF_REQUIRE_EQ("propvalue1", atffile.props().find("prop1")->second);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(read_ok_some_globs);
-ATF_TEST_CASE_BODY(read_ok_some_globs) {
- std::auto_ptr< std::ofstream > os = new_atffile();
- (*os) << "prop: test-suite = foo\n";
- (*os) << "tp: foo\n";
- (*os) << "tp-glob: *K*\n";
- (*os) << "tp: bar\n";
- (*os) << "tp-glob: t_*\n";
- (*os).close();
-
- touch_exec("foo");
- touch_exec("bar");
- touch_exec("aK");
- touch_exec("KKKKK");
- touch_exec("t_hello");
- touch_exec("zzzt_hello");
-
- const tools::atffile atffile = tools::read_atffile(
- tools::fs::path("Atffile"));
- ATF_REQUIRE_EQ(5, atffile.tps().size());
- ATF_REQUIRE(is_in("foo", atffile.tps()));
- ATF_REQUIRE(is_in("bar", atffile.tps()));
- ATF_REQUIRE(is_in("aK", atffile.tps()));
- ATF_REQUIRE(is_in("KKKKK", atffile.tps()));
- ATF_REQUIRE(is_in("t_hello", atffile.tps()));
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(read_missing_test_suite);
-ATF_TEST_CASE_BODY(read_missing_test_suite) {
- std::auto_ptr< std::ofstream > os = new_atffile();
- (*os).close();
-
- try {
- (void)tools::read_atffile(tools::fs::path("Atffile"));
- ATF_FAIL("Missing property 'test-suite' did not raise an error");
- } catch (const tools::not_found_error< std::string >& e) {
- ATF_REQUIRE_EQ("test-suite", e.get_value());
- }
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(read_missing_test_program);
-ATF_TEST_CASE_BODY(read_missing_test_program) {
- std::auto_ptr< std::ofstream > os = new_atffile();
- (*os) << "tp: foo\n";
- (*os) << "tp: bar\n";
- (*os) << "tp: baz\n";
- (*os).close();
-
- touch_exec("foo");
- touch_exec("baz");
-
- try {
- (void)tools::read_atffile(tools::fs::path("Atffile"));
- ATF_FAIL("Missing file 'bar' did not raise an error");
- } catch (const tools::not_found_error< tools::fs::path >& e) {
- ATF_REQUIRE_EQ("bar", e.get_value().str());
- }
-}
-
-// ------------------------------------------------------------------------
-// Main.
-// ------------------------------------------------------------------------
-
-ATF_INIT_TEST_CASES(tcs)
-{
- // Add the test cases for the parser class.
- ATF_ADD_TEST_CASE(tcs, atffile_1);
- ATF_ADD_TEST_CASE(tcs, atffile_2);
- ATF_ADD_TEST_CASE(tcs, atffile_3);
- ATF_ADD_TEST_CASE(tcs, atffile_4);
- ATF_ADD_TEST_CASE(tcs, atffile_5);
- ATF_ADD_TEST_CASE(tcs, atffile_6);
- ATF_ADD_TEST_CASE(tcs, atffile_50);
- ATF_ADD_TEST_CASE(tcs, atffile_51);
- ATF_ADD_TEST_CASE(tcs, atffile_52);
- ATF_ADD_TEST_CASE(tcs, atffile_53);
- ATF_ADD_TEST_CASE(tcs, atffile_54);
-
- // Add the test cases for the atffile class.
- ATF_ADD_TEST_CASE(tcs, atffile_getters);
-
- // Add the test cases for the free functions.
- ATF_ADD_TEST_CASE(tcs, read_ok_simple);
- ATF_ADD_TEST_CASE(tcs, read_ok_some_globs);
- ATF_ADD_TEST_CASE(tcs, read_missing_test_suite);
- ATF_ADD_TEST_CASE(tcs, read_missing_test_program);
-}
diff --git a/tools/auto_array.hpp b/tools/auto_array.hpp
deleted file mode 100644
index 773f875524fa..000000000000
--- a/tools/auto_array.hpp
+++ /dev/null
@@ -1,179 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_AUTO_ARRAY_HPP)
-#define TOOLS_AUTO_ARRAY_HPP
-
-#include <cstddef>
-
-namespace tools {
-
-// ------------------------------------------------------------------------
-// The "auto_array" class.
-// ------------------------------------------------------------------------
-
-template< class T >
-struct auto_array_ref {
- T* m_ptr;
-
- explicit auto_array_ref(T*);
-};
-
-template< class T >
-auto_array_ref< T >::auto_array_ref(T* ptr) :
- m_ptr(ptr)
-{
-}
-
-template< class T >
-class auto_array {
- T* m_ptr;
-
-public:
- auto_array(T* = NULL) throw();
- auto_array(auto_array< T >&) throw();
- auto_array(auto_array_ref< T >) throw();
- ~auto_array(void) throw();
-
- T* get(void) throw();
- const T* get(void) const throw();
- T* release(void) throw();
- void reset(T* = NULL) throw();
-
- auto_array< T >& operator=(auto_array< T >&) throw();
- auto_array< T >& operator=(auto_array_ref< T >) throw();
-
- T& operator[](int) throw();
- operator auto_array_ref< T >(void) throw();
-};
-
-template< class T >
-auto_array< T >::auto_array(T* ptr)
- throw() :
- m_ptr(ptr)
-{
-}
-
-template< class T >
-auto_array< T >::auto_array(auto_array< T >& ptr)
- throw() :
- m_ptr(ptr.release())
-{
-}
-
-template< class T >
-auto_array< T >::auto_array(auto_array_ref< T > ref)
- throw() :
- m_ptr(ref.m_ptr)
-{
-}
-
-template< class T >
-auto_array< T >::~auto_array(void)
- throw()
-{
- if (m_ptr != NULL)
- delete [] m_ptr;
-}
-
-template< class T >
-T*
-auto_array< T >::get(void)
- throw()
-{
- return m_ptr;
-}
-
-template< class T >
-const T*
-auto_array< T >::get(void)
- const throw()
-{
- return m_ptr;
-}
-
-template< class T >
-T*
-auto_array< T >::release(void)
- throw()
-{
- T* ptr = m_ptr;
- m_ptr = NULL;
- return ptr;
-}
-
-template< class T >
-void
-auto_array< T >::reset(T* ptr)
- throw()
-{
- if (m_ptr != NULL)
- delete [] m_ptr;
- m_ptr = ptr;
-}
-
-template< class T >
-auto_array< T >&
-auto_array< T >::operator=(auto_array< T >& ptr)
- throw()
-{
- reset(ptr.release());
- return *this;
-}
-
-template< class T >
-auto_array< T >&
-auto_array< T >::operator=(auto_array_ref< T > ref)
- throw()
-{
- if (m_ptr != ref.m_ptr) {
- delete [] m_ptr;
- m_ptr = ref.m_ptr;
- }
- return *this;
-}
-
-template< class T >
-T&
-auto_array< T >::operator[](int pos)
- throw()
-{
- return m_ptr[pos];
-}
-
-template< class T >
-auto_array< T >::operator auto_array_ref< T >(void)
- throw()
-{
- return auto_array_ref< T >(release());
-}
-
-} // namespace tools
-
-#endif // !defined(TOOLS_AUTO_ARRAY_HPP)
diff --git a/tools/auto_array_test.cpp b/tools/auto_array_test.cpp
deleted file mode 100644
index 56bbae536003..000000000000
--- a/tools/auto_array_test.cpp
+++ /dev/null
@@ -1,303 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-extern "C" {
-#include <sys/types.h>
-}
-
-#include <iostream>
-
-#include <atf-c++.hpp>
-
-#include "auto_array.hpp"
-#include "defs.hpp"
-
-// ------------------------------------------------------------------------
-// Tests for the "auto_array" class.
-// ------------------------------------------------------------------------
-
-class test_array {
-public:
- int m_value;
-
- static ssize_t m_nblocks;
-
- static
- tools::auto_array< test_array >
- do_copy(tools::auto_array< test_array >& ta)
- {
- return tools::auto_array< test_array >(ta);
- }
-
- void* operator new(size_t size ATF_DEFS_ATTRIBUTE_UNUSED)
- {
- ATF_FAIL("New called but should have been new[]");
- return new int(5);
- }
-
- void* operator new[](size_t size)
- {
- m_nblocks++;
- void* mem = ::operator new(size);
- std::cout << "Allocated 'test_array' object " << mem << "\n";
- return mem;
- }
-
- void operator delete(void* mem ATF_DEFS_ATTRIBUTE_UNUSED)
- {
- ATF_FAIL("Delete called but should have been delete[]");
- }
-
- void operator delete[](void* mem)
- {
- std::cout << "Releasing 'test_array' object " << mem << "\n";
- if (m_nblocks == 0)
- ATF_FAIL("Unbalanced delete[]");
- m_nblocks--;
- ::operator delete(mem);
- }
-};
-
-ssize_t test_array::m_nblocks = 0;
-
-ATF_TEST_CASE(auto_array_scope);
-ATF_TEST_CASE_HEAD(auto_array_scope)
-{
- set_md_var("descr", "Tests the automatic scope handling in the "
- "auto_array smart pointer class");
-}
-ATF_TEST_CASE_BODY(auto_array_scope)
-{
- using tools::auto_array;
-
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- {
- auto_array< test_array > t(new test_array[10]);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
-}
-
-ATF_TEST_CASE(auto_array_copy);
-ATF_TEST_CASE_HEAD(auto_array_copy)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' copy "
- "constructor");
-}
-ATF_TEST_CASE_BODY(auto_array_copy)
-{
- using tools::auto_array;
-
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- {
- auto_array< test_array > t1(new test_array[10]);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
-
- {
- auto_array< test_array > t2(t1);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
-}
-
-ATF_TEST_CASE(auto_array_copy_ref);
-ATF_TEST_CASE_HEAD(auto_array_copy_ref)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' copy "
- "constructor through the auxiliary auto_array_ref object");
-}
-ATF_TEST_CASE_BODY(auto_array_copy_ref)
-{
- using tools::auto_array;
-
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- {
- auto_array< test_array > t1(new test_array[10]);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
-
- {
- auto_array< test_array > t2 = test_array::do_copy(t1);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
-}
-
-ATF_TEST_CASE(auto_array_get);
-ATF_TEST_CASE_HEAD(auto_array_get)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' get "
- "method");
-}
-ATF_TEST_CASE_BODY(auto_array_get)
-{
- using tools::auto_array;
-
- test_array* ta = new test_array[10];
- auto_array< test_array > t(ta);
- ATF_REQUIRE_EQ(t.get(), ta);
-}
-
-ATF_TEST_CASE(auto_array_release);
-ATF_TEST_CASE_HEAD(auto_array_release)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' release "
- "method");
-}
-ATF_TEST_CASE_BODY(auto_array_release)
-{
- using tools::auto_array;
-
- test_array* ta1 = new test_array[10];
- {
- auto_array< test_array > t(ta1);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- test_array* ta2 = t.release();
- ATF_REQUIRE_EQ(ta2, ta1);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- delete [] ta1;
-}
-
-ATF_TEST_CASE(auto_array_reset);
-ATF_TEST_CASE_HEAD(auto_array_reset)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' reset "
- "method");
-}
-ATF_TEST_CASE_BODY(auto_array_reset)
-{
- using tools::auto_array;
-
- test_array* ta1 = new test_array[10];
- test_array* ta2 = new test_array[10];
- ATF_REQUIRE_EQ(test_array::m_nblocks, 2);
-
- {
- auto_array< test_array > t(ta1);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 2);
- t.reset(ta2);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- t.reset();
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
-}
-
-ATF_TEST_CASE(auto_array_assign);
-ATF_TEST_CASE_HEAD(auto_array_assign)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' "
- "assignment operator");
-}
-ATF_TEST_CASE_BODY(auto_array_assign)
-{
- using tools::auto_array;
-
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- {
- auto_array< test_array > t1(new test_array[10]);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
-
- {
- auto_array< test_array > t2;
- t2 = t1;
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
-}
-
-ATF_TEST_CASE(auto_array_assign_ref);
-ATF_TEST_CASE_HEAD(auto_array_assign_ref)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' "
- "assignment operator through the auxiliary auto_array_ref "
- "object");
-}
-ATF_TEST_CASE_BODY(auto_array_assign_ref)
-{
- using tools::auto_array;
-
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- {
- auto_array< test_array > t1(new test_array[10]);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
-
- {
- auto_array< test_array > t2;
- t2 = test_array::do_copy(t1);
- ATF_REQUIRE_EQ(test_array::m_nblocks, 1);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
- }
- ATF_REQUIRE_EQ(test_array::m_nblocks, 0);
-}
-
-ATF_TEST_CASE(auto_array_access);
-ATF_TEST_CASE_HEAD(auto_array_access)
-{
- set_md_var("descr", "Tests the auto_array smart pointer class' access "
- "operator");
-}
-ATF_TEST_CASE_BODY(auto_array_access)
-{
- using tools::auto_array;
-
- auto_array< test_array > t(new test_array[10]);
-
- for (int i = 0; i < 10; i++)
- t[i].m_value = i * 2;
-
- for (int i = 0; i < 10; i++)
- ATF_REQUIRE_EQ(t[i].m_value, i * 2);
-}
-
-// ------------------------------------------------------------------------
-// Main.
-// ------------------------------------------------------------------------
-
-ATF_INIT_TEST_CASES(tcs)
-{
- // Add the test for the "auto_array" class.
- ATF_ADD_TEST_CASE(tcs, auto_array_scope);
- ATF_ADD_TEST_CASE(tcs, auto_array_copy);
- ATF_ADD_TEST_CASE(tcs, auto_array_copy_ref);
- ATF_ADD_TEST_CASE(tcs, auto_array_get);
- ATF_ADD_TEST_CASE(tcs, auto_array_release);
- ATF_ADD_TEST_CASE(tcs, auto_array_reset);
- ATF_ADD_TEST_CASE(tcs, auto_array_assign);
- ATF_ADD_TEST_CASE(tcs, auto_array_assign_ref);
- ATF_ADD_TEST_CASE(tcs, auto_array_access);
-}
diff --git a/tools/bad_metadata_helper.c b/tools/bad_metadata_helper.c
deleted file mode 100644
index 0f7fcb926acd..000000000000
--- a/tools/bad_metadata_helper.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Automated Testing Framework (atf)
- *
- * Copyright (c) 2010 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
- * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
- * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
- * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main(void)
-{
- printf("incorrectly formatted metadata\n");
- return EXIT_SUCCESS;
-}
diff --git a/tools/config.cpp b/tools/config.cpp
deleted file mode 100644
index 95bcf559933b..000000000000
--- a/tools/config.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cassert>
-#include <map>
-
-#include "config.hpp"
-#include "env.hpp"
-#include "text.hpp"
-
-static std::map< std::string, std::string > m_variables;
-
-static struct var {
- const char *name;
- const char *default_value;
- bool can_be_empty;
-} vars[] = {
- { "ATF_ARCH", ATF_ARCH, false, },
- { "ATF_BUILD_CC", ATF_BUILD_CC, false, },
- { "ATF_BUILD_CFLAGS", ATF_BUILD_CFLAGS, true, },
- { "ATF_BUILD_CPP", ATF_BUILD_CPP, false, },
- { "ATF_BUILD_CPPFLAGS", ATF_BUILD_CPPFLAGS, true, },
- { "ATF_BUILD_CXX", ATF_BUILD_CXX, false, },
- { "ATF_BUILD_CXXFLAGS", ATF_BUILD_CXXFLAGS, true, },
- { "ATF_CONFDIR", ATF_CONFDIR, false, },
- { "ATF_INCLUDEDIR", ATF_INCLUDEDIR, false, },
- { "ATF_LIBDIR", ATF_LIBDIR, false, },
- { "ATF_LIBEXECDIR", ATF_LIBEXECDIR, false, },
- { "ATF_MACHINE", ATF_MACHINE, false, },
- { "ATF_PKGDATADIR", ATF_PKGDATADIR, false, },
- { "ATF_SHELL", ATF_SHELL, false, },
- { "ATF_WORKDIR", ATF_WORKDIR, false, },
- { NULL, NULL, false, },
-};
-
-//
-// Adds all predefined standard build-time variables to the m_variables
-// map, considering the values a user may have provided in the environment.
-//
-// Can only be called once during the program's lifetime.
-//
-static
-void
-init_variables(void)
-{
- assert(m_variables.empty());
-
- for (struct var* v = vars; v->name != NULL; v++) {
- const std::string varname = tools::text::to_lower(v->name);
-
- if (tools::env::has(v->name)) {
- const std::string envval = tools::env::get(v->name);
- if (envval.empty() && !v->can_be_empty)
- m_variables[varname] = v->default_value;
- else
- m_variables[varname] = envval;
- } else {
- m_variables[varname] = v->default_value;
- }
- }
-
- assert(!m_variables.empty());
-}
-
-const std::string&
-tools::config::get(const std::string& varname)
-{
- if (m_variables.empty())
- init_variables();
-
- assert(has(varname));
- return m_variables[varname];
-}
-
-const std::map< std::string, std::string >&
-tools::config::get_all(void)
-{
- if (m_variables.empty())
- init_variables();
-
- return m_variables;
-}
-
-bool
-tools::config::has(const std::string& varname)
-{
- if (m_variables.empty())
- init_variables();
-
- return m_variables.find(varname) != m_variables.end();
-}
-
-namespace tools {
-namespace config {
-//
-// Auxiliary function for the t_config test program so that it can
-// revert the configuration's global status to an empty state and
-// do new tests from there on.
-//
-// Ideally this shouldn't be part of the production library... but
-// this is so small that it does not matter.
-//
-void
-__reinit(void)
-{
- m_variables.clear();
-}
-} // namespace config
-} // namespace tools
diff --git a/tools/config.hpp b/tools/config.hpp
deleted file mode 100644
index 0a43873d7ba2..000000000000
--- a/tools/config.hpp
+++ /dev/null
@@ -1,75 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_CONFIG_HPP)
-#define TOOLS_CONFIG_HPP
-
-#include <map>
-#include <string>
-
-namespace tools {
-
-namespace config {
-
-//!
-//! \brief Gets a build-time configuration variable's value.
-//!
-//! Given the name of a build-time configuration variable, returns its
-//! textual value. The user is free to override these by setting their
-//! corresponding environment variables. Therefore always use this
-//! interface to get the value of these variables.
-//!
-//! \pre The variable must exist.
-//!
-const std::string& get(const std::string&);
-
-//!
-//! \brief Returns all the build-time configuration variables.
-//!
-//! Returns a name to value map containing all build-time configuration
-//! variables.
-//!
-const std::map< std::string, std::string >& get_all(void);
-
-//!
-//! \brief Checks whether a build-time configuration variable exists.
-//!
-//! Given the name of a build-time configuration variable, checks
-//! whether it is defined and returns a boolean indicating this
-//! condition. The program only has to use this function to sanity-check
-//! a variable name provided by the user. Otherwise it can assume that
-//! the variables are defined.
-//!
-bool has(const std::string&);
-
-} // namespace config
-
-} // namespace tools
-
-#endif // !defined(TOOLS_CONFIG_HPP)
diff --git a/tools/config_file.cpp b/tools/config_file.cpp
deleted file mode 100644
index 3802c0679ed0..000000000000
--- a/tools/config_file.cpp
+++ /dev/null
@@ -1,223 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cstdlib>
-#include <fstream>
-#include <vector>
-
-#include "config.hpp"
-#include "config_file.hpp"
-#include "defs.hpp"
-#include "env.hpp"
-#include "fs.hpp"
-#include "parser.hpp"
-
-namespace impl = tools::config_file;
-namespace detail = tools::config_file::detail;
-
-namespace {
-
-typedef std::map< std::string, std::string > vars_map;
-
-namespace atf_config {
-
-static const tools::parser::token_type eof_type = 0;
-static const tools::parser::token_type nl_type = 1;
-static const tools::parser::token_type text_type = 2;
-static const tools::parser::token_type dblquote_type = 3;
-static const tools::parser::token_type equal_type = 4;
-static const tools::parser::token_type hash_type = 5;
-
-class tokenizer : public tools::parser::tokenizer< std::istream > {
-public:
- tokenizer(std::istream& is, size_t curline) :
- tools::parser::tokenizer< std::istream >
- (is, true, eof_type, nl_type, text_type, curline)
- {
- add_delim('=', equal_type);
- add_delim('#', hash_type);
- add_quote('"', dblquote_type);
- }
-};
-
-} // namespace atf_config
-
-class config_reader : public detail::atf_config_reader {
- vars_map m_vars;
-
- void
- got_var(const std::string& var, const std::string& name)
- {
- m_vars[var] = name;
- }
-
-public:
- config_reader(std::istream& is) :
- atf_config_reader(is)
- {
- }
-
- const vars_map&
- get_vars(void)
- const
- {
- return m_vars;
- }
-};
-
-template< class K, class V >
-static
-void
-merge_maps(std::map< K, V >& dest, const std::map< K, V >& src)
-{
- for (typename std::map< K, V >::const_iterator iter = src.begin();
- iter != src.end(); iter++)
- dest[(*iter).first] = (*iter).second;
-}
-
-static
-void
-merge_config_file(const tools::fs::path& config_path,
- vars_map& config)
-{
- std::ifstream is(config_path.c_str());
- if (is) {
- config_reader reader(is);
- reader.read();
- merge_maps(config, reader.get_vars());
- }
-}
-
-static
-std::vector< tools::fs::path >
-get_config_dirs(void)
-{
- std::vector< tools::fs::path > dirs;
- dirs.push_back(tools::fs::path(tools::config::get("atf_confdir")));
- if (tools::env::has("HOME"))
- dirs.push_back(tools::fs::path(tools::env::get("HOME")) / ".atf");
- return dirs;
-}
-
-} // anonymous namespace
-
-detail::atf_config_reader::atf_config_reader(std::istream& is) :
- m_is(is)
-{
-}
-
-detail::atf_config_reader::~atf_config_reader(void)
-{
-}
-
-void
-detail::atf_config_reader::got_var(
- const std::string& var ATF_DEFS_ATTRIBUTE_UNUSED,
- const std::string& val ATF_DEFS_ATTRIBUTE_UNUSED)
-{
-}
-
-void
-detail::atf_config_reader::got_eof(void)
-{
-}
-
-void
-detail::atf_config_reader::read(void)
-{
- using tools::parser::parse_error;
- using namespace atf_config;
-
- std::pair< size_t, tools::parser::headers_map > hml =
- tools::parser::read_headers(m_is, 1);
- tools::parser::validate_content_type(hml.second,
- "application/X-atf-config", 1);
-
- tokenizer tkz(m_is, hml.first);
- tools::parser::parser< tokenizer > p(tkz);
-
- for (;;) {
- try {
- tools::parser::token t = p.expect(eof_type, hash_type, text_type,
- nl_type,
- "eof, #, new line or text");
- if (t.type() == eof_type)
- break;
-
- if (t.type() == hash_type) {
- (void)p.rest_of_line();
- t = p.expect(nl_type, "new line");
- } else if (t.type() == text_type) {
- std::string name = t.text();
-
- t = p.expect(equal_type, "equal sign");
-
- t = p.expect(text_type, "word or quoted string");
- ATF_PARSER_CALLBACK(p, got_var(name, t.text()));
-
- t = p.expect(nl_type, hash_type, "new line or comment");
- if (t.type() == hash_type) {
- (void)p.rest_of_line();
- t = p.expect(nl_type, "new line");
- }
- } else if (t.type() == nl_type) {
- } else
- std::abort();
- } catch (const parse_error& pe) {
- p.add_error(pe);
- p.reset(nl_type);
- }
- }
-
- ATF_PARSER_CALLBACK(p, got_eof());
-}
-
-vars_map
-impl::merge_configs(const vars_map& lower,
- const vars_map& upper)
-{
- vars_map merged = lower;
- merge_maps(merged, upper);
- return merged;
-}
-
-vars_map
-impl::read_config_files(const std::string& test_suite_name)
-{
- vars_map config;
-
- const std::vector< tools::fs::path > dirs = get_config_dirs();
- for (std::vector< tools::fs::path >::const_iterator iter = dirs.begin();
- iter != dirs.end(); iter++) {
- merge_config_file((*iter) / "common.conf", config);
- merge_config_file((*iter) / (test_suite_name + ".conf"), config);
- }
-
- return config;
-}
diff --git a/tools/config_file.hpp b/tools/config_file.hpp
deleted file mode 100644
index 0c68bcb051ac..000000000000
--- a/tools/config_file.hpp
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2010 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_CONFIG_FILE_HPP)
-#define TOOLS_CONFIG_FILE_HPP
-
-#include <map>
-#include <string>
-#include <vector>
-
-namespace tools {
-namespace config_file {
-
-namespace detail {
-
-class atf_config_reader {
- std::istream& m_is;
-
-protected:
- virtual void got_var(const std::string&, const std::string &);
- virtual void got_eof(void);
-
-public:
- atf_config_reader(std::istream&);
- virtual ~atf_config_reader(void);
-
- void read(void);
-};
-
-} // namespace detail
-
-std::map< std::string, std::string > merge_configs(
- const std::map< std::string, std::string >&,
- const std::map< std::string, std::string >&);
-std::map< std::string, std::string > read_config_files(const std::string&);
-
-} // namespace config_file
-} // namespace tools
-
-#endif // !defined(TOOLS_CONFIG_FILE_HPP)
diff --git a/tools/config_file_test.cpp b/tools/config_file_test.cpp
deleted file mode 100644
index b8adc7aa3469..000000000000
--- a/tools/config_file_test.cpp
+++ /dev/null
@@ -1,395 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2010 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <atf-c++.hpp>
-
-#include "config.hpp"
-#include "config_file.hpp"
-#include "env.hpp"
-#include "test_helpers.hpp"
-
-namespace impl = tools::config_file;
-namespace detail = tools::config_file::detail;
-
-namespace {
-
-typedef std::map< std::string, std::string > vars_map;
-
-} // anonymous namespace
-
-namespace atf {
-namespace config {
-
-void __reinit(void);
-
-} // namespace config
-} // namespace atf
-
-// -------------------------------------------------------------------------
-// Tests for the "config" parser.
-// -------------------------------------------------------------------------
-
-class config_reader : protected detail::atf_config_reader {
- void
- got_var(const std::string& name, const std::string& val)
- {
- m_calls.push_back("got_var(" + name + ", " + val + ")");
- }
-
- void
- got_eof(void)
- {
- m_calls.push_back("got_eof()");
- }
-
-public:
- config_reader(std::istream& is) :
- detail::atf_config_reader(is)
- {
- }
-
- void
- read(void)
- {
- atf_config_reader::read();
- }
-
- std::vector< std::string > m_calls;
-};
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_1);
-ATF_TEST_CASE_BODY(config_1)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- ;
-
- const char* exp_calls[] = {
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_2);
-ATF_TEST_CASE_BODY(config_2)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "# This is a comment on a line of its own.\n"
- "# And this is another one.\n"
- "\n"
- " # Another after some whitespace.\n"
- "\n"
- "# The last one after an empty line.\n"
- ;
-
- const char* exp_calls[] = {
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_3);
-ATF_TEST_CASE_BODY(config_3)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "var1=value1\n"
- "var2 = value2\n"
- "var3 = value3\n"
- "var4 = value4\n"
- "\n"
- "var5=value5\n"
- " var6=value6\n"
- "\n"
- "var7 = \"This is a long value.\"\n"
- "var8 = \"Single-word\"\n"
- "var9 = \" Single-word \"\n"
- "var10 = Single-word\n"
- ;
-
- const char* exp_calls[] = {
- "got_var(var1, value1)",
- "got_var(var2, value2)",
- "got_var(var3, value3)",
- "got_var(var4, value4)",
- "got_var(var5, value5)",
- "got_var(var6, value6)",
- "got_var(var7, This is a long value.)",
- "got_var(var8, Single-word)",
- "got_var(var9, Single-word )",
- "got_var(var10, Single-word)",
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_4);
-ATF_TEST_CASE_BODY(config_4)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "foo = bar # A comment.\n"
- ;
-
- const char* exp_calls[] = {
- "got_var(foo, bar)",
- "got_eof()",
- NULL
- };
-
- const char* exp_errors[] = {
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_50);
-ATF_TEST_CASE_BODY(config_50)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "foo\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- const char* exp_errors[] = {
- "3: Unexpected token `<<NEWLINE>>'; expected equal sign",
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_51);
-ATF_TEST_CASE_BODY(config_51)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "foo bar\n"
- "baz\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- const char* exp_errors[] = {
- "3: Unexpected token `bar'; expected equal sign",
- "4: Unexpected token `<<NEWLINE>>'; expected equal sign",
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_52);
-ATF_TEST_CASE_BODY(config_52)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "foo =\n"
- "bar = # A comment.\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- const char* exp_errors[] = {
- "3: Unexpected token `<<NEWLINE>>'; expected word or quoted string",
- "4: Unexpected token `#'; expected word or quoted string",
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_53);
-ATF_TEST_CASE_BODY(config_53)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "foo = \"Correct value\" # With comment.\n"
- "\n"
- "bar = # A comment.\n"
- "\n"
- "baz = \"Last variable\"\n"
- "\n"
- "# End of file.\n"
- ;
-
- const char* exp_calls[] = {
- "got_var(foo, Correct value)",
- NULL
- };
-
- const char* exp_errors[] = {
- "5: Unexpected token `#'; expected word or quoted string",
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-ATF_TEST_CASE_WITHOUT_HEAD(config_54);
-ATF_TEST_CASE_BODY(config_54)
-{
- const char* input =
- "Content-Type: application/X-atf-config; version=\"1\"\n"
- "\n"
- "foo = \"\n"
- "bar = \"text\n"
- "baz = \"te\\\"xt\n"
- "last = \"\\\"\n"
- ;
-
- const char* exp_calls[] = {
- NULL
- };
-
- const char* exp_errors[] = {
- "3: Missing double quotes before end of line",
- "4: Missing double quotes before end of line",
- "5: Missing double quotes before end of line",
- "6: Missing double quotes before end of line",
- NULL
- };
-
- do_parser_test< config_reader >(input, exp_calls, exp_errors);
-}
-
-// -------------------------------------------------------------------------
-// Tests for the free functions.
-// -------------------------------------------------------------------------
-
-ATF_TEST_CASE(merge_configs_both_empty);
-ATF_TEST_CASE_HEAD(merge_configs_both_empty) {}
-ATF_TEST_CASE_BODY(merge_configs_both_empty) {
- vars_map lower, upper;
-
- ATF_REQUIRE(impl::merge_configs(lower, upper).empty());
-}
-
-ATF_TEST_CASE(merge_configs_lower_empty);
-ATF_TEST_CASE_HEAD(merge_configs_lower_empty) {}
-ATF_TEST_CASE_BODY(merge_configs_lower_empty) {
- vars_map lower, upper;
- upper["var"] = "value";
-
- vars_map merged = impl::merge_configs(lower, upper);
- ATF_REQUIRE_EQ("value", merged["var"]);
-}
-
-ATF_TEST_CASE(merge_configs_upper_empty);
-ATF_TEST_CASE_HEAD(merge_configs_upper_empty) {}
-ATF_TEST_CASE_BODY(merge_configs_upper_empty) {
- vars_map lower, upper;
- lower["var"] = "value";
-
- vars_map merged = impl::merge_configs(lower, upper);
- ATF_REQUIRE_EQ("value", merged["var"]);
-}
-
-ATF_TEST_CASE(merge_configs_mixed);
-ATF_TEST_CASE_HEAD(merge_configs_mixed) {}
-ATF_TEST_CASE_BODY(merge_configs_mixed) {
- vars_map lower, upper;
- lower["var1"] = "value1";
- lower["var2"] = "value2-l";
- upper["var2"] = "value2-u";
- upper["var3"] = "value3";
-
- vars_map merged = impl::merge_configs(lower, upper);
- ATF_REQUIRE_EQ("value1", merged["var1"]);
- ATF_REQUIRE_EQ("value2-u", merged["var2"]);
- ATF_REQUIRE_EQ("value3", merged["var3"]);
-}
-
-ATF_TEST_CASE(read_config_files_none);
-ATF_TEST_CASE_HEAD(read_config_files_none) {}
-ATF_TEST_CASE_BODY(read_config_files_none) {
- tools::env::set("ATF_CONFDIR", ".");
- atf::config::__reinit();
- ATF_REQUIRE(vars_map() == impl::read_config_files("test-suite"));
-}
-
-// -------------------------------------------------------------------------
-// Main.
-// -------------------------------------------------------------------------
-
-ATF_INIT_TEST_CASES(tcs)
-{
- ATF_ADD_TEST_CASE(tcs, config_1);
- ATF_ADD_TEST_CASE(tcs, config_2);
- ATF_ADD_TEST_CASE(tcs, config_3);
- ATF_ADD_TEST_CASE(tcs, config_4);
- ATF_ADD_TEST_CASE(tcs, config_50);
- ATF_ADD_TEST_CASE(tcs, config_51);
- ATF_ADD_TEST_CASE(tcs, config_52);
- ATF_ADD_TEST_CASE(tcs, config_53);
- ATF_ADD_TEST_CASE(tcs, config_54);
-
- ATF_ADD_TEST_CASE(tcs, merge_configs_both_empty);
- ATF_ADD_TEST_CASE(tcs, merge_configs_lower_empty);
- ATF_ADD_TEST_CASE(tcs, merge_configs_upper_empty);
- ATF_ADD_TEST_CASE(tcs, merge_configs_mixed);
-
- ATF_ADD_TEST_CASE(tcs, read_config_files_none);
-}
diff --git a/tools/config_test.cpp b/tools/config_test.cpp
deleted file mode 100644
index d7d67199b5d6..000000000000
--- a/tools/config_test.cpp
+++ /dev/null
@@ -1,221 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#include <cstring>
-#include <iostream>
-
-#include <atf-c++.hpp>
-
-#include "config.hpp"
-#include "env.hpp"
-#include "exceptions.hpp"
-
-static const char *test_value = "env-value";
-
-static struct varnames {
- const char *lc;
- const char *uc;
- bool can_be_empty;
-} all_vars[] = {
- { "atf_arch", "ATF_ARCH", false },
- { "atf_build_cc", "ATF_BUILD_CC", false },
- { "atf_build_cflags", "ATF_BUILD_CFLAGS", true },
- { "atf_build_cpp", "ATF_BUILD_CPP", false },
- { "atf_build_cppflags", "ATF_BUILD_CPPFLAGS", true },
- { "atf_build_cxx", "ATF_BUILD_CXX", false },
- { "atf_build_cxxflags", "ATF_BUILD_CXXFLAGS", true },
- { "atf_confdir", "ATF_CONFDIR", false },
- { "atf_includedir", "ATF_INCLUDEDIR", false },
- { "atf_libdir", "ATF_LIBDIR", false },
- { "atf_libexecdir", "ATF_LIBEXECDIR", false },
- { "atf_machine", "ATF_MACHINE", false },
- { "atf_pkgdatadir", "ATF_PKGDATADIR", false },
- { "atf_shell", "ATF_SHELL", false },
- { "atf_workdir", "ATF_WORKDIR", false },
- { NULL, NULL, false }
-};
-
-// ------------------------------------------------------------------------
-// Auxiliary functions.
-// ------------------------------------------------------------------------
-
-namespace tools {
- namespace config {
- void __reinit(void);
- }
-}
-
-static
-void
-set_env_var(const char* name, const char* val)
-{
- try {
- tools::env::set(name, val);
- } catch (const tools::system_error&) {
- ATF_FAIL(std::string("set_env_var(") + name + ", " + val +
- ") failed");
- }
-}
-
-static
-void
-unset_env_var(const char* name)
-{
- try {
- tools::env::unset(name);
- } catch (const tools::system_error&) {
- ATF_FAIL(std::string("unset_env_var(") + name + ") failed");
- }
-}
-
-static
-size_t
-all_vars_count(void)
-{
- size_t count = 0;
- for (const struct varnames* v = all_vars; v->lc != NULL; v++)
- count++;
- return count;
-}
-
-static
-void
-unset_all(void)
-{
- for (const struct varnames* v = all_vars; v->lc != NULL; v++)
- unset_env_var(v->uc);
-}
-
-static
-void
-compare_one(const char* var, const char* expvalue)
-{
- std::cout << "Checking that " << var << " is set to " << expvalue << "\n";
-
- for (const struct varnames* v = all_vars; v->lc != NULL; v++) {
- if (std::strcmp(v->lc, var) == 0)
- ATF_REQUIRE_EQ(tools::config::get(v->lc), test_value);
- else
- ATF_REQUIRE(tools::config::get(v->lc) != test_value);
- }
-}
-
-// ------------------------------------------------------------------------
-// Test cases for the free functions.
-// ------------------------------------------------------------------------
-
-ATF_TEST_CASE(get);
-ATF_TEST_CASE_HEAD(get)
-{
- set_md_var("descr", "Tests the config::get function");
-}
-ATF_TEST_CASE_BODY(get)
-{
- // Unset all known environment variables and make sure the built-in
- // values do not match the bogus value we will use for testing.
- unset_all();
- tools::config::__reinit();
- for (const struct varnames* v = all_vars; v->lc != NULL; v++)
- ATF_REQUIRE(tools::config::get(v->lc) != test_value);
-
- // Test the behavior of empty values.
- for (const struct varnames* v = all_vars; v->lc != NULL; v++) {
- unset_all();
- if (!tools::config::get(v->lc).empty()) {
- set_env_var(v->uc, "");
- tools::config::__reinit();
- if (v->can_be_empty)
- ATF_REQUIRE(tools::config::get(v->lc).empty());
- else
- ATF_REQUIRE(!tools::config::get(v->lc).empty());
- }
- }
-
- // Check if the ATF_ARCH variable is recognized.
- for (const struct varnames* v = all_vars; v->lc != NULL; v++) {
- unset_all();
- set_env_var(v->uc, test_value);
- tools::config::__reinit();
- compare_one(v->lc, test_value);
- }
-}
-
-ATF_TEST_CASE(get_all);
-ATF_TEST_CASE_HEAD(get_all)
-{
- set_md_var("descr", "Tests the config::get_all function");
-}
-ATF_TEST_CASE_BODY(get_all)
-{
- tools::config::__reinit();
-
- // Check that the valid variables, and only those, are returned.
- std::map< std::string, std::string > vars = tools::config::get_all();
- ATF_REQUIRE_EQ(vars.size(), all_vars_count());
- for (const struct varnames* v = all_vars; v->lc != NULL; v++)
- ATF_REQUIRE(vars.find(v->lc) != vars.end());
-}
-
-ATF_TEST_CASE(has);
-ATF_TEST_CASE_HEAD(has)
-{
- set_md_var("descr", "Tests the config::has function");
-}
-ATF_TEST_CASE_BODY(has)
-{
- tools::config::__reinit();
-
- // Check for all the variables that must exist.
- for (const struct varnames* v = all_vars; v->lc != NULL; v++)
- ATF_REQUIRE(tools::config::has(v->lc));
-
- // Same as above, but using uppercase (which is incorrect).
- for (const struct varnames* v = all_vars; v->lc != NULL; v++)
- ATF_REQUIRE(!tools::config::has(v->uc));
-
- // Check for some other variables that cannot exist.
- ATF_REQUIRE(!tools::config::has("foo"));
- ATF_REQUIRE(!tools::config::has("BAR"));
- ATF_REQUIRE(!tools::config::has("atf_foo"));
- ATF_REQUIRE(!tools::config::has("ATF_BAR"));
- ATF_REQUIRE(!tools::config::has("atf_shel"));
- ATF_REQUIRE(!tools::config::has("atf_shells"));
-}
-
-// ------------------------------------------------------------------------
-// Main.
-// ------------------------------------------------------------------------
-
-ATF_INIT_TEST_CASES(tcs)
-{
- // Add the test cases for the free functions.
- ATF_ADD_TEST_CASE(tcs, has);
- ATF_ADD_TEST_CASE(tcs, get);
- ATF_ADD_TEST_CASE(tcs, get_all);
-}
diff --git a/tools/defs.hpp.in b/tools/defs.hpp.in
deleted file mode 100644
index 95427951998d..000000000000
--- a/tools/defs.hpp.in
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2008 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_DEFS_HPP)
-#define TOOLS_DEFS_HPP
-
-#define ATF_DEFS_ATTRIBUTE_FORMAT_PRINTF(a, b) @ATTRIBUTE_FORMAT_PRINTF@
-#define ATF_DEFS_ATTRIBUTE_NORETURN @ATTRIBUTE_NORETURN@
-#define ATF_DEFS_ATTRIBUTE_UNUSED @ATTRIBUTE_UNUSED@
-
-#endif /* !defined(TOOLS_DEFS_HPP) */
diff --git a/tools/env.cpp b/tools/env.cpp
deleted file mode 100644
index 1dbdb557bbac..000000000000
--- a/tools/env.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if defined(HAVE_CONFIG_H)
-#include "bconfig.h"
-#endif
-
-extern "C" {
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-}
-
-#include <cassert>
-
-#include "env.hpp"
-#include "exceptions.hpp"
-
-namespace impl = tools::env;
-#define IMPL_NAME "tools::env"
-
-// ------------------------------------------------------------------------
-// Free functions.
-// ------------------------------------------------------------------------
-
-std::string
-impl::get(const std::string& name)
-{
- const char* val = getenv(name.c_str());
- assert(val != NULL);
- return val;
-}
-
-bool
-impl::has(const std::string& name)
-{
- return getenv(name.c_str()) != NULL;
-}
-
-void
-impl::set(const std::string& name, const std::string& val)
-{
-#if defined(HAVE_SETENV)
- if (setenv(name.c_str(), val.c_str(), 1) == -1)
- throw tools::system_error(IMPL_NAME "::set",
- "Cannot set environment variable '" + name +
- "' to '" + val + "'",
- errno);
-#elif defined(HAVE_PUTENV)
- const std::string buf = name + "=" + val;
- if (putenv(strdup(buf.c_str())) == -1)
- throw tools::system_error(IMPL_NAME "::set",
- "Cannot set environment variable '" + name +
- "' to '" + val + "'",
- errno);
-#else
-# error "Don't know how to set an environment variable."
-#endif
-}
-
-void
-impl::unset(const std::string& name)
-{
-#if defined(HAVE_UNSETENV)
- unsetenv(name.c_str());
-#elif defined(HAVE_PUTENV)
- const std::string buf = name + "=";
-
- if (putenv(strdup(buf.c_str())) == -1)
- throw tools::system_error(IMPL_NAME "::unset",
- "Cannot unset environment variable '" +
- name + "'", errno);
-#else
-# error "Don't know how to unset an environment variable."
-#endif
-}
diff --git a/tools/env.hpp b/tools/env.hpp
deleted file mode 100644
index f87a58f92f8d..000000000000
--- a/tools/env.hpp
+++ /dev/null
@@ -1,84 +0,0 @@
-//
-// Automated Testing Framework (atf)
-//
-// Copyright (c) 2007 The NetBSD Foundation, Inc.
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-//
-// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
-// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
-// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
-// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#if !defined(TOOLS_ENV_HPP)
-#define TOOLS_ENV_HPP
-
-#include <string>
-
-namespace tools {
-namespace env {
-
-// ------------------------------------------------------------------------
-// Free functions.
-// ------------------------------------------------------------------------
-
-//!
-//! \brief Returns the value of an environment variable.