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.
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>
Stefano Lattarini [Sun, 16 Jan 2011 19:42:31 +0000 (20:42 +0100)]
Merge branch 'maint'
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.
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.
Ralf Wildenhues [Sun, 16 Jan 2011 17:02:51 +0000 (18:02 +0100)]
Merge branch 'maint'
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>
Ralf Wildenhues [Sun, 16 Jan 2011 12:54:57 +0000 (13:54 +0100)]
* NEWS, README: Update copyright years.
Stefano Lattarini [Sun, 16 Jan 2011 14:57:23 +0000 (15:57 +0100)]
Merge branch 'tests-init'
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>
Ralf Wildenhues [Sun, 16 Jan 2011 11:15:19 +0000 (12:15 +0100)]
Merge branch 'maint'
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>
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.
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.
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>
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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>
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.
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>
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
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>
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>
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>
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).
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>
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>
Ralf Wildenhues [Sat, 15 Jan 2011 08:19:59 +0000 (09:19 +0100)]
Merge branch 'sanity-sleep-fix-master'
Ralf Wildenhues [Sat, 15 Jan 2011 08:19:05 +0000 (09:19 +0100)]
Regenerate files.
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.
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.
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>
Stefano Lattarini [Thu, 13 Jan 2011 20:35:05 +0000 (21:35 +0100)]
Merge branch 'tests-texinfo' into maint
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.
Ralf Wildenhues [Thu, 13 Jan 2011 19:23:36 +0000 (20:23 +0100)]
Merge branch 'maint'
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>
Stefano Lattarini [Wed, 12 Jan 2011 22:44:40 +0000 (23:44 +0100)]
Merge branch 'maint'
Stefano Lattarini [Wed, 12 Jan 2011 22:44:02 +0000 (23:44 +0100)]
Merge branch 'doc-yacc-d-improve' into maint
Stefano Lattarini [Wed, 12 Jan 2011 22:36:16 +0000 (23:36 +0100)]
Merge branch 'yacc-work'
Stefano Lattarini [Wed, 12 Jan 2011 22:36:00 +0000 (23:36 +0100)]
Merge branch 'doc-yacc-d-improve' into yacc-work
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 Юрий Пухальский.
Stefano Lattarini [Tue, 11 Jan 2011 23:06:00 +0000 (00:06 +0100)]
Merge branch 'maint'
Stefano Lattarini [Tue, 11 Jan 2011 23:02:50 +0000 (00:02 +0100)]
Merge branch 'yacc-work'
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.
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').
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'.
Stefano Lattarini [Tue, 11 Jan 2011 21:50:21 +0000 (22:50 +0100)]
Merge branch 'tests-autodist' into maint
Stefano Lattarini [Mon, 10 Jan 2011 22:56:43 +0000 (23:56 +0100)]
tests: add checks on automatically-distributed files
Related to automake bug#7819.
* tests/autodist.test: New test.
* tests/autodist-subdir.test: Likewise.
* tests/autodist-acconfig.test: Likewise.
* tests/autodist-acconfig-no-subdir.test: Likewise.
* tests/autodist-aclocal-m4.test: Likewise.
* tests/autodist-config-headers.test: Likewise.
* tests/autodist-configure-no-subdir.test: Likewise.
* tests/autodist-stamp-vti.test: Likewise.
* tests/Makefile.am (TESTS): Update.
Stefano Lattarini [Tue, 11 Jan 2011 12:24:06 +0000 (13:24 +0100)]
Merge branch 'maint'
Stefano Lattarini [Tue, 11 Jan 2011 12:12:05 +0000 (13:12 +0100)]
tests: work around a texi+cygnus bug causing a spurious XFAIL
* tests/txinfo5b.test: New test, like txinfo5.test but calling
automake with the `-Wno-override' option to work around a bug
in the texinfo + cygnus interaction.
* tests/txinfo5.test: Update heading comments.
* tests/Makefile.am (TEST): Updated.
Dave Hart [Sun, 9 Jan 2011 18:05:07 +0000 (19:05 +0100)]
Fix another typo in Rule.pm comment.
* lib/Automake/Rule.pm: Fix typo.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini [Tue, 11 Jan 2011 01:35:38 +0000 (02:35 +0100)]
Merge branch 'maint'
Conflicts:
ChangeLog
Apparently I messed up doing a previous 'git pull', so that the "latest"
maint I've merged into master (and pushed!) wasn't a fast-forward from
origin/maint. Yay for me. This merge should help cleaning up the mess.
Stefano Lattarini [Tue, 11 Jan 2011 01:27:30 +0000 (02:27 +0100)]
Merge branch 'maint' of ssh://git.sv.gnu.org/srv/git/automake into maint
Apparently I messed up doing a previous 'git pull', so that the "latest"
maint I've merged into master (and pushed!) wasn't a fast-forward from
origin/maint. Yay for me. This merge should help cleaning up the mess.
Stefano Lattarini [Tue, 11 Jan 2011 01:20:19 +0000 (02:20 +0100)]
tests: texinfo unrecognized extensions
* tests/txinfo-unrecognized-extension.test: New test.
* tests/Makefile.am (TESTS): Update.
Stefano Lattarini [Tue, 11 Jan 2011 01:07:51 +0000 (02:07 +0100)]
Merge branch 'maint'
Conflicts:
tests/instdir-texi.test
tests/txinfo22.test
Stefano Lattarini [Tue, 11 Jan 2011 00:59:29 +0000 (01:59 +0100)]
Merge branch 'tests-texinfo' into maint
Stefano Lattarini [Fri, 24 Dec 2010 01:56:35 +0000 (02:56 +0100)]
Improve, extend and tweak tests on Texinfo support.
* tests/instdir-texi.test: Add a call to `ls -l' after that to
`make', for debugging. When looking for required tools, do not
redirect the output of "$tool --help" to /dev/null, and do not
uselessly run it in a subshell.
* tests/txinfo.test: Rewritten to run autoconf, ./configure and
make. All checks moved into Makefile.am.
* tests/txinfo8.test: Likewise, and modernize the generated
configure.in.
* tests/txinfo2.test: Moved checks into Makefile.am, and other
minor improvements.
* tests/txinfo5.test: Enable `errexit' shell flag, and related
changes. Add trailing `:' command.
* tests/txinfo6.test: Likewise, and make grepping of generated
Makefile.in stricter.
* tests/txinfo7.test: Enable `errexit' shell flag, and related
changes. Add trailing `:' command. Do not add unnecessary stuff
to Makefile.am.
* tests/txinfo9.test: Verify that more targets which are expected
to be generated only once really are. Make grepping less strict,
to avoid exposing too much internal details. More minor changes.
* tests/txinfo16.test: Add trailing `:'. Prefer cat over echo
for appending to configure.in. Updated/fixed heading comments.
* tests/txinfo23.test: Likewise, and extended a little by making
it check that no info file is created in the $(srcdir).
* tests/txinfo24.test: Likewise.
* tests/txinfo25.test: Likewise.
* tests/txinfo18.test: Add trailing `:'. Prefer cat over echo
for appending to configure.in. Also, check that index files are
cleaned also by "make clean", not only by "make distclean".
* tests/txinfo22.test: Prefer `$me' over hard-coded test name,
and added trailing `:' command. This testcase also used to check
that automake ignores in-line comments when using variables, but
preserves them in the output; these checks (added in commit
"Release-1-7f-4-g9177ef8") do not really pertain to this test,
so they have been moved ...
* tests/comments-in-var-defn.test: ... into this new test.
* tests/txinfo4.test: Escape literal dots in grep regexps. Add
trailing `:' command.
* tests/txinfo29.test: Likewise. Relax grepping of generated
Makefile.in w.r.t. whitespaces. Prefer `cat' over `echo' to
append to configure.in.
* tests/txinfo3.test: Likewise.
* tests/vtexi.test: Improve grepping of Makefile.in (sometimes
make it stricter, sometimes laxer). Move `set -e' setting just
after the inclusion of ./defs. De-uglify a sed command. Other
minor cosmetic improvements.
* tests/vtexi2.test: Make grepping of Makefile.in stricter. Add
trailing `:' command.
* tests/vtexi3.test: New test on version.texi support.
* tests/vtexi4.test: Likewise.
* tests/Makefile.am (TESTS): Updated.
Stefano Lattarini [Tue, 11 Jan 2011 00:10:44 +0000 (01:10 +0100)]
tests: fix spurious failure in 'tests/yflags-conditional.test'
* tests/yflags-conditional.test: Filter out message "warnings are
treated as errors" from automake stderr, to avoid a false positive
when grepping for extraneous warning messages.
Stefano Lattarini [Tue, 11 Jan 2011 00:00:13 +0000 (01:00 +0100)]
Merge branch 'yacc-work'
Stefano Lattarini [Mon, 10 Jan 2011 14:50:35 +0000 (15:50 +0100)]
yacc: warn about conditional content in *YFLAGS variables
This commit fixes automake bug#7804.
* automake.in (lang_yacc_target_hook): Warn if any of the relevant
*YFLAGS variables has conditional contents (not only a conditional
definition). Related refactoring.
* NEWS: Updated.
* tests/yflags-conditional.test: Updated and extended.
* tests/yflags-conditional-force.test: New test.
* tests/Makefile.am (TESTS): Updated.
Peter Rosin [Sun, 9 Jan 2011 17:54:36 +0000 (18:54 +0100)]
Fix another typo in Rule.pm comment.
* lib/Automake/Rule.pm: Fix typo.
Report by Peter Rosin.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini [Sun, 9 Jan 2011 15:20:34 +0000 (16:20 +0100)]
Merge branch 'yacc-work'
Stefano Lattarini [Fri, 7 Jan 2011 20:52:56 +0000 (21:52 +0100)]
yacc: support variable expansions in *YFLAGS definition.
This change fixes automake bug#7800.
* automake.in (lang_yacc_target_hook): Use 'value_as_list_recursive'
instead of 'variable_value' to get the value of *YFLAGS variables.
Related changes.
($DASH_D_PATTERN): Removed.
* tests/Makefile.am (XFAIL_TESTS): Remove yflags-var-expand.test.
* tests/yacc-clean.test: Remove workaround for now-fixed bug.
* NEWS: Update.
Stefano Lattarini [Fri, 7 Jan 2011 19:52:17 +0000 (20:52 +0100)]
yacc: more tests on *YFLAGS support
* tests/yflags-var-expand.test: New test, still xfailing. It
exposes automake bug#7800 -- "automake fails to honor `-d' in
AM_YFLAGS when variable expansions are involved".
* tests/yflags-d-false-positive.test: New test, checking that
automake do not spuriously see `-d' in *YFLAGS when that isn't
really there.
* tests/yflags-force-override.test: New test, checking that
automake can cope with definition of the YFLAGS variable in
Makefile.am (even if that is an extremely bad practice, as that
variable is user-reserved).
* tests/yflags-cmdline-override.test: New test, checking that
automake can cope with user-redefinition of YFLAGS at configure
time and/or at make time.
* tests/yflags-conditional.test: New test, checks that automake
warns on conditionally-defined *YFLAGS variables.
* tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
Stefano Lattarini [Wed, 5 Jan 2011 15:07:56 +0000 (16:07 +0100)]
yacc: extend and improve tests
* tests/yacc-basic.test: Also check that the intermediate C file
is mentioned in the generated Makefile.in, and that it is created
by the first make invocation.
* tests/yacc3.test: Test removed, superseded by ...
* tests/yacc-d-basic.test: ... this new test.
* tests/yacc2.test: Add reference to that new test in the heading
comments.
* tests/yacc-d-vpath.test: New test.
* tests/yaccvpath.test: Updated heading comments. Do not require
gcc anymore, as any working C compiler should be enough. Remove
redundant comments.
* tests/yacc-nodist.test: New test.
* tests/yacc-dist-nobuild.test: New test.
* tests/Makefile.am (TESTS): Update.
Stefano Lattarini [Sun, 9 Jan 2011 14:37:46 +0000 (15:37 +0100)]
cosmetics: remove trailing whitespaces
* tests/libobj17.test: Remove trailing whitespace.
* ChangeLog: Update.
Stefano Lattarini [Sun, 9 Jan 2011 14:30:42 +0000 (15:30 +0100)]
Merge branch 'maint'
Stefano Lattarini [Sun, 9 Jan 2011 14:22:32 +0000 (15:22 +0100)]
cosmetics: remove trailing whitespaces
* doc/automake.texi: Remove trailing whitespaces.
* tests/cond13.test: Likewise.
* tests/cond14.test: Likewise.
* tests/fort4.test: Likewise.
* tests/fort5.test: Likewise.
* tests/suffix7.test: Likewise.
* tests/vtexi2.test: Likewise.
Stefano Lattarini [Sat, 8 Jan 2011 12:04:10 +0000 (13:04 +0100)]
automake: minor fixes in comments
* automake.in: Some minor fixes and enhancements in comments.
Ralf Wildenhues [Sun, 9 Jan 2011 11:06:24 +0000 (12:06 +0100)]
Add test coverage for deleted header files.
* tests/depcomp6.test, tests/depcomp7.test: Update tests to
also check for the deleted header bug. If no dependency
tracking mechanism could be found, SKIP rather than exit
successfully. Use GNU style spacing and ANSI C prototypes.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues [Sun, 9 Jan 2011 09:53:04 +0000 (10:53 +0100)]
Fix typos in Rule.pm comments.
* lib/Automake/Rule.pm: Fix typos in comments.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues [Sat, 8 Jan 2011 19:18:03 +0000 (20:18 +0100)]
docs: split 'amhello Explained' node.
* doc/automake.texi (amhello Explained): Split node ...
(amhello's configure.ac Setup Explained)
(amhello's Makefile.am Setup Explained) : ... into these two.
(Top, Hello World): Adjust, and add @anchor for stable URL links.
Suggestion by Karl Berry in automake bug#7766.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini [Sat, 8 Jan 2011 12:33:41 +0000 (13:33 +0100)]
Merge commit 'tests-lexyacc-extend' into yacc-works
Extend, fix and improve tests on Lex and Yacc support.
Karl Berry [Sat, 8 Jan 2011 09:04:17 +0000 (10:04 +0100)]
docs: reference defining directories in amhello node.
* doc/automake.texi (amhello Explained): Point to Autoconf
manual for how to convert directory values into macros.
(Optional): Fix grammar nit.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini [Fri, 7 Jan 2011 21:01:20 +0000 (22:01 +0100)]
Merge branch 'yacc-clean'
Stefano Lattarini [Fri, 7 Jan 2011 14:44:47 +0000 (15:44 +0100)]
yacc: "make clean" removes .c and .h files from non-distributed .y
Previously, while automake did *not* distribute C source and header
files derived from non-distributed Yacc sources, it still caused
them to be removed only by "make maintainer-clean" only, and not by
simply "make clean" or "make distclean".
This caused "make distcheck" to fail, unless the developer put
those generated .c and .h files in CLEANFILES or in DISTCLEANFILES
by hand.
This change fixes this issue, by making non-distributed `.c' and
`.h' files generated by non-distributed Yacc sources cleaned by
"make clean".
* tests/automake.in (lang_yacc_target_hook): Make C source and
header files derived from non-distributed Yacc files cleaned by
"make clean", not only by "make maintainer-clean".
* tests/yacc-clean.test: New test.
* tests/Makefile.am (TESTS): Update.
* NEWS: Update.
Stefano Lattarini [Sun, 2 Jan 2011 14:49:16 +0000 (15:49 +0100)]
Tests: normalize use of the 'errexit' shell flag.
* tests/maken3.test (check_targets): Remove redundant call to
'set -e'.
* tests/maken4.test: Likewise.
* tests/ansi5.test: Call 'set -e' just after './defs' has been
sourced.
* tests/ansi6.test: Likewise.
* tests/ansi7.test: Likewise.
* tests/cond16.test: Likewise.
* tests/cond17.test: Likewise.
* tests/cond18.test: Likewise.
* tests/cond19.test: Likewise.
* tests/cond20.test: Likewise.
* tests/cond21.test: Likewise.
* tests/instdat2.test: Likewise.
* tests/instdir-texi.test: Likewise.
* tests/parallel-tests3.test: Likewise.
* tests/remake1a.test: Likewise.
* tests/ccnoco.test: Likewise, and add trailing `:' command.
* tests/comment4.test: Likewise.
* tests/gcj4.test: Likewise.
* tests/nodist2.test: Likewise.
* tests/nodist3.test: Enable 'errexit' shell flag (this should
have been done in commit v1.11-248-g317e17b, but the relevant
hunk has been forgotten somehow).
* tests/output.test: Likewise.
* tests/gnits2.test: Likewise, and display captured stderr to
script's stderr, not to script's stdout.
* tests/gnits3.test: Likewise. Also, prefer 'cat' over 'echo'
to append to Makefile.am, and really check that the exit status
of "make installcheck" indicates failure.
Stefano Lattarini [Sun, 2 Jan 2011 13:17:12 +0000 (14:17 +0100)]
* NEWS: Fix typo (forgotten word).
Stefano Lattarini [Fri, 24 Dec 2010 21:00:40 +0000 (22:00 +0100)]
docs: how to work around checks on invalid primary/directory couples
* doc/automake.texi (Uniform): Document the blessed idiom which can
be used to work around automake checks on invalid primary/directory
couples (such as `lib_PROGRAMS' or `doc_LIBRARIES').
Suggested by Ralf Wildenhues.
Ralf Wildenhues [Sun, 2 Jan 2011 05:12:13 +0000 (06:12 +0100)]
Merge branch 'maint'
Ralf Wildenhues [Sun, 2 Jan 2011 05:11:28 +0000 (06:11 +0100)]
Sync auxiliary files from upstream.
* lib/config.guess, lib/config.sub, lib/texinfo.tex:
Sync from upstream.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues [Sun, 2 Jan 2011 04:47:11 +0000 (05:47 +0100)]
Avoid caching bug in cygnus mode test.
* tests/cygnus-requires-maintainer-mode.test: Remove
autom4te.cache directory before rerunning aclocal, to
remove trace caches.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues [Sun, 2 Jan 2011 04:38:18 +0000 (05:38 +0100)]
Merge branch 'maint'
Ralf Wildenhues [Sun, 2 Jan 2011 04:36:20 +0000 (05:36 +0100)]
Fix maintainer-check regression.
* tests/subobj11a.test: Pass DISTCHECK_CONFIGURE_FLAGS in the
environment.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues [Sun, 2 Jan 2011 04:31:41 +0000 (05:31 +0100)]
Bump copyright years.
* aclocal.in (write_aclocal, version): Bump copyright years.
* automake.in (gen_copyright, version): Likewise.
* doc/automake.texi: Likewise.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini [Thu, 23 Dec 2010 21:57:34 +0000 (22:57 +0100)]
* NEWS: Add missing blank line between two entries.
Stefano Lattarini [Thu, 23 Dec 2010 20:41:45 +0000 (21:41 +0100)]
Merge branch 'tests-suffix-extend'
Conflicts:
tests/suffix10.test
Stefano Lattarini [Fri, 15 Oct 2010 15:37:38 +0000 (17:37 +0200)]
Improve and extend tests `suffix*.test'.
* tests/suffix.test: Check that suffix rules for C compilation are
only included once. Try also with a static library.
* tests/suffix2.test: Add a new grep to help potential debugging.
Do not run automake with the `--add-missing' options, since we
already create all the needed auxiliary files. Try also *without*
the `no-dependencies' automake option.
* tests/suffix4.test: Make grepping of Makefile.in stricter.
* tests/suffix3.test: Rewritten to run also autoconf, ./configure
and make.
* tests/suffix5.test: Likewise.
* tests/suffix6.test: Fix botched recipe indentation (eight spaces
were used instead of a tabulation character). Extend to check
that `.obj' is handled like `.$(OBJEXT)' (as is done for `.o').
Improved parsing & grepping of generated Makefile.in. Other minor
fixes and improvements.
* tests/suffix10.test: Move some checks in Makefile.am. Also run
"make all".
* tests/suffix12.test: Likewise, and account for VPATH issues in
weaker make implementations.
* tests/suffix11.test: Likewise. Also, run "make distcheck", for
completeness, and related changes.
* tests/suffix8.test: Likewise. Also, do not put `gcc' anymore
in $required.
* tests/suffix13.test: Do not use the `--force-missing' automake
option unnecessarily.
* tests/suffix6b.test: New test, semantic sister of `suffix6.test'.
* tests/suffix6c.test: Likewise.
* tests/Makefile.am (TESTS): Updated.