platform/upstream/automake.git
13 years agoMerge branch 'python-tests-extend'
Stefano Lattarini [Mon, 14 Feb 2011 23:47:52 +0000 (00:47 +0100)]
Merge branch 'python-tests-extend'

13 years agopython: fix spurious failure in tests
Stefano Lattarini [Sun, 13 Feb 2011 10:40:16 +0000 (11:40 +0100)]
python: fix spurious failure in tests

* tests/python-vars.test: Ignore cached values from config.site
by exporting CONFIG_SITE=/dev/null.  Be laxer in matching the
expected values of output variables `pythondir' and `pyexecdir',
since they can change quite unpredictably among different python
installations.  Also, avoid "hyping" debugging output, thus
offering smaller trace output and more informative diff.
* tests/python-virtualenv.test: Require python, since we call it
even after the virtualenv has been deactivated.  Ignore cached
values from config.site by exporting CONFIG_SITE=/dev/null.

Report and suggestions by Ralf Wildenhues.

13 years agoMerge branch 'maint'
Stefano Lattarini [Thu, 10 Feb 2011 09:32:51 +0000 (10:32 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'python-tests-extend'
Stefano Lattarini [Thu, 10 Feb 2011 09:13:59 +0000 (10:13 +0100)]
Merge branch 'python-tests-extend'

Conflicts:
tests/Makefile.am
tests/Makefile.in
tests/python11.test
tests/python2.test
tests/python8.test
tests/python9.test

13 years agotests: tweak few tests on simple and parallel test drivers
Stefano Lattarini [Sun, 6 Feb 2011 18:43:22 +0000 (19:43 +0100)]
tests: tweak few tests on simple and parallel test drivers

* tests/check-exported-srcdir.test: Improve heading comments.
* tests/check-tests-in-builddir.test: Likewise.  Also, unset the
`FOO_EXIT_STATUS' variable, so that any pre-existing value in the
environment won't risk to interfere with the test.

Suggestions by Ralf Wildenhues.

13 years agopython: extend and improve tests, fix minor glitches
Stefano Lattarini [Tue, 1 Feb 2011 22:22:08 +0000 (23:22 +0100)]
python: extend and improve tests, fix minor glitches

* m4/python.m4 (AM_PATH_PYTHON): Ensure the "checking ..." messages
from configure are always complete, even in case of failure.  Tiny
cosmetic improvement in info/error messages.
* tests/python.test: Also check that automake complains if the
PYTHON primary is used but the `py-compile' script is not present.
Make grepping of generated Makefile.in laxer w.r.t. whitespace.
Add trailing `:' command.
* tests/python2.test: Remove repeated calls aclocal: they are
useless because configure.in is never modified.  Make grepping
of automake stderr more comprehensive.  Remove the pre-existing
`py-compile' file before trying to install it with `--add-missing'.
Add trailing `:' command.
* tests/python3.test: Add trailing `:' command.
* tests/python11.test: Likewise.
* tests/python4.test: Likewise.  Also, try to pass PYTHON config
variable to configure from the environment, rather than only from
the command line.
* tests/python5.test: Ensure that the "checking ..." messages from
configure are always complete.  Use proper m4 quoting.  Add a
trailing `:' command.
* tests/python6.test: Simplify test logic, by checking for files
created by configure rather then grepping its output.
* tests/python7.test: Likewise.
* tests/python8.test: Also check that `$PYTHON' is meaningfully
set in the ACTION-IF-TRUE argument of AM_PATH_PYTHON.
* tests/python9.test: Likewise.
* tests/python10.test: Add trailing `:' command.
(Makefile.am): Declare `disttest' target as `.PHONY', and add
an `ls -l' to its recipe, for debugging.
* tests/nobase-python.test: In testing "make uninstall" and
"make install" results, prefer idioms that make verbose logs
more helpful.  Remove a couple of lines of dead code.  Add a
trailing `:' command.
* tests/python5b.test: New test, checking that configure performs
the check on the python version even when the choice of the python
interpreter is forced by the user.
* tests/python-dist.test: New test, checking the distribution of
*_PYTHON files.
* tests/python-vars.test: New test, checking that AM_PATH_PYTHON
correctly set all the output variables advertised in the manual.
* tests/python-virtualenv.test: New test, checking that python
support offered by automake works well with "virtual python
environments" created by the `virtualenv' program.
* tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
checks made slightly stricter.
* tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
* tests/instdir-ltlib.test: Likewise.
* tests/Makefile.am (TESTS): Update.

13 years agocoverage: more tests on simple and parallel test drivers
Stefano Lattarini [Mon, 24 Jan 2011 14:56:52 +0000 (15:56 +0100)]
coverage: more tests on simple and parallel test drivers

* tests/parallel-tests-subdir.test: New test.
* tests/check-exported-srcdir.test: Likewise.
* tests/check-tests-in-builddir.test: Likewise.
* tests/check-tests_environment.test: Likewise.
* tests/Makefile.am (TESTS): Update.

13 years agoMerge branch 'lflags-test-fixes' into maint
Stefano Lattarini [Sat, 29 Jan 2011 17:47:39 +0000 (18:47 +0100)]
Merge branch 'lflags-test-fixes' into maint

13 years agotests: fix spurious failures in lflags*.test
Stefano Lattarini [Sat, 29 Jan 2011 17:35:45 +0000 (18:35 +0100)]
tests: fix spurious failures in lflags*.test

* tests/lflags.test: Remove 'LEX' from the environment, so
that it won't be erroneously picked up by `make -e'.
* tests/lflags2.test: Likewise.

13 years agodocs: color-tests issues with parallel make
Stefano Lattarini [Mon, 24 Jan 2011 21:26:55 +0000 (22:26 +0100)]
docs: color-tests issues with parallel make

* doc/automake.texi (Simple Tests): Document that automatic
recognition of a capable terminal attached to stdout can fail
with some make implementation when running in parallel mode,
thus causing colored test output not to be automatically
activated when it should.

13 years agoMerge branch 'maint'
Ralf Wildenhues [Mon, 24 Jan 2011 20:43:41 +0000 (21:43 +0100)]
Merge branch 'maint'

13 years agotests: avoid instspc.test failures due to make's whitespace trimming
Ralf Wildenhues [Sun, 23 Jan 2011 10:26:50 +0000 (11:26 +0100)]
tests: avoid instspc.test failures due to make's whitespace trimming

* tests/instspc.test: Prepend './' when passing the test
characters, to avoid leading whitespace characters to be trimmed
from macros set from environment variables.  Fixes testsuite
failures with HP-UX, IRIX, and Tru64/OSF make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agocoverage: test semantics of "dummy" per-target flags
Stefano Lattarini [Sat, 22 Jan 2011 17:09:51 +0000 (18:09 +0100)]
coverage: test semantics of "dummy" per-target flags

* tests/specflg-dummy.test: New test, ensuring that even "dummy"
per-target flags triggers the use of renamed objects.
* tests/Makefile.am (TESTS): Update.

Suggestion by Ralf Wildenhues.

13 years agotests defs: sanitize IFS
Stefano Lattarini [Sun, 23 Jan 2011 11:54:35 +0000 (12:54 +0100)]
tests defs: sanitize IFS

* tests/defs.in ($IFS): Define to <space>, <tab>, <newline>.
($sp): New variable, holding a single whitespace character.
($tab): New variable, holding a tabulation character.
($nl): New variable, holding a newline character.

13 years agotests: avoid instspc* failures due to make's whitespace trimming
Ralf Wildenhues [Sun, 23 Jan 2011 09:57:21 +0000 (10:57 +0100)]
tests: avoid instspc* failures due to make's whitespace trimming

* tests/instspc-tests.sh: Prepend './' when passing the test
characters, to avoid leading whitespace characters to be trimmed
from macros set from environment variables.  Fixes testsuite
failures with HP-UX and Tru64/OSF make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Sat, 22 Jan 2011 17:31:12 +0000 (18:31 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'tests-suffix-extend'
Ralf Wildenhues [Sat, 22 Jan 2011 17:27:30 +0000 (18:27 +0100)]
Merge branch 'tests-suffix-extend'

* tests-suffix-extend:
  tests: fix VPATH auto-expansion workarounds.
  tests: fix VPATH auto-expansion workarounds.

13 years agotests: fix VPATH auto-expansion workarounds.
Ralf Wildenhues [Sat, 22 Jan 2011 12:11:39 +0000 (13:11 +0100)]
tests: fix VPATH auto-expansion workarounds.

* tests/suffix10.test, tests/suffix11.test, tests/suffix12.test,
tests/suffix3.test, tests/suffix5.test, tests/suffix8.test:
Ensure $< is not surrounded by white space, to prevent Solaris
make from applying automatic VPATH text expansion.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'vpath-autoexp-fix-maint' into tests-suffix-extend
Ralf Wildenhues [Sat, 22 Jan 2011 17:22:18 +0000 (18:22 +0100)]
Merge branch 'vpath-autoexp-fix-maint' into tests-suffix-extend

* vpath-autoexp-fix-maint:
  tests: fix VPATH auto-expansion workarounds.

13 years agoMerge branch 'vpath-autoexp-fix-maint' into maint
Ralf Wildenhues [Sat, 22 Jan 2011 17:21:45 +0000 (18:21 +0100)]
Merge branch 'vpath-autoexp-fix-maint' into maint

* vpath-autoexp-fix-maint:
  tests: fix VPATH auto-expansion workarounds.

13 years agotests: fix VPATH auto-expansion workarounds.
Ralf Wildenhues [Sat, 22 Jan 2011 17:20:41 +0000 (18:20 +0100)]
tests: fix VPATH auto-expansion workarounds.

* tests/parallel-tests8.test, tests/suffix13.test:
Ensure $< is not surrounded by white space, to prevent Solaris
make from applying automatic VPATH text expansion.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'yflags-test-fixes' into maint
Stefano Lattarini [Sat, 22 Jan 2011 13:50:20 +0000 (14:50 +0100)]
Merge branch 'yflags-test-fixes' into maint

13 years agotests: fix spurious failures in yflags*.test
Stefano Lattarini [Sat, 22 Jan 2011 12:32:14 +0000 (13:32 +0100)]
tests: fix spurious failures in yflags*.test

* tests/yflags.test: Remove 'YACC' from the environment, so
that it won't be erroneously picked up by `make -e'.
* tests/yflags2.test: Likewise.

13 years agotests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R.
Ralf Wildenhues [Sat, 22 Jan 2011 12:46:27 +0000 (13:46 +0100)]
tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R.

* tests/fn99.test, tests/fn99subdir.test: Skip if an initial
`cp -R' of the subdir tree already fails; AIX 5.3 cp messes
up its internal memory when copying this tree.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoAdd comment to check-TESTS rule working around make 3.80 bug.
Ralf Wildenhues [Sat, 22 Jan 2011 10:16:06 +0000 (11:16 +0100)]
Add comment to check-TESTS rule working around make 3.80 bug.

* lib/am/check.am (check-TESTS): Update comment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: check for presence of cscope with redirected input.
Ralf Wildenhues [Fri, 21 Jan 2011 20:07:00 +0000 (21:07 +0100)]
tests: check for presence of cscope with redirected input.

* tests/defs: Add required test for cscope.
Fixes cscope3.test hang with Sun C 5.9 cscope.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'cygnus-test-fixes'
Ralf Wildenhues [Fri, 21 Jan 2011 18:56:50 +0000 (19:56 +0100)]
Merge branch 'cygnus-test-fixes'

* cygnus-test-fixes:
  tests: avoid false failure in cygnus-dependency-tracking.test.

13 years agotests: avoid false failure in cygnus-dependency-tracking.test.
Ralf Wildenhues [Fri, 21 Jan 2011 18:54:35 +0000 (19:54 +0100)]
tests: avoid false failure in cygnus-dependency-tracking.test.

* tests/cygnus-dependency-tracking.test: Be less restrictive
when grepping the compiler error message, GCC 3.4.6 on FreeBSD
does not mention an undefined symbol.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'tests-init'
Ralf Wildenhues [Thu, 20 Jan 2011 20:47:06 +0000 (21:47 +0100)]
Merge branch 'tests-init'

* tests-init:
  tests: revert not turning off errexit in instspc-test.sh

13 years agotests: revert not turning off errexit in instspc-test.sh
Ralf Wildenhues [Thu, 20 Jan 2011 20:46:22 +0000 (21:46 +0100)]
tests: revert not turning off errexit in instspc-test.sh

* tests/instspc-tests.sh: Turn off errexit while sourcing defs,
the scripts might still not be clean.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: less strict double-colon spy.test again.
Ralf Wildenhues [Thu, 20 Jan 2011 20:29:42 +0000 (21:29 +0100)]
tests: less strict double-colon spy.test again.

* tests/spy.test: We know BSD make doesn't invoke more than one
double-colon rule, so no need to expose that failure.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoinstall-sh: avoid Tru64 sh `test' operator precedence issues.
Ralf Wildenhues [Wed, 19 Jan 2011 20:50:02 +0000 (21:50 +0100)]
install-sh: avoid Tru64 sh `test' operator precedence issues.

* lib/install-sh: Protect file names and directory components
that consist of `=', `(', `)', or `!'.  Move protection as early
as possible, to avoid errors such as with Tru64 sh `test -z ='.
* tests/instsh2.test: Extend test to cover more possibilities.
Fixes 1.12 instspc-equal-install.test failure on Tru64/OSF 5.1.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agodocs: automake testsuite doesn't use TESTS_ENVIRONMENT anymore
Stefano Lattarini [Wed, 19 Jan 2011 19:20:37 +0000 (20:20 +0100)]
docs: automake testsuite doesn't use TESTS_ENVIRONMENT anymore

* doc/automake.texi (Simple Tests): Do not claim Automake uses
TESTS_ENVIRONMENT for the perl driver.  Instead, point to the
parallel-tests driver.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'tests-init'
Ralf Wildenhues [Wed, 19 Jan 2011 18:54:41 +0000 (19:54 +0100)]
Merge branch 'tests-init'

* tests-init:
  tests: work around Tru64 sh -e issues for instspc*.test.

13 years agotests: work around Tru64 sh -e issues for instspc*.test.
Ralf Wildenhues [Tue, 18 Jan 2011 21:58:18 +0000 (22:58 +0100)]
tests: work around Tru64 sh -e issues for instspc*.test.

Apparently, Tru64 sh does not like turning off errexit mode,
and gets confused.

* tests/defs: Document 'errexit' cleanliness requirement.
* tests/defs-static.in: Likewise.  Avoid error from command
substitution to abort instspc*.test with Tru64/OSF 5.1 sh.
* tests/instspc-tests.sh: Drop now-unneeded temporary errexit
dropping.  Add strategic '|| Exit' to let tests work on Tru64.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Wed, 19 Jan 2011 18:49:12 +0000 (19:49 +0100)]
Merge branch 'maint'

13 years agoAllow _AM_DEPENDENCIES to be used later in configure.
Ralf Wildenhues [Wed, 19 Jan 2011 18:46:27 +0000 (19:46 +0100)]
Allow _AM_DEPENDENCIES to be used later in configure.

* m4/depend.m4 (_AM_DEPENDENCIES): Remove a previously existing
conftest.dir before recreating it.
Fixes bug#7864.
Report by Eric Blake, from report by Scott McCreary against M4.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: avoid failure on w32 file systems.
Ralf Wildenhues [Tue, 18 Jan 2011 22:11:54 +0000 (23:11 +0100)]
tests: avoid failure on w32 file systems.

* tests/parallel-tests-unreadable-log.test: SKIP if file cannot
be turned unreadable.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'warns-win-over-strictness'
Stefano Lattarini [Tue, 18 Jan 2011 13:02:57 +0000 (14:02 +0100)]
Merge branch 'warns-win-over-strictness'

13 years agoMerge branch 'fix-perl-local-uscore' into warns-win-over-strictness
Stefano Lattarini [Tue, 18 Jan 2011 13:00:44 +0000 (14:00 +0100)]
Merge branch 'fix-perl-local-uscore' into warns-win-over-strictness

* fix-perl-local-uscore:
  Avoid local $_ perl variable, for Perl before 5.9.1.

13 years agotests: allow double-colon spy.test to work with HP-UX make.
Ralf Wildenhues [Sun, 16 Jan 2011 21:27:37 +0000 (22:27 +0100)]
tests: allow double-colon spy.test to work with HP-UX make.

* tests/spy.test: Fix comment typos.  Ensure prerequisites we
do not want to depend on are strictly older than the target.
Also test with a target out of date wrt. more than one rule.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'fix-perl-local-uscore'
Ralf Wildenhues [Mon, 17 Jan 2011 06:43:59 +0000 (07:43 +0100)]
Merge branch 'fix-perl-local-uscore'

* fix-perl-local-uscore:
  Avoid local $_ perl variable, for Perl before 5.9.1.

13 years agoAvoid local $_ perl variable, for Perl before 5.9.1.
Ralf Wildenhues [Sun, 16 Jan 2011 22:00:35 +0000 (23:00 +0100)]
Avoid local $_ perl variable, for Perl before 5.9.1.

* lib/Automake/Options.pm (_process_option_list): Do not
lexically localize $_.  Fixes bootstrap on AIX 5.1.

Bug introduced in commit `v1.11-622-gf90a06c'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Stefano Lattarini [Sun, 16 Jan 2011 19:42:31 +0000 (20:42 +0100)]
Merge branch 'maint'

13 years agotests: remove useless requirements from cond36.test
Stefano Lattarini [Sun, 16 Jan 2011 18:23:12 +0000 (19:23 +0100)]
tests: remove useless requirements from cond36.test

* tests/cond36.test ($required): Remove.
Since we are at it, add a trailing `:' command.

13 years agoMerge branch 'tests-vartypo-fixes'
Ralf Wildenhues [Sun, 16 Jan 2011 17:03:08 +0000 (18:03 +0100)]
Merge branch 'tests-vartypo-fixes'

* tests-vartypo-fixes:
  tests: avoid failing command substitution in errexit mode.

13 years agoMerge branch 'maint'
Ralf Wildenhues [Sun, 16 Jan 2011 17:02:51 +0000 (18:02 +0100)]
Merge branch 'maint'

13 years agoparallel-tests: work around Tru64/OSF 5.1 sh read bugs.
Ralf Wildenhues [Sun, 16 Jan 2011 12:48:17 +0000 (13:48 +0100)]
parallel-tests: work around Tru64/OSF 5.1 sh read bugs.

* lib/am/check.am ($(TEST_SUITE_LOG), recheck, recheck-html):
Test file readability before redirecting input from it, to avoid
exiting Tru64/OSF 5.1 sh which treats read as special builtin.
* tests/parallel-tests-unreadable-log.test: New test.
* tests/Makefile.am (TESTS): Update.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years ago* NEWS, README: Update copyright years.
Ralf Wildenhues [Sun, 16 Jan 2011 12:54:57 +0000 (13:54 +0100)]
* NEWS, README: Update copyright years.

13 years agoMerge branch 'tests-init'
Stefano Lattarini [Sun, 16 Jan 2011 14:57:23 +0000 (15:57 +0100)]
Merge branch 'tests-init'

13 years agotests: avoid failing command substitution in errexit mode.
Ralf Wildenhues [Sun, 16 Jan 2011 13:17:38 +0000 (14:17 +0100)]
tests: avoid failing command substitution in errexit mode.

* tests/vartypo2.test, tests/vartypos.test: Rewrite to not use
a command substitution with a nonzero exit status, that causes
IRIX and Tru64/OSF sh to fail the whole test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Sun, 16 Jan 2011 11:15:19 +0000 (12:15 +0100)]
Merge branch 'maint'

13 years agoFix parallel-tests.test failure with HP-UX make.
Ralf Wildenhues [Sun, 16 Jan 2011 11:12:51 +0000 (12:12 +0100)]
Fix parallel-tests.test failure with HP-UX make.

* tests/parallel-tests.test: Sleep inside inner tests, so logs
are newer than logs of tests they depend on, for HP-UX make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoRevert "tests: avoid new failures due to nonexistent makeinfo."
Ralf Wildenhues [Sun, 16 Jan 2011 11:14:03 +0000 (12:14 +0100)]
Revert "tests: avoid new failures due to nonexistent makeinfo."

This reverts commit 7a42b52f626f3b713196b5946b9bfbb3e173226b.

13 years agoMerge branch 'tests-texinfo' into maint
Ralf Wildenhues [Sun, 16 Jan 2011 09:11:25 +0000 (10:11 +0100)]
Merge branch 'tests-texinfo' into maint

* tests-texinfo:
  tests: avoid new failures due to nonexistent makeinfo.

13 years agotests: avoid new failures due to nonexistent makeinfo.
Ralf Wildenhues [Sun, 16 Jan 2011 09:09:57 +0000 (10:09 +0100)]
tests: avoid new failures due to nonexistent makeinfo.

* tests/txinfo.test, tests/txinfo8.test: Create stub info files
so 'missing --run makeinfo' won't fail even if makeinfo is not
present.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: hard errors in case of internal failure or signal caught
Stefano Lattarini [Fri, 12 Nov 2010 14:45:22 +0000 (15:45 +0100)]
tests: hard errors in case of internal failure or signal caught

* tests/defs: Exit with status 99 (hard error) rather than
1 (failure) on unexpected/internal errors, or when a signal
is caught by the client script.

13 years agoMerge branch 'warns-win-over-strictness'
Stefano Lattarini [Sat, 15 Jan 2011 14:49:52 +0000 (15:49 +0100)]
Merge branch 'warns-win-over-strictness'

* warns-win-over-strictness:
  Update docs w.r.t. warning and strictness options.
  More tests on warnings/strictness precedence.
  Update NEWS about the warnings-over-strictness precedence.
  Warnings win over strictness in AUTOMAKE_OPTIONS.
  Change signature of 'Automake::Options::_process_option_list()'.
  Add more tests about AUTOMAKE_OPTIONS.
  Warnings win over strictness in AM_INIT_AUTOMAKE.
  Warnings win over strictness on command line.
  More tests on warnings and strictness.
  New test on silent-rules mode and portability warnings.
  Add new tests on strictness and warnings precedence and overriding.

13 years agoTests defs: don't let useless variables leak in test scripts.
Stefano Lattarini [Fri, 12 Nov 2010 13:52:51 +0000 (14:52 +0100)]
Tests defs: don't let useless variables leak in test scripts.

* tests/defs ($priv_check_temp, $overwrite_status, $ro_dir_temp,
$create_status, $r2h, $libtool_found, $gettext_found, $aclocaldir,
$extra_includes): Unset once they've served their purpose.

13 years agoUpdate docs w.r.t. warning and strictness options.
Stefano Lattarini [Fri, 14 Jan 2011 14:18:36 +0000 (15:18 +0100)]
Update docs w.r.t. warning and strictness options.

* doc/automake.texi (Strictness): Document that some warnings are
turned off by default in `foreign' strictness.
(Options): Divide into new sections "Options generalities" and
"List of Automake options".  Fix typo (colon instead of full
stop).  Document option precedence (AUTOMAKE_OPTIONS wins over
AM_INIT_AUTOMAKE which wins over command line).  Also document
interactions between options specifying strictness and those
specifying warnings.

13 years agoMore tests on warnings/strictness precedence.
Stefano Lattarini [Fri, 24 Dec 2010 20:10:26 +0000 (21:10 +0100)]
More tests on warnings/strictness precedence.

* tests/warning-groups-win-over-strictness.test: New test, similar
to `warnings-win-over-strictness.test', but checking the explicit
catch-all warning flags (like `-Wall' and `-Wnone').
* tests/Makefile.am (TESTS): Update.

13 years agoUpdate NEWS about the warnings-over-strictness precedence.
Stefano Lattarini [Fri, 24 Dec 2010 17:52:05 +0000 (18:52 +0100)]
Update NEWS about the warnings-over-strictness precedence.

* NEWS: Automake explicit warning levels always take precedence
over the implicit warning levels implied by Automake strictness.

13 years agoWarnings win over strictness in AUTOMAKE_OPTIONS.
Stefano Lattarini [Mon, 20 Dec 2010 17:29:50 +0000 (18:29 +0100)]
Warnings win over strictness in AUTOMAKE_OPTIONS.

Ensure that, for what concerns the options specified in
AUTOMAKE_OPTIONS, explicitly-defined warnings always take
precedence over implicit strictness-implied warnings.

This finally fixes Automake bug#7669 a.k.a. PR/547.

* automake.in (handle_options): Call 'process_option_list'
only once per set of options.
* lib/Automake/Options.pm (process_global_option_list,
process_option_list): Add sanity checks.
($_options_processed, $_global_options_processed): New
internal variables, used by the sanity checks above.
* tests/warnings-win-over-strictness.test: Extend.

13 years agoChange signature of 'Automake::Options::_process_option_list()'.
Stefano Lattarini [Mon, 20 Dec 2010 15:59:08 +0000 (16:59 +0100)]
Change signature of 'Automake::Options::_process_option_list()'.

This only modifies internal details in the automake implementation,
bearing no externally visible effect, but preparing the way for the
final fix of Automake bug#7669 a.k.a. PR/547.

* lib/Automake/Options.pm (_process_option_list): Now accepts as
arguments a list of hash references with keys 'option' and 'where',
where 'option' is an option as might occur in AUTOMAKE_OPTIONS or
M_INIT_AUTOMAKE, and 'where' is the location where that occurred.
(process_option_list, process_global_option_list): Update.
* automake.in (handle_options, scan_autoconf_traces): Update.

13 years agoAdd more tests about AUTOMAKE_OPTIONS.
Stefano Lattarini [Mon, 20 Dec 2010 15:30:10 +0000 (16:30 +0100)]
Add more tests about AUTOMAKE_OPTIONS.

In view of soon-to-follow refactorings (still in the pursuit of a
fix for Automake bug#7669 a.k.a. PR/547), add some more tests on
AUTOMAKE_OPTIONS support, to prevent obvious regressions.

* tests/amopts-variable-expansion.test: New test.
* tests/amopts-location.test: Likewise.
* tests/Makefile.am (TESTS): Update.

13 years agoWarnings win over strictness in AM_INIT_AUTOMAKE.
Stefano Lattarini [Mon, 20 Dec 2010 13:57:27 +0000 (14:57 +0100)]
Warnings win over strictness in AM_INIT_AUTOMAKE.

This change ensures that, for what concerns the options specified
in AM_INIT_AUTOMAKE,  explicitly-defined warnings always take
precedence over implicit strictness-implied warnings.  Related to
Automake bug#7669 a.k.a. PR/547.

* lib/Automake/Options.pm (_process_option_list): Parse explicit
warnings only after the strictness level has been set.  Fix POD
documentation.
* tests/warnings-win-over-strictness.test: Extend.

13 years agoWarnings win over strictness on command line.
Stefano Lattarini [Mon, 20 Dec 2010 11:10:56 +0000 (12:10 +0100)]
Warnings win over strictness on command line.

This change ensures that, on the command line at least, explicitly
defined warnings always take precedence over implicit strictness
implied warnings.  Related to Automake bug#7669 a.k.a. PR/547.

* automake.in (parse_arguments): Parse warnings only after the
strictness level has been processed.
* tests/gnuwarn.test: Update, plus miscellaneous improvements.
* tests/warnings-win-over-strictness.test: New test.
* tests/Makefile.am (TESTS): Update.

13 years agoMore tests on warnings and strictness.
Stefano Lattarini [Thu, 13 Jan 2011 22:57:16 +0000 (23:57 +0100)]
More tests on warnings and strictness.

* tests/warnings-strictness-interactions.test: New test.
* tests/warnings-unknown.test: Likewise.
* tests/Makefile.am (TESTS): Update.

13 years agoNew test on silent-rules mode and portability warnings.
Stefano Lattarini [Mon, 20 Dec 2010 18:28:35 +0000 (19:28 +0100)]
New test on silent-rules mode and portability warnings.

* tests/silent-nowarn.test: New test.
* tests/Makefile.am (TESTS): Update.

13 years agoAdd new tests on strictness and warnings precedence and overriding.
Stefano Lattarini [Sun, 19 Dec 2010 23:46:21 +0000 (00:46 +0100)]
Add new tests on strictness and warnings precedence and overriding.

* tests/strictness-overriding.test: New test.
* tests/strictness-precedence.test: New test.
* tests/warnings-overriding.test: New test.
* tests/warnings-precedence.test: New test.
* tests/Makefile.am (TESTS): Update.

13 years agodocs: ensure example are separated with empty lines in the input
Ralf Wildenhues [Sat, 15 Jan 2011 13:54:51 +0000 (14:54 +0100)]
docs: ensure example are separated with empty lines in the input

* doc/automake.texi (Extending aclocal, Emacs Lisp, Rebuilding)
(API Versioning, Renamed Objects, Multiple Outputs): Add empty
lines before `@example' and after `@end example' lines, so info
output is rendered correctly, and a following @noindent honored.
Report by Stefano Lattarini.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'tests-remake-extend'
Ralf Wildenhues [Sat, 15 Jan 2011 13:35:36 +0000 (14:35 +0100)]
Merge branch 'tests-remake-extend'

* tests-remake-extend:
  Fix remake rule induced test failures with HP-UX make.

13 years agoFix remake rule induced test failures with HP-UX make.
Ralf Wildenhues [Sat, 15 Jan 2011 13:32:43 +0000 (14:32 +0100)]
Fix remake rule induced test failures with HP-UX make.

* tests/remake1a.test: Require GNU make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'tests-colon-extend'
Ralf Wildenhues [Sat, 15 Jan 2011 13:30:24 +0000 (14:30 +0100)]
Merge branch 'tests-colon-extend'

* tests-colon-extend:
  Fix remake rule-induced test failures with HP-UX make.
  tests: fix typos in colon6.test

13 years agoFix remake rule-induced test failures with HP-UX make.
Ralf Wildenhues [Sat, 15 Jan 2011 13:29:55 +0000 (14:29 +0100)]
Fix remake rule-induced test failures with HP-UX make.

* tests/colon6.test: Update timestamp of subdir Makefile, so we
do not spuriously invoke the nonexistent toplevel am--refresh
rule.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: fix typos in colon6.test
Ralf Wildenhues [Sat, 15 Jan 2011 13:26:01 +0000 (14:26 +0100)]
tests: fix typos in colon6.test

* tests/colon6.test: Fix typos.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: explain MSYS setup failure issue, improve test.
Ralf Wildenhues [Sat, 15 Jan 2011 11:40:02 +0000 (12:40 +0100)]
tests: explain MSYS setup failure issue, improve test.

* tests/defs: Add comment and failure message, improve fail
logic.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'fix-libobj-tests'
Ralf Wildenhues [Sat, 15 Jan 2011 12:06:21 +0000 (13:06 +0100)]
Merge branch 'fix-libobj-tests'

* fix-libobj-tests:
  Fix libobj2.test failure with non-GNU make: define $(AR).

13 years agoFix libobj2.test failure with non-GNU make: define $(AR).
Ralf Wildenhues [Sat, 15 Jan 2011 10:54:54 +0000 (11:54 +0100)]
Fix libobj2.test failure with non-GNU make: define $(AR).

* tests/libobj2.test: Ensure $(AR) is suitably defined.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: fix comment typo
Jim Meyering [Thu, 14 Oct 2010 14:39:22 +0000 (16:39 +0200)]
tests: fix comment typo

* tests/substref.test: Fix grammar in a comment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'sanity-sleep-fix-master'
Ralf Wildenhues [Sat, 15 Jan 2011 08:19:59 +0000 (09:19 +0100)]
Merge branch 'sanity-sleep-fix-master'

13 years agoRegenerate files.
Ralf Wildenhues [Sat, 15 Jan 2011 08:19:05 +0000 (09:19 +0100)]
Regenerate files.

13 years agotests: avoid spurious failures due to fork failure in test setup
Ralf Wildenhues [Sat, 15 Jan 2011 08:07:21 +0000 (09:07 +0100)]
tests: avoid spurious failures due to fork failure in test setup

* tests/defs: Ensure $me is always nonempty, to avoid spurious
failures on MinGW/MSYS in case the preceding sed command could
not be spawned.

13 years agoMerge branch 'sanity-sleep-fix-master'
Ralf Wildenhues [Sat, 15 Jan 2011 08:03:34 +0000 (09:03 +0100)]
Merge branch 'sanity-sleep-fix-master'

* sanity-sleep-fix-master:
  Avoid configure warnings from wait about reused PIDs.

13 years agoAvoid configure warnings from wait about reused PIDs.
Ralf Wildenhues [Sat, 15 Jan 2011 08:02:57 +0000 (09:02 +0100)]
Avoid configure warnings from wait about reused PIDs.

* m4/sanity.m4 (AM_SANITY_CHECK): Hide wait stderr output.
Fixes spurious failure of depcomp2.test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'tests-texinfo' into maint
Stefano Lattarini [Thu, 13 Jan 2011 20:35:05 +0000 (21:35 +0100)]
Merge branch 'tests-texinfo' into maint

13 years agotests: fix spurious failures in two texinfo tests
Stefano Lattarini [Thu, 13 Jan 2011 19:56:04 +0000 (20:56 +0100)]
tests: fix spurious failures in two texinfo tests

* tests/txinfo.test ($required): Add 'makeinfo'.
* tests/txinfo8.test: Create a dummy 'textutils.info' file, so
that make won't try to run makeinfo (which could be unavailable)
to build it.
Found by NixOS Hydra, reported by Ralf Wildenhues.

13 years agoMerge branch 'maint'
Ralf Wildenhues [Thu, 13 Jan 2011 19:23:36 +0000 (20:23 +0100)]
Merge branch 'maint'

13 years agoAvoid testsuite failures due to Autoconf Fortran change.
Ralf Wildenhues [Thu, 13 Jan 2011 19:21:39 +0000 (20:21 +0100)]
Avoid testsuite failures due to Autoconf Fortran change.

Autoconf v2.68-21-g727ce95 causes AC_F77_LIBRARY_LDFLAGS to
require computing the canonical host name.  Ensure config.guess
and config.sub files are present for respective checks.

* tests/compile_f_c_cxx.test: Add stub files.
* tests/flibs.test: Likewise.
* tests/fort4.test: Use $AUTOMAKE -a for installing files.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Stefano Lattarini [Wed, 12 Jan 2011 22:44:40 +0000 (23:44 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'doc-yacc-d-improve' into maint
Stefano Lattarini [Wed, 12 Jan 2011 22:44:02 +0000 (23:44 +0100)]
Merge branch 'doc-yacc-d-improve' into maint

13 years agoMerge branch 'yacc-work'
Stefano Lattarini [Wed, 12 Jan 2011 22:36:16 +0000 (23:36 +0100)]
Merge branch 'yacc-work'

13 years agoMerge branch 'doc-yacc-d-improve' into yacc-work
Stefano Lattarini [Wed, 12 Jan 2011 22:36:00 +0000 (23:36 +0100)]
Merge branch 'doc-yacc-d-improve' into yacc-work

13 years agodocs: clustered '-d' not recognized in YFLAGS
Stefano Lattarini [Wed, 12 Jan 2011 12:23:59 +0000 (13:23 +0100)]
docs: clustered '-d' not recognized in YFLAGS

This commit fixes automake bug#7828.

* doc/automake.texi (Yacc and Lex): Document that automake
recognizes '-d' in AM_YFLAGS only if it's not clustered with
other options.
From a report by Юрий Пухальский.

13 years agoMerge branch 'maint'
Stefano Lattarini [Tue, 11 Jan 2011 23:06:00 +0000 (00:06 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'yacc-work'
Stefano Lattarini [Tue, 11 Jan 2011 23:02:50 +0000 (00:02 +0100)]
Merge branch 'yacc-work'

13 years agotests: do not force yacc-requiring tests to use bison
Stefano Lattarini [Tue, 11 Jan 2011 19:03:05 +0000 (20:03 +0100)]
tests: do not force yacc-requiring tests to use bison

* tests/defs.in: New required entry 'yacc'.  Remove old
required entry 'bison'.
* tests/cond35.test ($required): Require yacc, not bison.
* tests/cond36.test: Likewise.
* tests/pr204.test: Likewise.
* tests/silent-many-gcc.test: Likewise.
* tests/silent-many-generic.test: Likewise.
* tests/silent-yacc-gcc.test: Likewise.
* tests/silent-yacc-generic.test: Likewise.
* tests/subpkg.test: Likewise.
* tests/suffix10.test: Likewise.
* tests/yacc-basic.test: Likewise.
* tests/yacc-clean.test: Likewise.
* tests/yacc-d-basic.test: Likewise.
* tests/yacc-d-vpath.test: Likewise.
* tests/yacc-dist-nobuild.test: Likewise.
* tests/yacc-nodist.test: Likewise.
* tests/yacc4.test: Likewise.
* tests/yacc6.test: Likewise.
* tests/yacc7.test: Likewise.
* tests/yacc8.test: Likewise.
* tests/yaccdry.test: Likewise.
* tests/yaccvpath.test: Likewise.

13 years agotests: more consistent checks about invalid options
Stefano Lattarini [Tue, 11 Jan 2011 02:17:10 +0000 (03:17 +0100)]
tests: more consistent checks about invalid options

* tests/aclocal.test: Grepping of automake stderr for messages
reporting invalid options made stricter.
* tests/no-outdir-option.test: Likewise.  Also, create a dummy
`Makefile.am', to ensure that the automake failures are really
caused only by unrecognized options.
* tests/automake.test: Added trailing `:' command.  Removed
redundant checks on `--help' and `--version' option (already
performed in the test `help*.test').

13 years agotests: enable 'errexit' shell flag by default.
Stefano Lattarini [Sat, 8 Jan 2011 18:40:04 +0000 (19:40 +0100)]
tests: enable 'errexit' shell flag by default.

* tests/defs: Enable `errexit' shell flag (near the end).
Removed redundant comment about the enabling of shell traces.
* tests/README (Writing test cases): Update, and use nicer
formatting in a couple of places.
* All tests: Adjusted by removing now-redundant calls to
'set -e'.

13 years agoMerge branch 'tests-autodist' into maint
Stefano Lattarini [Tue, 11 Jan 2011 21:50:21 +0000 (22:50 +0100)]
Merge branch 'tests-autodist' into maint