2010-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Update VERBOSE handling for parallel-tests driver.
+ * tests/defs.m4sh: Default to verbose output, drop now-unneeded
+ handling of 'VERBOSE=no'.
+ * README: Update example usage.
+ * README.alpha: Likewise.
+ * doc/libtool.texi (Test descriptions, When tests fail): Remove
+ unneeded VERBOSE recommendations. Point to per-test log files
+ and test-suite.log summary file.
+
Enable parallel-tests test driver for the old testsuite.
* configure.ac: New configure test to find out whether `make'
supports order-only prerequisites; set @ORDER@ accordingly.
to send the verbose output of the FAILing group, along with the
information from the end of `$(top_builddir)/libtool --help' to the bug
report mailing list, <bug-libtool@gnu.org> with a subject line that
-includes the string `[TEST FAILURE]'. From a Bourne compatible shell,
-you can generate verbose test output like this:
+includes the string `[TEST FAILURE]'. The file test-suite.log contains
+the verbose output from all failed tests.
- VERBOSE=yes gmake check \
- TESTS="tests/cdemo-static.test tests/cdemo-make.test tests/cdemo-exec.test" \
- TESTSUITEFLAGS=-V | tee cdemo-static-group.log
-
-In order to enable debug shell tracing, use VERBOSE=debug instead of
-VERBOSE=yes.
+In order to enable debug shell tracing, you can set VERBOSE=debug when
+running the old test suite.
In the long run, Libtool will move to using only the new,
http://www.gnu.org/software/libtool/contribute.html
--
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software
+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Foundation, Inc.
Written by Gary V. Vaughan, 2004
to send the verbose output of the FAILing group, along with the
information from the end of `$(top_builddir)/libtool --help' to the bug
report mailing list, <bug-libtool@gnu.org> with a subject line that
-includes the string `[TEST FAILURE]'. From a Bourne compatible shell,
-you can generate verbose test output like this:
+includes the string `[TEST FAILURE]'. The file test-suite.log contains
+the verbose output from all failed tests.
- VERBOSE=yes gmake check \
- TESTS="tests/cdemo-static.test tests/cdemo-make.test tests/cdemo-exec.test" \
- TESTSUITEFLAGS=-V | tee cdemo-static-group.log
-
-In order to enable debug shell tracing, use VERBOSE=debug instead of
-VERBOSE=yes.
+In order to enable debug shell tracing, you can set VERBOSE=debug when
+running the old test suite.
In the long run, Libtool will move to using only the new,
<bug-libtool@gnu.org>.
--
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software
+ Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
Foundation, Inc.
Written by Gary V. Vaughan, 2004
@pindex demo-relink.test
@pindex depdemo-relink.test
These tests check whether variable @code{shlibpath_overrides_runpath} is
-properly set. If the test fails and @env{VERBOSE} is set, it will
-indicate what the variable should have been set to.
+properly set. If the test fails, it will indicate what the variable should
+have been set to.
@item demo-noinst-link.test
@pindex demo-noinst-link.test
@cindex failed tests
@cindex tests, failed
-Each of the tests in the old test suite are designed to produce no
-output when they are run via @kbd{make check}. The exit status of each
+When the tests in the old test suite are run via @command{make check},
+output is caught in per-test @file{tests/@var{test-name}.log} files
+and summarized in the @file{test-suite.log} file. The exit status of each
program tells the @file{Makefile} whether or not the test succeeded.
If a test fails, it means that there is either a programming error in
a normal program. When the test is invoked in this way, it produces
output that may be useful in determining what the problem is.
-Another way to have the test programs produce output is to set the
-@env{VERBOSE} environment variable to @samp{yes} before running them.
-For example, @kbd{env VERBOSE=yes make check} runs all the tests, and
-has each of them display debugging information.
-
The new, Autotest-based test suite produces as output a file
@file{tests/testsuite.log} which contains information about failed
tests.
CONFIG_SITE=/nonexistent
fi
-# How verbose should we be? Default is no test output.
-# Setting VERBOSE=yes enables test output.
-# Setting VERBOSE=debug also puts the shell in debug mode.
+# How verbose should we be? Default is test output in log file.
+# Setting VERBOSE=debug puts the shell in debug mode.
opt_debug=:
-test "${VERBOSE+set}" != "set" && VERBOSE=no
case "$VERBOSE" in
-NO | no | 0 | "")
- exec > /dev/null 2>&1
- ;;
DEBUG | debug )
opt_debug='set -x'
$opt_debug