platform/upstream/automake.git
13 years agoCode cleanup after removal of option `--output-directory'.
Stefano Lattarini [Thu, 18 Nov 2010 17:09:14 +0000 (18:09 +0100)]
Code cleanup after removal of option `--output-directory'.

* automake.in ($output_directory): Remove, it's unconditionally
defined to `.' and used only ...
(generate_makefile): ... in this subroutine, which now has been
edited and simplified accordingly.

13 years agoRemove obsolete automake option `--output-directory'.
Stefano Lattarini [Thu, 18 Nov 2010 16:59:14 +0000 (17:59 +0100)]
Remove obsolete automake option `--output-directory'.

This option has been deprecated since version 1.7 (2002/2003).

* automake.in ($output_directory): Define to `.' unconditionally.
(parse_arguments): Remove handling of equivalent options `-o' and
`--output-directory'.
* tests/outdir.test: Removed.
* tests/no-outdir-option.test: New test.
* tests/Makefile.am (TESTS): Updated.
* NEWS: Updated.

13 years agoMerge branch 'maint'
Stefano Lattarini [Fri, 19 Nov 2010 20:24:43 +0000 (21:24 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'test-repeated-options'
Stefano Lattarini [Fri, 19 Nov 2010 20:20:03 +0000 (21:20 +0100)]
Merge branch 'test-repeated-options'

13 years agoAutomake::Config: remove extra trailing semicolon.
Stefano Lattarini [Fri, 19 Nov 2010 19:24:28 +0000 (20:24 +0100)]
Automake::Config: remove extra trailing semicolon.

* lib/Automake/Config.in: Remove extra trailing semicolon.

13 years agohelp4.test: fix botched heading comment.
Stefano Lattarini [Fri, 19 Nov 2010 18:52:48 +0000 (19:52 +0100)]
help4.test: fix botched heading comment.

* tests/help4.test: Fixed the heading comment, since it
didn't correctly describe what checks the testcase was
supposed to perform.

13 years agohelp2.test: add checks on aclocal too.
Stefano Lattarini [Fri, 19 Nov 2010 18:43:28 +0000 (19:43 +0100)]
help2.test: add checks on aclocal too.

* tests/help2.test: Check that also `aclocal --version' and
`aclocal --help' work with configure.in and acinclude.m4 both
broken.

13 years agoNew test on repeated automake options.
Stefano Lattarini [Fri, 19 Nov 2010 11:19:36 +0000 (12:19 +0100)]
New test on repeated automake options.

* tests/repeated-options.test: New test, check that automake
does not complain on repeated options, nor generate broken or
incorrect makefiles.
* tests/Makefile.am (TESTS): Updated.

13 years agoMerge branch 'maint'
Stefano Lattarini [Wed, 17 Nov 2010 19:23:13 +0000 (20:23 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'fix-silentf77-sun-fortran' into maint
Stefano Lattarini [Wed, 17 Nov 2010 19:19:19 +0000 (20:19 +0100)]
Merge branch 'fix-silentf77-sun-fortran' into maint

13 years agoMerge branch 'fix-silent5-sun-fortran' into maint
Stefano Lattarini [Wed, 17 Nov 2010 19:19:14 +0000 (20:19 +0100)]
Merge branch 'fix-silent5-sun-fortran' into maint

13 years agoFix spurious failures of silent5.test with Sun Fortran.
Stefano Lattarini [Wed, 17 Nov 2010 14:18:49 +0000 (15:18 +0100)]
Fix spurious failures of silent5.test with Sun Fortran.

* tests/silent5.test: Strip from the make output some verbose
messages possibly printed by the SunStudio fortran compilers,
to avoid spurious failures.  This bug has been there from the
very first version of this test script.

13 years agoFix spurious failures of silent-rules tests with Sun Fortran.
Stefano Lattarini [Wed, 17 Nov 2010 14:07:39 +0000 (15:07 +0100)]
Fix spurious failures of silent-rules tests with Sun Fortran.

* tests/silentf77.test: Strip from the make output some verbose
messages possibly printed by the SunStudio fortran compilers, to
avoid spurious failures.  Add a trailing `:' command.
* tests/silentf90.test: Likewise.

13 years agoMerge branch 'maint'
Stefano Lattarini [Tue, 16 Nov 2010 20:00:15 +0000 (21:00 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'fix-colon-tests-regression-on-aix' into maint
Stefano Lattarini [Tue, 16 Nov 2010 19:59:21 +0000 (20:59 +0100)]
Merge branch 'fix-colon-tests-regression-on-aix' into maint

13 years agoMerge branch 'fix-ansi-test-regression-on-aix' into maint
Stefano Lattarini [Tue, 16 Nov 2010 19:59:21 +0000 (20:59 +0100)]
Merge branch 'fix-ansi-test-regression-on-aix' into maint

13 years agoFix regression in colon{5,6}.test (failures on AIX 5.3).
Stefano Lattarini [Tue, 16 Nov 2010 19:02:54 +0000 (20:02 +0100)]
Fix regression in colon{5,6}.test (failures on AIX 5.3).

* tests/colon5.test: Also substitute `@SHELL@' with `$SHELL' when
post-processing the generated Makefile.in, to work around a bug
of AIX 5.3 make which doesn't allow setting the `$(SHELL)' macro
on the commend line.  Calls to `$MAKE' adjusted accordingly.
* tests/colon6.test: Likewise.

Regression introduced in commit v1.11-175-gf9fe878 "Modernize,
improve and/or extend tests `colon*.test", and reported by Ralf
Wildenhues.

13 years agobackcompat5.test: avoid '##'-style comments inside recipe commands.
Ralf Wildenhues [Tue, 16 Nov 2010 18:23:09 +0000 (19:23 +0100)]
backcompat5.test: avoid '##'-style comments inside recipe commands.

* tests/backcompat5.test: Remove double-hash comments
from makefile rule commands, they are not part of the
Automake API.  Fixes testsuite failure with Tru64 make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Tue, 16 Nov 2010 18:23:41 +0000 (19:23 +0100)]
Merge branch 'maint'

13 years agotests: avoid '##'-style comments inside recipe commands.
Ralf Wildenhues [Tue, 16 Nov 2010 18:22:10 +0000 (19:22 +0100)]
tests: avoid '##'-style comments inside recipe commands.

* tests/confh.test, tests/confh8.test: Remove
double-hash comments from makefile rule commands, they
are not part of the Automake API.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoFix regression in ansi.test (failure on AIX 5.3).
Stefano Lattarini [Tue, 16 Nov 2010 18:18:56 +0000 (19:18 +0100)]
Fix regression in ansi.test (failure on AIX 5.3).

* tests/ansi.test: Remove redundant hackish check done using a
hand-postprocessed Makefile.in.  This checs worked by setting
the `$(SHELL)' macro on the command line of make, but this is
not supported by the AIX 5.3 make implementation.

This bug has been lurking for a long time, and was activated by
commit v1.11-125-gc1f6cdb "Enable `errexit' shell flag in various
tests".  Report by Ralf Wildenhues.

13 years agoMerge branch 'tests-init'
Peter Rosin [Tue, 16 Nov 2010 12:08:23 +0000 (13:08 +0100)]
Merge branch 'tests-init'

13 years agoMerge branch 'msvc' into tests-init
Peter Rosin [Tue, 16 Nov 2010 12:08:06 +0000 (13:08 +0100)]
Merge branch 'msvc' into tests-init

13 years agoSkip MSVC oriented tests if the shell is not capable.
Peter Rosin [Tue, 16 Nov 2010 12:01:58 +0000 (13:01 +0100)]
Skip MSVC oriented tests if the shell is not capable.

* tests/defs.in: New required entry 'xsi-shell'.
* tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
Require a XSI capable shell.
Reported by Ralf Wildenhues.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
13 years agoFix latest ChangeLog entries.
Stefano Lattarini [Mon, 15 Nov 2010 11:32:02 +0000 (12:32 +0100)]
Fix latest ChangeLog entries.

13 years agolib/compile: update scriptversion.
Peter Rosin [Mon, 15 Nov 2010 09:37:26 +0000 (10:37 +0100)]
lib/compile: update scriptversion.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
13 years agocompile: clear the `eat' variable earlier.
Peter Rosin [Mon, 15 Nov 2010 09:27:55 +0000 (10:27 +0100)]
compile: clear the `eat' variable earlier.

* lib/compile: Clear the `eat' variable earlier.
* tests/compile3.test: Prevent regressions.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
13 years agoMerge branch 'sanity-sleep-fix-master'
Ralf Wildenhues [Sun, 14 Nov 2010 17:27:35 +0000 (18:27 +0100)]
Merge branch 'sanity-sleep-fix-master'

* sanity-sleep-fix-master:
  More stable configure output from sanity check.

13 years agoMore stable configure output from sanity check.
Ralf Wildenhues [Sun, 14 Nov 2010 17:26:43 +0000 (18:26 +0100)]
More stable configure output from sanity check.

* m4/sanity.m4 (AM_SANITY_CHECK): Always print check line
about ensuring newer files, even if we don't actually need
to wait any more.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agotests: work around dash quoting issue in case statements.
Ralf Wildenhues [Sun, 14 Nov 2010 17:22:50 +0000 (18:22 +0100)]
tests: work around dash quoting issue in case statements.

* tests/color.test, tests/color2.test: Quote variable in case
pattern, to avoid skipping tests with dash 0.5.5.1.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Sun, 14 Nov 2010 17:04:58 +0000 (18:04 +0100)]
Merge branch 'maint'

13 years agoRebuild menus in the manual.
Ralf Wildenhues [Sun, 14 Nov 2010 16:57:56 +0000 (17:57 +0100)]
Rebuild menus in the manual.

* doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
Thanks to Ian Lance Taylor for the suggestion.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoFix install-strip when $(STRIP) contains several words.
Ralf Wildenhues [Sun, 14 Nov 2010 16:53:49 +0000 (17:53 +0100)]
Fix install-strip when $(STRIP) contains several words.

* lib/am/install.am (install-strip): Update comment.  Use
separate sub-make invocations for empty and nonempty $(STRIP),
to fix quoting issues.
* tests/strip2.test, tests/strip3.test: New tests.
* tests/Makefile.am (TESTS): Adjust.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'backcompat-tests'
Stefano Lattarini [Sun, 14 Nov 2010 01:07:05 +0000 (02:07 +0100)]
Merge branch 'backcompat-tests'

13 years agoFix bug in test `backcompat6.test' (MSYS portability).
Stefano Lattarini [Fri, 12 Nov 2010 19:35:35 +0000 (20:35 +0100)]
Fix bug in test `backcompat6.test' (MSYS portability).

* tests/backcompat6.test (Makefile.am): Grep the output from the
test program, rather than diffing it, to avoid spurious failures
on MinGW/MSYS due to LF vs. CRLF line endings.

Reported by Ralf Wildenhues.

13 years agoDeprecate obsolete macro AM_WITH_REGEX.
Stefano Lattarini [Sat, 13 Nov 2010 11:21:28 +0000 (12:21 +0100)]
Deprecate obsolete macro AM_WITH_REGEX.

* m4/regex.m4: Document the `AM_WITH_REGEX' macro as obsolete,
and state that it should be removed two years from now.
(AM_WITH_REGEX): Raise an m4-time warning of the "obsolete"
category when this macro is used.
* doc/automake.texi (Public Macros): Move description of
`AM_WITH_REGEX' from here ...
(Obsolete Macros): ... to here, and declare it as obsolete
and "to be removed in a future version".
* tests/regex-obsolete.test: New test.
* tests/Makefile.am (TESTS): Update.

13 years agoMerge branch 'tests-man-fixes'
Stefano Lattarini [Fri, 12 Nov 2010 00:31:25 +0000 (01:31 +0100)]
Merge branch 'tests-man-fixes'

13 years agoMerge branch 'tests-misc-fixes-2'
Stefano Lattarini [Fri, 12 Nov 2010 00:24:41 +0000 (01:24 +0100)]
Merge branch 'tests-misc-fixes-2'

13 years agoMerge branch 'tests-init'
Stefano Lattarini [Fri, 12 Nov 2010 00:08:54 +0000 (01:08 +0100)]
Merge branch 'tests-init'

13 years agoTests defs: improve messages for skipped tests.
Stefano Lattarini [Thu, 11 Nov 2010 13:49:39 +0000 (14:49 +0100)]
Tests defs: improve messages for skipped tests.

* tests/defs: Give meaningful messages about the reasons of a
test skip; this is especially useful as this file is run without
verbose xtraces on.  Related reorderings in the code and new
comments.

13 years agoTests defs: move static definitions in a new file `defs-static'.
Stefano Lattarini [Fri, 5 Nov 2010 20:29:17 +0000 (21:29 +0100)]
Tests defs: move static definitions in a new file `defs-static'.

The new file is meant to be idempotent w.r.t. mutiple inclusions.

* tests/defs.in: Removed, its contents split among ...
* tests/defs-static.in: ... this new file ...
* tests/defs: ... and this new file, including the former.
* configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
`tests/defs-static'.
(AC_CONFIG_LINKS): Add `tests/defs'.
* tests/Makefile.am ($(parallel_tests)): Update.
($(instspc_tests)): Likewise.
* tests/.gitignore: Update.

13 years agoTests defs: $testsbuilddir is now AC_SUBST'ed.
Stefano Lattarini [Fri, 5 Nov 2010 17:10:41 +0000 (18:10 +0100)]
Tests defs: $testsbuilddir is now AC_SUBST'ed.

* tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
Add sanity check on $testsbuilddir, similar to those on
$testsrcdir and $top_testsrcdir.

13 years agoTests defs: do not print message "Running test $0" anymore.
Stefano Lattarini [Wed, 8 Sep 2010 15:50:19 +0000 (17:50 +0200)]
Tests defs: do not print message "Running test $0" anymore.

* tests/defs.in: Printing the message "=== Running test $0" at
the beginning of each tests made sense when Automake used the old
test-driver, which sent all the output directly to stdout/stderr.
Now that the parallel test-driver is used, which saves output of
each test in its correspoding log file, that old message is just
useless noise.

13 years agoTests defs: rename $curdir -> $testbuilddir
Stefano Lattarini [Fri, 5 Nov 2010 16:23:31 +0000 (17:23 +0100)]
Tests defs: rename $curdir -> $testbuilddir

* tests/defs.in: Rename $curdir to $testbuildir, for clarity and
consistency with $testsrcdir and $top_testsrcdir.

13 years agoTests defs: prefer "$curdir" over "`pwd`".
Stefano Lattarini [Fri, 5 Nov 2010 16:20:55 +0000 (17:20 +0100)]
Tests defs: prefer "$curdir" over "`pwd`".

* tests/defs.in: We already save the value of `pwd` in $curdir
early in the file, so there no need to recalculate it later, when
the current working directory is not changed.

13 years agoTests defs: use `$me' in more error messages.
Stefano Lattarini [Wed, 10 Nov 2010 22:53:28 +0000 (23:53 +0100)]
Tests defs: use `$me' in more error messages.

* tests/defs.in: Also use `$me' in error messages referring to
missing `defs' or `defs.in', since that variable is now defined
before those checks.

13 years agoTests defs: do not use `Exit' where plain `exit' suffices.
Stefano Lattarini [Wed, 10 Nov 2010 22:49:32 +0000 (23:49 +0100)]
Tests defs: do not use `Exit' where plain `exit' suffices.

* tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the
test when required libtool/gettext macros are not found, since
such skips would take place before the exit trap is installed.

13 years agoTests defs: improve and extends comments.
Stefano Lattarini [Wed, 10 Nov 2010 22:46:57 +0000 (23:46 +0100)]
Tests defs: improve and extends comments.

* tests/defs.in: Improve and extends some comments, especially in
relation with the changes introduced by the previous reordering.

13 years agoTests defs: various reorderings.
Stefano Lattarini [Wed, 2 Jun 2010 20:25:25 +0000 (22:25 +0200)]
Tests defs: various reorderings.

* tests/defs.in: Reordered various snippets of code in a
clearer way.

13 years agoMerge branch 'fix-yaccdry.test' into maint
Ralf Wildenhues [Wed, 10 Nov 2010 18:20:01 +0000 (19:20 +0100)]
Merge branch 'fix-yaccdry.test' into maint

* fix-yaccdry.test:
  Fix yaccdry.test failure: require bison.

13 years agoFix yaccdry.test failure: require bison.
Ralf Wildenhues [Wed, 10 Nov 2010 18:19:36 +0000 (19:19 +0100)]
Fix yaccdry.test failure: require bison.

* tests/yaccdry.test: Require bison.
Found by NixOS Hydra.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'backcompat-tests-fix'
Stefano Lattarini [Tue, 9 Nov 2010 11:24:22 +0000 (12:24 +0100)]
Merge branch 'backcompat-tests-fix'

13 years agoFix bug in test `backcompat4.test' (stale autom4te cache).
Stefano Lattarini [Tue, 9 Nov 2010 10:58:23 +0000 (11:58 +0100)]
Fix bug in test `backcompat4.test' (stale autom4te cache).

* tests/backcompat4.test: Remove stale autom4te cache directory
before re-running aclocal and automake.  Also, since we are at
it, be more verbose in displaying contents of generated files,
to ease debuggability.
Reported by Ralf Wildenhues.

13 years agoMinor improvements and extensions to various tests.
Stefano Lattarini [Mon, 28 Jun 2010 11:44:33 +0000 (13:44 +0200)]
Minor improvements and extensions to various tests.

* tests/defun.test: Also run autoconf and grep the generated
configure to make sure that aclocal truly picks up all the
required macros.
* tests/compile_f_c_cxx.test: Prefer trailing `:' over trailing
`Exit 0'.  Do not create useless dummy source files.  Do not set
useless `$(foo_LDADD)' variable in `Makefile.am'.  Do not call
useless macro `AC_F77_LIBRARY_LDFLAGS' in `configure.in'.
* tests/compile_f90_c_cxx.test: Likewise.
* tests/suffix10.test: Slighty stricter grepping of make output.
* tests/compile.test: Add trailing `:' command.
* tests/defun2.test: Likewise.
* tests/vars3.test: Likewise.
* tests/vartar.test: Likewise.
* tests/vars.test: Likewise.  Also, extend test by checking
that the definition of `MY_FLAGS*' variables is preserved in
the generated `Makefile.in'.
* tests/stamph2.test: Prefer trailing `:' over trailing `Exit 0'.
Use proper m4 quoting in `configure.in'.

13 years agoImprove and extend tests on man pages support.
Stefano Lattarini [Mon, 12 Jul 2010 15:37:33 +0000 (17:37 +0200)]
Improve and extend tests on man pages support.

* tests/man.test: Enable `errexit' shell flag, and related changes.
Make grepping of generated Makefile.in slighty stricter.
* tests/man3.test:  Add trailing `:' command.
* tests/man5.test: Prefer cat + here-doc over echo to append to
configure.in.
* tests/man2.test: Likewise, and add trailing `:' command.
* tests/man4.test: More thorough and consistent checking of make
error messages.  Place fake `help2man' program in a new `bin'
directory rather than in `.'.  Move the checks using the real
`help2man' program to ...
* tests/man6.test: ... this new test, and extend them.  This test
passes with GNU make and Solaris make, still fails with BSD make.
* tests/man7.test: New test, extracted from old man4.test, which
checks for a bug in maintainer-clean w.r.t. generated manpages.
* tests/man8.test: New test, extracted from old man4.test, which
checks for a bug in distcheck w.r.t. generated manpages.  Passes
with GNU make and Solaris make, still fails with BSD make.

13 years agoMerge branch 'maint'
Stefano Lattarini [Sun, 7 Nov 2010 14:23:41 +0000 (15:23 +0100)]
Merge branch 'maint'

13 years agoMerge branch 'pluseq-fix' into maint
Stefano Lattarini [Sun, 7 Nov 2010 14:06:34 +0000 (15:06 +0100)]
Merge branch 'pluseq-fix' into maint

13 years agoFix a bug in variable concatanation with `+='.
Stefano Lattarini [Sat, 6 Nov 2010 11:46:52 +0000 (12:46 +0100)]
Fix a bug in variable concatanation with `+='.

* lib/Automake/VarDef.pm (append): Remove extra backslash-escaped
newlines from the end of the variable's content, before appending
to it.
* tests/pluseq11.test: New test, exposing the bug.
* tests/Makefile.am (TESTS): Update.

Reported by Andy Wingo.

13 years agoMerge branch 'tests-misc-fixes-1'
Stefano Lattarini [Sun, 7 Nov 2010 10:50:06 +0000 (11:50 +0100)]
Merge branch 'tests-misc-fixes-1'

Conflicts:
tests/Makefile.am
tests/Makefile.in

13 years agoModernize, improve and/or tweak various test scripts.
Stefano Lattarini [Mon, 21 Jun 2010 16:07:09 +0000 (18:07 +0200)]
Modernize, improve and/or tweak various test scripts.

* tests/stamph2.test: Improve m4 quoting in `configure.in', and
prefer trailing `:' over trailing `Exit 0'.
* tests/syntax.test: Escape literal dots in grep regexps.
* tests/copy.test: Enable `errexit' shell flag.  Extend test by
checking with `test' utility that the script `install-sh' is
copied, but not symlinked.
* tests/depdist.test: Move setting of `errexit' shell flag earlier
in the script (just after inclusion of ./defs).  Avoid obsoleted
constructs in generated `configure.in'.  Prefer to do our checks
by running configure and make over grepping Makefile.in.
* tests/target-cflags: Move setting of `errexit' shell flag
earlier in the script (just after inclusion of ./defs). Use the
`configure.in' stub created by `./defs', rather than writing it
from scratch.
* tests/target-clash: Do not uselessly run autoconf.
* tests/ctarget1.test: Renamed ...
* tests/cond-basic.test: ... to this.  Use the `configure.in' stub
created by `./defs', rather than writing it from scratch.
Move setting of `errexit' shell flag earlier in the script (just
after inclusion of ./defs).  Other minor cosmetic changes.
* tests/Makefile.am (TESTS): Updated.

13 years agoMerge branch 'master' into tests-init
Stefano Lattarini [Sat, 6 Nov 2010 20:48:49 +0000 (21:48 +0100)]
Merge branch 'master' into tests-init

13 years agoMerge branch 'backcompat-tests'
Stefano Lattarini [Sat, 6 Nov 2010 19:49:22 +0000 (20:49 +0100)]
Merge branch 'backcompat-tests'

Conflicts:
tests/Makefile.in

13 years agoMerge branch 'maint'
Stefano Lattarini [Sat, 6 Nov 2010 19:32:48 +0000 (20:32 +0100)]
Merge branch 'maint'

13 years agoNew tests on obsoleted usages of automake/autoconf macros.
Stefano Lattarini [Fri, 18 Jun 2010 10:56:47 +0000 (12:56 +0200)]
New tests on obsoleted usages of automake/autoconf macros.

* tests/backcompat.test: New test script.
* tests/backcompat2.test: Likewise.
* tests/backcompat3.test: Likewise.
* tests/backcompat4.test: Likewise.
* tests/backcompat5.test: Likewise.
* tests/backcompat6.test: Likewise.
* tests/init.test: Extended and improved, esp. by trying more
combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
arguments.
* tests/Makefile.am (TESTS): Updated.

13 years agoFix bug in rules for creating vala vapi/header files.
Stefano Lattarini [Sat, 6 Nov 2010 17:26:53 +0000 (18:26 +0100)]
Fix bug in rules for creating vala vapi/header files.

* automake.in (lang_vala_finish_target): Add forgotten "fi" in an
if control structure in a generated make rules.  Bug introduced
by previous commit `v1.11-221-gd7c1679', and revealed by failure
of test `vala2.test'.

13 years agoFix potential bug in generated tests `instpc-*.test'.
Stefano Lattarini [Fri, 5 Nov 2010 20:14:30 +0000 (21:14 +0100)]
Fix potential bug in generated tests `instpc-*.test'.

This bug is due to the changes introduced by the recently-merged
"tests-init" branch.  In that branch, `tests/defs' didn't define
anymore `$srcdir', instead defininig directly `$testsrcdir'; but
the generated tests were using `$srcdir', hence the bug.
Luckily, since the Automake parallel test driver automatically
exports `srcdir' to a proper value, that prevented the bug from
manifesting itself.

* tests/Makefile.am ($(instspc_tests)): In the generated test
scripts, use `$testsrcdir', not `$srcdir'.

13 years agoFix ChangeLog after merge
Stefano Lattarini [Thu, 4 Nov 2010 23:03:10 +0000 (00:03 +0100)]
Fix ChangeLog after merge

13 years agoMerge branch 'tests-init'
Stefano Lattarini [Thu, 4 Nov 2010 23:00:21 +0000 (00:00 +0100)]
Merge branch 'tests-init'

Conflicts:
tests/ar-lib.test

13 years agoFix and document rules to not touch the tree with `make -n'.
Ralf Wildenhues [Sun, 3 Oct 2010 10:29:40 +0000 (12:29 +0200)]
Fix and document rules to not touch the tree with `make -n'.

* doc/automake.texi (Multiple Outputs): Document the problem of
modifications during dry-run execution, propose solution.
* NEWS: Update.
* automake.in (lang_vala_finish_target): Split recipe so the
stamp file is not removed with GNU `make -n'.
(lang_yacc_target_hook): Separate removal of parser output file
and header remaking.
* lib/am/lisp.am ($(am__ELCFILES)): Determine whether -n was
passed to make, take care not to remove any files in that case.
* lib/am/remake-hdr.am (%CONFIG_H%): Separate removal of
%STAMP% file from induced remaking of config header.
* tests/autohdrdry.test, tests/lispdry.test, tests/yaccdry.test:
New tests.
* tests/Makefile.am (TESTS): Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoOverhauled and modularized tests in `instspc.test'.
Stefano Lattarini [Sun, 6 Jun 2010 16:38:27 +0000 (18:38 +0200)]
Overhauled and modularized tests in `instspc.test'.

The test `instspc.test' was way too big and fragile.  Its running
time was very long.  It also produced a log that was nearly
unreadable due to its length, making it very difficult to find
out the reason for failures.
Also, it was too much monolithic, with a single (maybe spurious)
failure in a corner case causing the whole test to fail (even if
everything worked as expected in the other 99% of cases).
The present change should solve these problems, by separating
`instspc.test' into many smaller, self-contained, auto-generated
tests.

* tests/instspc.test: Removed.
* tests/instspc-tests.sh: New script, fullfilling a double role:
1. it generates a Makefile.am snippet `tests/instspc-tests.am',
containing the definition of a list of new tests which will take
over the older `instspc.test', and
2. it is sourced by said generated tests with proper parameters
pre-set, to run the "meat" of the checks.
This apparent abuse is indeed required because the test generation
code and test execution code are inevitably interwined.
* tests/Makefile.am ($(srcdir)/instspc-tests.am): Include this
snippet, which (among the other things) defines ...
(instspc_tests): ... this new macro, containing the list of the
newly generated `instspc*.test' tests, and ...
(instspc_xfail_tests): ... this new macro, containing the list
of the `instspc*.test' tests expected to fail.
($(instspc_tests)): New rule, generates the `instspc*.test' tests.
($(instspc_tests:.test=.log)): New rule, registers the dependency
of all `instspc*.test' tests on the `instspc-tests.sh' script.
(TESTS): Add `$(instspc_tests)', remove `instspc.test'.
(XFAIL_TESTS): Add `$(xfail_instspc_tests)'.
(EXTRA_DIST): Distribute instspc-tests.sh.
(MAINTAINERCLEANFILES): Added $(instspc_tests).
Other minor cosmetic changes.
* bootstrap: Generate instspc-tests.am.
* tests/.gitignore: Updated.

13 years agoMerge branch 'maint'
Ralf Wildenhues [Mon, 1 Nov 2010 21:35:09 +0000 (22:35 +0100)]
Merge branch 'maint'

13 years agoAdd FAQ entry for bug reporting instructions.
Ralf Wildenhues [Thu, 14 Oct 2010 04:14:20 +0000 (06:14 +0200)]
Add FAQ entry for bug reporting instructions.

* doc/automake.texi (Reporting Bugs): New section.
(Introduction): Refer to it.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoRegenerate Makefile.in.
Ralf Wildenhues [Wed, 13 Oct 2010 20:57:23 +0000 (22:57 +0200)]
Regenerate Makefile.in.

13 years agoMerge branch 'msvc'
Peter Rosin [Thu, 7 Oct 2010 20:47:11 +0000 (22:47 +0200)]
Merge branch 'msvc'

13 years agodepcomp: add new one-pass depmode for MSVC 7 and later.
Peter Rosin [Thu, 7 Oct 2010 20:27:53 +0000 (22:27 +0200)]
depcomp: add new one-pass depmode for MSVC 7 and later.

* lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
make use of the -showIncludes option added in MSVC 7.
* m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
support the -o option.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
13 years agodist-xz, dist-bzip2: don't hard-code -9: honor envvar settings
Jim Meyering [Sat, 2 Oct 2010 20:30:02 +0000 (22:30 +0200)]
dist-xz, dist-bzip2: don't hard-code -9: honor envvar settings

* lib/am/distdir.am (dist-xz): Do not hard-code xz's -9: that
made it impossible to override.  Instead, use its XZ_OPT envvar,
defaulting to -9 if not defined.  Thus no change in behavior
when XZ_OPT is not set, and now, this rule honors the setting
of that envvar when it is set.  Suggested by Lasse Collin.
(dist-bzip2): Likewise for it's corresponding envvar: BZIP2.
* NEWS (Miscellaneous changes): Mention it.
* doc/automake.texi (The Types of Distributions): Describe the
newly enabled environment variables.

13 years agoMerge branch 'maint'
Stefano Lattarini [Tue, 5 Oct 2010 15:29:39 +0000 (17:29 +0200)]
Merge branch 'maint'

13 years agoAdd support for newer python versions.
Stefano Lattarini [Mon, 4 Oct 2010 16:50:53 +0000 (18:50 +0200)]
Add support for newer python versions.

* m4/python.m4 (AM_PATH_PYTHON): Add python2.7 and python3.2 to
_AM_PYTHON_INTERPRETER_LIST.  Since we are at it, break a long
line and fix indentation.
* THANKS: Updated.

From a report by Thomas Klausner.

13 years agoAdd test for `AM_WITH_DMALLOC' macro.
Stefano Lattarini [Tue, 21 Sep 2010 10:54:25 +0000 (12:54 +0200)]
Add test for `AM_WITH_DMALLOC' macro.

* tests/dmalloc.test: New test.
* tests/Makefile.am (TESTS): Update.

13 years agoFix nits and bugs in tests `help*.test'.
Stefano Lattarini [Mon, 4 Oct 2010 16:17:22 +0000 (18:17 +0200)]
Fix nits and bugs in tests `help*.test'.

* tests/help4.test: Fix broken sed commands used to strip `-W...'
flags away from "$AUTOMAKE" and "$ACLOCAL".
* tests/help3.test: Likewise, and fix a botched comment.
* tests/help.test: Likewise.  Also, use "AUTOMAKE_fails ..."
instead of "$AUTOMAKE ... && Exit 1", for consistency and to
please maintainet-check.
* tests/help2.test: Likewise.

13 years agoImprove tests `help*.test' (also fixes maintcheck failures).
Stefano Lattarini [Sat, 2 Oct 2010 17:33:44 +0000 (19:33 +0200)]
Improve tests `help*.test' (also fixes maintcheck failures).

* tests/help.test: To run automake, use `$AUTOMAKE' with all `-W'
flags stripped away rather than hard-coded `automake-$APIVERSION',
to better honour user-overrides.  Similarly for aclocal.
* tests/help2.test: Likewise.
* tests/help3.test: Likewise.
* tests/help4.test: Likewise.

From a suggestion by Ralf Wildenhues.

13 years agoMerge branch 'msvc'
Ralf Wildenhues [Sun, 3 Oct 2010 10:01:47 +0000 (12:01 +0200)]
Merge branch 'msvc'

* msvc:
  tests: fix ar-lib.test for echo that interprets backslashes.

13 years agotests: fix ar-lib.test for echo that interprets backslashes.
Ralf Wildenhues [Sun, 3 Oct 2010 09:56:20 +0000 (11:56 +0200)]
tests: fix ar-lib.test for echo that interprets backslashes.

* tests/ar-lib.test: Use printf instead of echo.  Avoid test -a.
More robust quoting.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agomaintainer-check coverage for variables before rules.
Ralf Wildenhues [Sun, 3 Oct 2010 09:45:31 +0000 (11:45 +0200)]
maintainer-check coverage for variables before rules.

* Makefile.am (sc_ensure_testsuite_has_run): Suggest keeping
around the test directories.
(sc_tests_makefile_variable_order): New rule with a heuristic to
catch ordering violations.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Sun, 3 Oct 2010 09:44:13 +0000 (11:44 +0200)]
Merge branch 'maint'

13 years agoDocument and fix expansion of variables before rules.
Ralf Wildenhues [Sun, 3 Oct 2010 09:42:12 +0000 (11:42 +0200)]
Document and fix expansion of variables before rules.

* doc/automake.texi (General Operation): Document that variables
are expanded before rules.
* lib/am/check.am (am__check_post): Reword a bit so it does not
get matched as a rule.
Suggestion by Ben Pfaff.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoCoverage and minor fixes for variable typo detection.
Ralf Wildenhues [Sat, 2 Oct 2010 18:26:47 +0000 (20:26 +0200)]
Coverage and minor fixes for variable typo detection.

* automake.in (check_typos): Remove `EXTRA_' prefix when
computing canonical name.
* tests/vartypo2.test, tests/vartypos.test: New tests.
* tests/Makefile.am (TESTS): Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoImplement EXTRA_maude_DEPENDENCIES for programs and libraries.
Ralf Wildenhues [Sat, 2 Oct 2010 18:25:53 +0000 (20:25 +0200)]
Implement EXTRA_maude_DEPENDENCIES for programs and libraries.

* automake.in (handle_programs, handle_libraries)
(handle_ltlibraries): Mark EXTRA_*_DEPENDENCIES as recognized.
* doc/automake.texi (Linking, Program and Library Variables)
(LIBOBJS): Document EXTRA_*_DEPENDENCIES.
* lib/am/library.am (%LIBRARY%): Also depend on
$(EXTRA_%XLIBRARY%_DEPENDENCIES).
* lib/am/ltlibrary.am (%LTLIBRARY%): Also depend on
(%XLTLIBRARY%_DEPENDENCIES).
* lib/am/program.am (%PROGRAM%%EXEEXT%): Also depend on
$(EXTRA_%XPROGRAM%_DEPENDENCIES).
* tests/extradep.test, tests/extradep2.test: New tests.
* tests/Makefile.am (TESTS): Update.
* NEWS: Update.
Suggested by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Ralf Wildenhues [Sat, 2 Oct 2010 18:07:08 +0000 (20:07 +0200)]
Merge branch 'maint'

13 years agoRegenerate tree with Autoconf 2.68.
Ralf Wildenhues [Sat, 2 Oct 2010 18:04:34 +0000 (20:04 +0200)]
Regenerate tree with Autoconf 2.68.

13 years agoMerge branch 'sanity-sleep-fix-master'
Ralf Wildenhues [Sat, 2 Oct 2010 18:00:02 +0000 (20:00 +0200)]
Merge branch 'sanity-sleep-fix-master'

* sanity-sleep-fix-master:
  tests: avoid running into timing issues due to sanity change.
  Fix timestamp issues by ensuring configure takes at least a second.

13 years agotests: avoid running into timing issues due to sanity change.
Ralf Wildenhues [Sat, 2 Oct 2010 17:58:39 +0000 (19:58 +0200)]
tests: avoid running into timing issues due to sanity change.

* tests/acloca10.test, tests/acloca18.test, tests/aclocal9.test:
Insert strategic sleep before aclocal reruns, to ensure files
are newer.
* tests/python11.test: Use --force for repeated autotools runs.
Reports from the NixOS Hydra build daemon via Ludovic Courtès.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoFix timestamp issues by ensuring configure takes at least a second.
Ralf Wildenhues [Sat, 2 Oct 2010 16:58:56 +0000 (18:58 +0200)]
Fix timestamp issues by ensuring configure takes at least a second.

* m4/sanity.m4 (AM_SANITY_CHECK): If we didn't sleep here,
start a sleep in the background and wait for it to finish
before creating config.status, hopefully fixing all spurious
testsuite failures involving botched time stamps.
* NEWS: Update.
Reports by Ludovic Courtès, Peter Breitenlohner, and others.

13 years agoMerge branch 'maint'
Ralf Wildenhues [Sat, 2 Oct 2010 16:43:01 +0000 (18:43 +0200)]
Merge branch 'maint'

13 years agoMerge branch 'fix-tests-empty-regression' into maint
Ralf Wildenhues [Sat, 2 Oct 2010 16:38:34 +0000 (18:38 +0200)]
Merge branch 'fix-tests-empty-regression' into maint

* fix-tests-empty-regression:
  Revert "parallel-tests: avoid command-line length limit issue."

13 years agoRevert "parallel-tests: avoid command-line length limit issue."
Ralf Wildenhues [Sun, 26 Sep 2010 07:21:14 +0000 (09:21 +0200)]
Revert "parallel-tests: avoid command-line length limit issue."

This reverts commit 24e3b4ee2f8cb9f72dd94a05a893f3d4e88b7835,
because it re-opened the bug fixed by v1.11-10-g218e678.

2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

parallel-tests: avoid command-line length limit issue.
* automake.in (handle_tests): New argument $makefile, new
substitution %MAKEFILE%.
(generate_makefile): Adjust.
* lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
sanitized TEST_LOGS value as makefile snippet on standard
input to $(MAKE), to avoid exceeding the command line limit on
w32 (MSYS).
* NEWS: Update.
Report by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13 years agoMerge branch 'maint'
Stefano Lattarini [Sun, 26 Sep 2010 14:39:45 +0000 (16:39 +0200)]
Merge branch 'maint'

Conflicts:
Makefile.am
Makefile.in
lib/Automake/Configure_ac.pm

13 years agoExtend tests on `--help' and `--version' options.
Stefano Lattarini [Sat, 25 Sep 2010 15:07:27 +0000 (17:07 +0200)]
Extend tests on `--help' and `--version' options.

* tests/help.test: Create a new empty directory and chdir into
it, rather than removing already present files.  Run the aclocal
and automake wrapper scripts directly, instead of relying on
$AUTOMAKE and $ACLOCAL.  Be sure to correctly match literal dots
in aclocal's and automake's stderr.  Add a trailing `:' command.
* tests/help2.test: New test, checking that options `--help' and
`--version' works in directories with broken `configure.in'.
* tests/help3.test: New test, checking that options `--help' and
`--version' take precedence on the other options.
* tests/help4.test: New test, checking that the first among the
`--help' and `--version' options to be specified on the command
line wins.
* tests/Makefile.am (TESTS): Updated.

13 years agoTestsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.
Stefano Lattarini [Sat, 25 Sep 2010 19:31:06 +0000 (21:31 +0200)]
Testsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.

* tests/compile2.test: Do no uselessly (implicitly) repeat the
computation of PATH_SEPARATOR again.
* tests/instmany-mans.test: Use `$PATH_SEPARATOR', not `:', when
extending/redefining PATH.
* tests/instmany-python.test: Likewise.
* tests/instmany.test: Likewise.
* tests/man4.test: Likewise.
* tests/mkinst3.test: Likewise.
* tests/mmodely.test: Likewise.
* tests/multlib.test: Likewise.
* tests/txinfo30.test: Likewise.
* tests/README (Section "Writing test cases" subsection "Do"):
Updated.
* Makefile.am (sc_tests_PATH_SEPARATOR): New maintainer check.
(syntax_check_rules): Updated.

13 years agoTestsuite: new vars `$PATH_SEPARATOR' and `$APIVERSION'.
Stefano Lattarini [Sat, 25 Sep 2010 14:53:13 +0000 (16:53 +0200)]
Testsuite: new vars `$PATH_SEPARATOR' and `$APIVERSION'.

* tests/defs.in ($APIVERSION):  New AC_SUBST'd variable.
($ACLOCAL, $AUTOMAKE): Use it.
($PATH_SEPARATOR):  New AC_SUBST'd variables.
($PATH): Use it.