]> git.ipfire.org Git - thirdparty/automake.git/log
thirdparty/automake.git
13 years agoMerge branch 'master' into ng/master
Stefano Lattarini [Tue, 24 Jul 2012 22:14:09 +0000 (00:14 +0200)] 
Merge branch 'master' into ng/master

* master:
  tests: avoid non-textual output in a '.log' file
  tags: refactor to reduce code duplication (2)
  tags: refactor to reduce code duplication (1)
  tests: better name for a couple of tests
  check: support colorized testsuite output by default
  tags: unify recursion for tags targets with that of "usual" targets

+ Extra non-trivial edits:

* automake.in (handle_tests): Drop the '%COLOR%' transform in the
processing of both 'serial-tests.am' and 'parallel-tests.am', which
have superseded the 'check.am' from mainline Automake.
* lib/am/color-tests.am: Remove use of the '%?COLOR%' transform;
just act as if it were unconditionally TRUE.
(am__tty_colors_dummy): Merge into ...
(am__tty_colors): ... this.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'maint'
Stefano Lattarini [Tue, 24 Jul 2012 21:51:44 +0000 (23:51 +0200)] 
Merge branch 'maint'

* maint:
  tests: avoid non-textual output in a '.log' file

13 years agotests: avoid non-textual output in a '.log' file
Stefano Lattarini [Tue, 24 Jul 2012 20:56:01 +0000 (22:56 +0200)] 
tests: avoid non-textual output in a '.log' file

* t/dist-formats.tap: Here.  Otherwise, some inferior awk implementations,
like OpenIndiana /usr/xpg4/bin/awk, could be confused and cause spurious
errors in the testsuite harness.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotags: refactor to reduce code duplication (2)
Stefano Lattarini [Tue, 24 Jul 2012 17:58:45 +0000 (19:58 +0200)] 
tags: refactor to reduce code duplication (2)

No semantic change is intended.

* lib/am/tags.am (am__define_uniq_tagged_files): New variable,
factor out some code common to ...
(ctags-am, tags-am, ID): ... the recipes of these targets.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotags: refactor to reduce code duplication (1)
Stefano Lattarini [Tue, 24 Jul 2012 17:25:02 +0000 (19:25 +0200)] 
tags: refactor to reduce code duplication (1)

No semantic change is intended.

* lib/am/tags.am (am__uniquify_input): New variable, factor
out some code common to ...
(ctags-am, tags-am, ID): ... the recipes of these targets.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branches 'tags-simplify-recursion' and 'color-tests-always'
Stefano Lattarini [Tue, 24 Jul 2012 16:43:50 +0000 (18:43 +0200)] 
Merge branches 'tags-simplify-recursion' and 'color-tests-always'

* tags-simplify-recursion:
  tags: unify recursion for tags targets with that of "usual" targets

* color-tests-always:
  tests: better name for a couple of tests
  check: support colorized testsuite output by default

13 years ago[ng] rename: am__memoized_value/* -> am.memoize.value/*
Stefano Lattarini [Tue, 24 Jul 2012 14:38:22 +0000 (16:38 +0200)] 
[ng] rename: am__memoized_value/* -> am.memoize.value/*

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: move a variable definition
Stefano Lattarini [Tue, 24 Jul 2012 14:36:34 +0000 (16:36 +0200)] 
[ng] cosmetics: move a variable definition

* lib/am/header-vars.am (am.chars.empty): This, move earlier.  This both
fixes the associated comments (which referred to a variable defined above
it as "defined below"), and ensures that this variable is not used before
being defined (not a big deal in practice, since it expands to empty; but
better be consistent).

Reported by Akim Demaille.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: run two slow tests earlier, for better "make -j" performance
Stefano Lattarini [Tue, 24 Jul 2012 13:52:38 +0000 (15:52 +0200)] 
[ng] tests: run two slow tests earlier, for better "make -j" performance

* Makefile.am (long_running_TESTS): Add 't/parallel-tests-many.sh' and
't/dist-many.sh', which are slooow.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] vars: names of iterating vars in $(foreach) loops shorter & simpler
Stefano Lattarini [Tue, 24 Jul 2012 13:23:08 +0000 (15:23 +0200)] 
[ng] vars: names of iterating vars in $(foreach) loops shorter & simpler

In GNU make, after a "$(foreach x,...)" loop, the make variable $(x):

  - is restored to its original variable it had before the 'foreach'
    loop, if it was already set;

  - re-unset otherwise.

This behaviour is checked by the recent spy test 't/spy-foreach.sh'.

This means that, in most situations, there's no actual need to use
a "namespace safe" variable name for the iterating variable in a
"$(foreach ...)" loop, because that variable won't linger in the
environment after the loop anyway.

* lib/am/compile.am, lib/am/header-vars.am, lib/am/parallel-tests.am,
lib/am/serial-tests.am: Adjust to use simpler variables names in their
foreach loops; for example, simply 'v' instead of 'am__v', etc.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] spy: iteration variables in "$(foreach ...)" loops are temporary
Stefano Lattarini [Tue, 24 Jul 2012 13:05:14 +0000 (15:05 +0200)] 
[ng] spy: iteration variables in "$(foreach ...)" loops are temporary

* t/spy-foreach.sh: New test.  Check that, after a "$(foreach x,...)"
loop, the make variable $(x) is:
  - restored to the original variable it had before the 'foreach'
    loop, if it was already set; and
  - is re-unset otherwise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: .am.* -> am.*
Stefano Lattarini [Tue, 24 Jul 2012 12:34:58 +0000 (14:34 +0200)] 
[ng] rename: .am.* -> am.*

This is the complete list of renames done in this patch:

    .am.clean-cmd.f  ->  am.clean-cmd.f
    .am.clean-cmd.d  ->  am.clean-cmd.d
    .am.rm-f         ->  am.rm-f
    .am.rm-rf        ->  am.rm-rf

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__memoize -> am.memoize
Stefano Lattarini [Tue, 24 Jul 2012 10:00:02 +0000 (12:00 +0200)] 
[ng] rename: am__memoize -> am.memoize

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__newline -> am.chars.newline
Stefano Lattarini [Tue, 24 Jul 2012 09:58:33 +0000 (11:58 +0200)] 
[ng] rename: am__newline -> am.chars.newline

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: fix botches spaces in t/memoize.tap
Stefano Lattarini [Mon, 23 Jul 2012 18:12:17 +0000 (20:12 +0200)] 
[ng] cosmetics: fix botches spaces in t/memoize.tap

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: fix test driver botch-up on Solaris
Stefano Lattarini [Mon, 23 Jul 2012 14:57:00 +0000 (16:57 +0200)] 
[ng] tests: fix test driver botch-up on Solaris

This issue is very similar to the one fixed by commit v1.12.2-31-g587e0c6.

The test 't/memoize.sh' was producing a '.log' file with few overly-long
lines (more than 12k characters long) and, when Solaris XPG4 awk was in
use, that was causing the 'test-driver.sh' script to experience a spurious
failure:

    /usr/xpg4/bin/awk: line 382 (B): Record too long (LIMIT: 19999 bytes)
    tap-driver.sh: fatal: I/O or internal error

* t/memoize.sh: Temporary disable shell tracing and make output in a few
places, to prevent the resulting '.log' file to contain overly long lines.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: relax even more a grepping check on configure output
Stefano Lattarini [Mon, 23 Jul 2012 18:09:08 +0000 (20:09 +0200)] 
[ng] tests: relax even more a grepping check on configure output

This is a follow-up to today's commit v1.12.2-594-geee3aff.

* t/subpkg.sh: Here: don't be too picky about the verb declension
used in a "checking whether" message.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'master' into ng/master
Stefano Lattarini [Mon, 23 Jul 2012 14:27:22 +0000 (16:27 +0200)] 
Merge branch 'master' into ng/master

* master:
  tests: avoid a spurious failure with Solaris /bin/sh
  tests: fix buglet in t/missing3.sh
  self tests: avoid spurious failures on older bash
  tests: remove t/parallel-tests-many.sh (fixes spurious failure)
  typofix: in a comment in the automake script
  news: minor fixlets and reordering

+ Extra non-trivial edits:

* t/parallel-tests-many.sh: Do not deleted; keep the correct and
improved version from the 'ng/master' branch.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotests: relax a grepping check on configure output
Stefano Lattarini [Mon, 23 Jul 2012 14:20:49 +0000 (16:20 +0200)] 
tests: relax a grepping check on configure output

* t/subpkg.sh: Here: do not expect the C compiler to be simply
named 'cc'.  This was causing spurious failures when $CC was
overridden at configure time or though config.site.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'ng/many-tests' into ng/master
Stefano Lattarini [Mon, 23 Jul 2012 12:47:05 +0000 (14:47 +0200)] 
Merge branch 'ng/many-tests' into ng/master

* ng/many-tests:
  [ng] check: in recipes, don't use pipe when redirection suffices
  [ng] recheck: don't exceed command line limits, even with many failed tests
  [ng] coverage: recheck with many failed tests
  [ng] check: refactor for less duplication and better performances
  [ng] check: use awk rather than grep+xargs to count test results
  [ng] parallel-tests: do not exceed command line length limits
  [ng] coverage: testing with lots of test scripts

13 years agotests: avoid a spurious failure with Solaris /bin/sh
Stefano Lattarini [Mon, 23 Jul 2012 11:35:28 +0000 (13:35 +0200)] 
tests: avoid a spurious failure with Solaris /bin/sh

The /bin/sh shell on Solaris is dumb enough not to set the exit
status to 127 after the execution of a non-existing command is
attempted:

  $ /bin/sh -c 'nonesuch'; echo stat = $?
  /bin/sh: nonesuch: not found
  stat = 1

This means that the missing script, when run through that shell,
cannot discriminate between a real failure of a maintainer tool
and a failure due to its absence.  This is not a big deal in
practice (especially because all the 'missing' invocations in
our Makefiles are done with $(SHELL), and that is almost surely
set by configure to a proper POSIX shell), but was causing an
annoying failure in our testsuite.  Fix it.

* t/missing3.sh: If 'missing' is run with a /bin/sh shell suffering
from the just-described bug, skip the check that would spuriously
fail due to that bug.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotests: fix buglet in t/missing3.sh
Stefano Lattarini [Mon, 23 Jul 2012 11:15:13 +0000 (13:15 +0200)] 
tests: fix buglet in t/missing3.sh

* t/missing3.sh: Be sure to use 'run_cmd' also in the first invocation
of 'missing', to ensure the stderr will actually be saved in a file we
can later grep.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] news: remove duplicated header
Stefano Lattarini [Mon, 23 Jul 2012 10:28:16 +0000 (12:28 +0200)] 
[ng] news: remove duplicated header

* NG-NEWS (Obsolete Features Removed): This.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'maint'
Stefano Lattarini [Mon, 23 Jul 2012 10:27:15 +0000 (12:27 +0200)] 
Merge branch 'maint'

* maint:
  self tests: avoid spurious failures on older bash
  tests: remove t/parallel-tests-many.sh (fixes spurious failure)
  typofix: in a comment in the automake script
  news: minor fixlets and reordering

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'fix-pr11909' into maint
Stefano Lattarini [Mon, 23 Jul 2012 08:51:48 +0000 (10:51 +0200)] 
Merge branch 'fix-pr11909' into maint

* fix-pr11909:
  self tests: avoid spurious failures on older bash

13 years agoself tests: avoid spurious failures on older bash
Stefano Lattarini [Sat, 14 Jul 2012 11:56:34 +0000 (13:56 +0200)] 
self tests: avoid spurious failures on older bash

Fixes automake bug#11909.

* t/self-check-explicit-skips.sh: Remove or rework few checks for use
cases that are no more relevant nor supported now that we've got rid
of the need to use the 'Exit' function explicitly.  Make the other
existing checks stricter.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotests: remove t/parallel-tests-many.sh (fixes spurious failure)
Stefano Lattarini [Mon, 23 Jul 2012 08:37:17 +0000 (10:37 +0200)] 
tests: remove t/parallel-tests-many.sh (fixes spurious failure)

That test was checking for automake#7868 "parallel-tests and command-line
length limit issue".  That bug is still open, and the tests was xfailing.

What concerns us is that the test was also causing an annoying problem.
On Solaris 10, it produced a '.log' file with two overly-long lines (more
than 1 million characters long!) and that was causing the test harness to
experience spurious failures, with Solaris XPG4 awk complaining that:

 /usr/xpg4/bin/awk: line 0 (NR=734): Record too long (LIMIT: 19999 bytes)

A little consideration shows that the bug#7868 checked by the culprit
test cannot be solved "by accident", e.g., by another bug fix or some
simple refactoring, so there is little added value in keeping the xfailing
test for it, if this causes other problems (and we've seen it does).

So we just remove the test.  In case we ever manage to fix the bug in
mainline automake, we can copy over the similar test(s) from Automake-NG,
which has actually managed to fix the bug (and have simpler test cases
for it).

* t/parallel-tests-many.sh: Delete.
* t/list-of-tests.mk (XFAIL_TESTS, handwritten_TESTS): Remove it.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: ACLOCAL_M4 -> am.remake.aclocal-m4
Stefano Lattarini [Sun, 22 Jul 2012 16:26:55 +0000 (18:26 +0200)] 
[ng] rename: ACLOCAL_M4 -> am.remake.aclocal-m4

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__configure_deps -> am.remake.configure-deps
Stefano Lattarini [Sun, 22 Jul 2012 16:14:48 +0000 (18:14 +0200)] 
[ng] rename: am__configure_deps -> am.remake.configure-deps

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__aclocal_m4_deps -> am.remake.aclocal-m4-deps
Stefano Lattarini [Sun, 22 Jul 2012 16:10:04 +0000 (18:10 +0200)] 
[ng] rename: am__aclocal_m4_deps -> am.remake.aclocal-m4-deps

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__config_aux_dir -> am.conf.aux-dir
Stefano Lattarini [Sun, 22 Jul 2012 15:59:13 +0000 (17:59 +0200)] 
[ng] rename: am__config_aux_dir -> am.conf.aux-dir

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotests: better name for a couple of tests
Stefano Lattarini [Sun, 22 Jul 2012 15:06:04 +0000 (17:06 +0200)] 
tests: better name for a couple of tests

* t/color.sh: Rename ...
* t/color-tests.sh: ... like this.
* t/color2.sh: Rename ...
* t/color-tests2.sh: ... like this.
* t/list-of-tests.mk: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agocheck: support colorized testsuite output by default
Stefano Lattarini [Sun, 22 Jul 2012 14:38:47 +0000 (16:38 +0200)] 
check: support colorized testsuite output by default

Fixes automake bug#11855.

With this change, we make the 'color-tests' option enabled by default.
That option remains still silently accepted as a no-op, for backward
compatibility.

The developer of a package is still free to disable testsuite coloring on
a per-makefile basis (by adding "AM_COLOR_TESTS = no" to the Makefile.am)
or on a whole-project basis (by AC_SUBST'ing AM_COLOR_TESTS to "no" in
configure.ac).  But now the user will be able to request the testsuite
output to be colorized, if he really wants to:

    # With GNU make:
    make AM_COLOR_TESTS=yes check
    # With non-GNU make:
    make AM_COLOR_TESTS=yes AM_MAKEFLAGS=AM_COLOR_TESTS=yes check

* NEWS: Update.
* doc/automake.texi: Updated, and some related minor reformatting
and rewording.
* automake.in (handle_tests): No need to pass the transform '%COLOR%'
when processing "check.am".
* lib/am/parallel-tests.am: Remove use of the '%?COLOR%' transform;
just act as if it were unconditionally TRUE.
* t/color.sh: No need to specify 'color-tests' in 'AUTOMAKE_OPTIONS'
nor in 'AM_INIT_AUTOMAKE'.
* t/ax/testsuite-summary-checks.sh: Likewise.
* t/ax/tap-summary-aux.sh: Likewise.
* t/color2.sh: Likewise.  Also, ensure that colorized testsuite output
can be disabled by default by calling "AC_SUBST([AM_COLOR_TESTS], [no])".
* t/tap-realtime.sh: Define 'AM_COLOR_TESTS' to "no" in Makefile.am, to
avoid spurious colorization of the output due to the use of the 'expect'
program.
* t/color-tests-opt.sh: New test, check that the 'color-tests' option is
still recognized as a no-op.
* t/list-of-tests.mk: Add the new test.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] yacc, lex: avoid extra forks in non-VPATH builds
Stefano Lattarini [Sun, 22 Jul 2012 12:44:10 +0000 (14:44 +0200)] 
[ng] yacc, lex: avoid extra forks in non-VPATH builds

* lib/am/yacc.am, lib/am/lex.am: Use $(am__ensure_dir_exists) instead
of hand-rolled poor-man equivalent to ensure the directory of the
target exists.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__skiplex -> am.lex.maybe-skip
Stefano Lattarini [Sun, 22 Jul 2012 12:00:46 +0000 (14:00 +0200)] 
[ng] rename: am__skiplex -> am.lex.maybe-skip

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__skipyacc -> am.yacc.maybe-skip
Stefano Lattarini [Sun, 22 Jul 2012 11:57:25 +0000 (13:57 +0200)] 
[ng] rename: am__skipyacc -> am.yacc.maybe-skip

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__yacc_c2h -> am.yacc.c2h
Stefano Lattarini [Sun, 22 Jul 2012 11:55:09 +0000 (13:55 +0200)] 
[ng] rename: am__yacc_c2h -> am.yacc.c2h

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] fixup: remove an obsolete "FIXME" comment
Stefano Lattarini [Sun, 22 Jul 2012 11:43:39 +0000 (13:43 +0200)] 
[ng] fixup: remove an obsolete "FIXME" comment

* lib/am/clean.am: In here, about the need to break too long lists
of files to be cleaned in order to avoid exceeding command line
limits.  We already do that successfully!

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] typofix: fixed typos in comments and README
Stefano Lattarini [Sun, 22 Jul 2012 11:34:29 +0000 (13:34 +0200)] 
[ng] typofix: fixed typos in comments and README

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: enhance spy tests on pattern rulesn
Stefano Lattarini [Sun, 22 Jul 2012 06:53:14 +0000 (08:53 +0200)] 
[ng] tests: enhance spy tests on pattern rulesn

* t/spy-pattern-rules.sh : Fix heading comments to be more faithful
about what the test really checks.  Add more tests checking that, in
case of overlapping pattern rules, the one "more specific", i.e.,
with the shortest target stem, wins.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] check: in recipes, don't use pipe when redirection suffices
Stefano Lattarini [Sun, 22 Jul 2012 09:31:32 +0000 (11:31 +0200)] 
[ng] check: in recipes, don't use pipe when redirection suffices

Instead of the botched idiom:

    while read c; do echo $c; done <file | command

use the simpler and much better one:

    command <file

Not only the latter is simpler and marginally more efficient, but is also
better at catching possible unexpected I/O errors; while in the former,
the exit status of the while loop (which might have revealed such errors)
was lost in the pipeline.

* lib/am/parallel-tests.am ($(TEST_SUITE_LOG), recheck): Use the better
idiom.

Co-authored-by: Akim Demaille <akim@lrde.epita.fr>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] recheck: don't exceed command line limits, even with many failed tests
Stefano Lattarini [Sat, 21 Jul 2012 08:13:58 +0000 (10:13 +0200)] 
[ng] recheck: don't exceed command line limits, even with many failed tests

Related to automake bug#7868.

* lib/am/parallel-tests.sh (recheck): Arrange recursive make invocation
to pass the list of tests to be rechecked in the make standard input
rather than on the make command line.
(am__test_bases): Only define if not already set, to make the new idiom
referenced above work as expected.
* Makefile.am (XFAIL_TESTS): Remove 't/parallel-tests-many.sh' once
again.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] coverage: recheck with many failed tests
Stefano Lattarini [Fri, 20 Jul 2012 18:53:57 +0000 (20:53 +0200)] 
[ng] coverage: recheck with many failed tests

* t/parallel-tests-many.sh: Extend to check that the 'recheck' target
works even when a huge number of tests (~ 30k) have failed in the
previous testsuite run.  Currently this doesn't work, and causes the
test to fail, so list it ...
* Makefile.am (XFAIL_TESTS): ... in here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotags: unify recursion for tags targets with that of "usual" targets
Stefano Lattarini [Sun, 22 Jul 2012 09:07:22 +0000 (11:07 +0200)] 
tags: unify recursion for tags targets with that of "usual" targets

This change has a side effect: now any failure of the 'tags', 'ctags',
'cscope' and 'cscopelist' targets in a subdirectory will cause the
recursive command issued from the top directory to fail.  We believe
that this behavioural change is not only justified by the simplification
this patch entails, but actually offers better semantics: ignoring
failures by default is never a good idea, and with make, the user can
anyway order the completion of commands in the face of possible failures
with the '-k' option.

* NEWS: Update.
* automake.in (%required_targets): Add keys 'cscopelist-am', 'tags-am'
and 'ctags-am'.
(handle_tags): Greatly simplified, the major part of the handling of
recursion for the 'tags', 'ctags' and 'cscopelist' now moved out to ...
* lib/am/tags.am: ... this file, that has been adjusted and extended
accordingly.
* t/maken3.sh: Remove testing of the 'TAGS' target, that is now just
an alias to 'tags'.  Without this change, this test would spuriously
fail.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] check: refactor for less duplication and better performances
Stefano Lattarini [Fri, 20 Jul 2012 17:38:20 +0000 (19:38 +0200)] 
[ng] check: refactor for less duplication and better performances

* lib/am/parallel-tests.am (am__count_test_results): Adjust this awk
program to emit a shell snippet to be executed by the calling recipe ...
($(TEST_SUITE_LOG)): ... here.  This avoid the need to call the program
in $(am__count_test_results) once for each valid test result.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] check: use awk rather than grep+xargs to count test results
Stefano Lattarini [Fri, 20 Jul 2012 14:37:50 +0000 (16:37 +0200)] 
[ng] check: use awk rather than grep+xargs to count test results

* lib/am/parallel-tests.am ($(TEST_SUITE_LOG)): Here, with the help
of ...
(am__count_test_results): ... this new internal variable.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] parallel-tests: do not exceed command line length limits
Stefano Lattarini [Fri, 20 Jul 2012 10:28:46 +0000 (12:28 +0200)] 
[ng] parallel-tests: do not exceed command line length limits

Fixes automake bug#7868.

Two things worth noting:

 + a "make recheck" issued after a huge number of tests have failed
   can still hit command-line length issues;

 + the check-recipes now contain (first among the Automake-generated
   recipes) a use of the 'xargs' utility.

These issues will likely be tackled by later patches.

* Makefile.am (XFAIL_TESTS): Remove 't/parallel-tests-many.sh'.
* lib/am/clean.am (.am.clean-cmd.f, .am.clean-cmd.d, .am.rm-f,
.am.rm-rf): Move their definitions ...
* lib/am/header-vars.am: ... here, because we need to use them ...
* lib/am/parallel-tests.am: ... here as well.
(am.test-harness.workdir, am.setup-test-harness-workdir,
am.test-harness.append-to-list-of-bases): New internal variables.
Use them to avoid hitting command-line length limits ...
($(TEST_SUITE_LOG), recheck): ... in this rules ...
(am__remove_if_not_lazy_check): ... and in the shell code defined
by this internal variable.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] coverage: testing with lots of test scripts
Stefano Lattarini [Thu, 19 Jul 2012 11:42:19 +0000 (13:42 +0200)] 
[ng] coverage: testing with lots of test scripts

See long-standing automake bug#7868.

* t/parallel-tests-many.sh: Simplify and enhance.  Among other things,
this test now tries running ~ 30k tests.  Currently fails on several
systems (e.g., Linux 2.6.30 on i686, Solaris 10 on i86pc).

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] maintcheck: fix a spurious failure
Stefano Lattarini [Sat, 21 Jul 2012 17:50:54 +0000 (19:50 +0200)] 
[ng] maintcheck: fix a spurious failure

* t/clean-many2.sh: Add redundant quoting to 'rm', to avoid triggering
a failure in the 'sc_rm_minus_f' maintainer check.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'ng/renames' into ng/master
Stefano Lattarini [Sat, 21 Jul 2012 16:56:42 +0000 (18:56 +0200)] 
Merge branch 'ng/renames' into ng/master

* ng/renames: (33 commits)
  [ng] rename: am__relativize -> am.dist.relativize-path
  [ng] rename: am__canon -> am.util.canon
  [ng] rename: am__toupper -> am.util.toupper
  [ng] rename: am__tolower -> am.util.tolower
  [ng] rename: am__using_parallel_tests -> am.conf.using-parallel-tests
  [ng] rename: am__vpath_rewrite -> am.vpath.rewrite
  [ng] rename: am__handle_exeext -> am.conf.handle-exeext
  [ng] rename: am__private_suffix -> am.hack.private-suffix
  [ng] rename: am__strip_suffixes -> am.util.strip-suffixes
  [ng] am__strip_suffixes: use $0 for recursive invocations
  [ng] rename: am__uniq -> am.util.uniq
  [ng] am__uniq: use $0 for recursive invocations
  [ng] rename: am__strip_lastword -> am.util.strip-last-word
  [ng] rename: am__strip_firstword -> am.util.strip-first-word
  [ng] rename: am__make_dryrun -> am.make.dry-run
  [ng] rename: am__empty -> am.chars.empty
  [ng] cosmetics: fix an imprecise comment
  [ng] rename: am__squote -> am.chars.squote
  [ng] rename: am__dquote -> am.chars.dquote
  [ng] rename: am__bquote -> am.chars.bquote
  ...

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] automake: inline '&handle_install'
Stefano Lattarini [Sat, 21 Jul 2012 13:52:07 +0000 (15:52 +0200)] 
[ng] automake: inline '&handle_install'

* automake.in (handle_install): Delete, inlined ...
(generate_makefile): ... in here, as it had become a
trivial one-liner.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] automake: new function &almost_verbatim (small refactoring)
Stefano Lattarini [Sat, 21 Jul 2012 13:49:25 +0000 (15:49 +0200)] 
[ng] automake: new function &almost_verbatim (small refactoring)

* automake.in (almost_verbatim): New function, thin wrapper around
'&preprocess_file'.  It requires just the name of the fragment to
preprocess (assuming it is one provided by automake, and thus taking
care to prepend the "$libdir/am/" path and append the ".am" extension
automatically), and then automatically append the processed content
to the '$output_verbatim' global variable.
(handle_all_and_check, handle_install, handle_texinfo): Adjust to use
'&almost_verbatim' instead of '&preprocess_file'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agotypofix: in a comment in the automake script
Stefano Lattarini [Sat, 21 Jul 2012 13:47:46 +0000 (15:47 +0200)] 
typofix: in a comment in the automake script

* automake.in (process_file): Here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__relativize -> am.dist.relativize-path
Stefano Lattarini [Sat, 21 Jul 2012 12:43:14 +0000 (14:43 +0200)] 
[ng] rename: am__relativize -> am.dist.relativize-path

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__canon -> am.util.canon
Stefano Lattarini [Sat, 21 Jul 2012 12:35:02 +0000 (14:35 +0200)] 
[ng] rename: am__canon -> am.util.canon

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__toupper -> am.util.toupper
Stefano Lattarini [Sat, 21 Jul 2012 12:33:02 +0000 (14:33 +0200)] 
[ng] rename: am__toupper -> am.util.toupper

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__tolower -> am.util.tolower
Stefano Lattarini [Sat, 21 Jul 2012 12:31:20 +0000 (14:31 +0200)] 
[ng] rename: am__tolower -> am.util.tolower

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__using_parallel_tests -> am.conf.using-parallel-tests
Stefano Lattarini [Sat, 21 Jul 2012 12:27:39 +0000 (14:27 +0200)] 
[ng] rename: am__using_parallel_tests -> am.conf.using-parallel-tests

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__vpath_rewrite -> am.vpath.rewrite
Stefano Lattarini [Sat, 21 Jul 2012 12:22:49 +0000 (14:22 +0200)] 
[ng] rename: am__vpath_rewrite -> am.vpath.rewrite

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__handle_exeext -> am.conf.handle-exeext
Stefano Lattarini [Sat, 21 Jul 2012 12:15:40 +0000 (14:15 +0200)] 
[ng] rename: am__handle_exeext -> am.conf.handle-exeext

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__private_suffix -> am.hack.private-suffix
Stefano Lattarini [Sat, 21 Jul 2012 12:13:10 +0000 (14:13 +0200)] 
[ng] rename: am__private_suffix -> am.hack.private-suffix

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__strip_suffixes -> am.util.strip-suffixes
Stefano Lattarini [Sat, 21 Jul 2012 12:10:37 +0000 (14:10 +0200)] 
[ng] rename: am__strip_suffixes -> am.util.strip-suffixes

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] am__strip_suffixes: use $0 for recursive invocations
Stefano Lattarini [Sat, 21 Jul 2012 12:08:26 +0000 (14:08 +0200)] 
[ng] am__strip_suffixes: use $0 for recursive invocations

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__uniq -> am.util.uniq
Stefano Lattarini [Sat, 21 Jul 2012 12:06:38 +0000 (14:06 +0200)] 
[ng] rename: am__uniq -> am.util.uniq

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] am__uniq: use $0 for recursive invocations
Stefano Lattarini [Sat, 21 Jul 2012 11:57:15 +0000 (13:57 +0200)] 
[ng] am__uniq: use $0 for recursive invocations

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__strip_lastword -> am.util.strip-last-word
Stefano Lattarini [Sat, 21 Jul 2012 11:53:50 +0000 (13:53 +0200)] 
[ng] rename: am__strip_lastword -> am.util.strip-last-word

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__strip_firstword -> am.util.strip-first-word
Stefano Lattarini [Sat, 21 Jul 2012 11:51:47 +0000 (13:51 +0200)] 
[ng] rename: am__strip_firstword -> am.util.strip-first-word

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__make_dryrun -> am.make.dry-run
Stefano Lattarini [Sat, 21 Jul 2012 11:47:26 +0000 (13:47 +0200)] 
[ng] rename: am__make_dryrun -> am.make.dry-run

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__empty -> am.chars.empty
Stefano Lattarini [Sat, 21 Jul 2012 11:44:28 +0000 (13:44 +0200)] 
[ng] rename: am__empty -> am.chars.empty

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: fix an imprecise comment
Stefano Lattarini [Sat, 21 Jul 2012 10:16:51 +0000 (12:16 +0200)] 
[ng] cosmetics: fix an imprecise comment

* lib/am/header-vars.am (am__empty): About this.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__squote -> am.chars.squote
Stefano Lattarini [Sat, 21 Jul 2012 10:16:04 +0000 (12:16 +0200)] 
[ng] rename: am__squote -> am.chars.squote

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__dquote -> am.chars.dquote
Stefano Lattarini [Sat, 21 Jul 2012 10:15:43 +0000 (12:15 +0200)] 
[ng] rename: am__dquote -> am.chars.dquote

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__bquote -> am.chars.bquote
Stefano Lattarini [Sat, 21 Jul 2012 10:15:10 +0000 (12:15 +0200)] 
[ng] rename: am__bquote -> am.chars.bquote

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__rparen -> am.chars.rparen
Stefano Lattarini [Sat, 21 Jul 2012 10:14:26 +0000 (12:14 +0200)] 
[ng] rename: am__rparen -> am.chars.rparen

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__lparen -> am.chars.lparen
Stefano Lattarini [Sat, 21 Jul 2012 10:13:32 +0000 (12:13 +0200)] 
[ng] rename: am__lparen -> am.chars.lparen

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__pound -> am.chars.hash
Stefano Lattarini [Sat, 21 Jul 2012 10:12:37 +0000 (12:12 +0200)] 
[ng] rename: am__pound -> am.chars.hash

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__dollar -> am.chars.dollar
Stefano Lattarini [Sat, 21 Jul 2012 10:11:51 +0000 (12:11 +0200)] 
[ng] rename: am__dollar -> am.chars.dollar

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__comma -> am.chars.comma
Stefano Lattarini [Sat, 21 Jul 2012 10:10:52 +0000 (12:10 +0200)] 
[ng] rename: am__comma -> am.chars.comma

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__bslash -> am.chars.bslash
Stefano Lattarini [Sat, 21 Jul 2012 10:10:15 +0000 (12:10 +0200)] 
[ng] rename: am__bslash -> am.chars.bslash

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__seen_error -> am.error.seen
Stefano Lattarini [Sat, 21 Jul 2012 10:00:19 +0000 (12:00 +0200)] 
[ng] rename: am__seen_error -> am.error.seen

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] cosmetics: improve a comment
Stefano Lattarini [Sat, 21 Jul 2012 09:57:44 +0000 (11:57 +0200)] 
[ng] cosmetics: improve a comment

* automake.in (generate_makefile): In here, about the generated
Makefile baling out if '$(am__seen_error)' has been set by some
previous function call.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__error -> am.error
Stefano Lattarini [Sat, 21 Jul 2012 09:52:49 +0000 (11:52 +0200)] 
[ng] rename: am__error -> am.error

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__all_ltlibs -> am.all-ltlibs
Stefano Lattarini [Sat, 21 Jul 2012 09:49:28 +0000 (11:49 +0200)] 
[ng] rename: am__all_ltlibs -> am.all-ltlibs

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__all_libs -> am.all-libs
Stefano Lattarini [Sat, 21 Jul 2012 09:48:17 +0000 (11:48 +0200)] 
[ng] rename: am__all_libs -> am.all-libs

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__all_progs -> am.all-progs
Stefano Lattarini [Sat, 21 Jul 2012 09:47:27 +0000 (11:47 +0200)] 
[ng] rename: am__all_progs -> am.all-progs

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] rename: am__dist_* -> am.dist.*
Stefano Lattarini [Sat, 21 Jul 2012 09:38:23 +0000 (11:38 +0200)] 
[ng] rename: am__dist_* -> am.dist.*

Here is the complete list of renames:

    am__dist_common        ->   am.dist.common-files
    am__dist_sources       ->   am.dist.sources
    am__dist_files         ->   am.dist.all-files
    am__dist_files_1       ->   am.dist.files-tmp1
    am__dist_files_2       ->   am.dist.files-tmp2
    am__dist_files_cooked  ->   am.dist.files-cooked
    am__dist_parent_dirs   ->   am.dist.parent-dirs

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] tests: fix unportable $((...)) usage
Stefano Lattarini [Sat, 21 Jul 2012 11:18:02 +0000 (13:18 +0200)] 
[ng] tests: fix unportable $((...)) usage

* t/longline.sh: Use "$i", not bare "i", to reference the value of
the shell variable 'i' in a $((...)) expression.  Issue revealed by
a failure with dash 0.5.2.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] fixup: imprecise comment in a test
Stefano Lattarini [Sat, 21 Jul 2012 08:53:25 +0000 (10:53 +0200)] 
[ng] fixup: imprecise comment in a test

* t/dist-many2.sh: We don't fake the command line length for the shell
at "max 2000 chars", but at at "max 4000 chars". Adjust heading comment
accordingly.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] fixup: remove deleted test from XFAIL_TESTS
Stefano Lattarini [Fri, 20 Jul 2012 11:34:14 +0000 (13:34 +0200)] 
[ng] fixup: remove deleted test from XFAIL_TESTS

* Makefile.am (XFAIL_TESTS): Here, the test 't/txinfo5.sh'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years ago[ng] vars: names for internal make variables: 'am.foo' and 'am.foo.bar-baz'
Stefano Lattarini [Wed, 18 Jul 2012 18:26:41 +0000 (20:26 +0200)] 
[ng] vars: names for internal make variables: 'am.foo' and 'am.foo.bar-baz'

That is the new preferred naming scheme: 'am.foo' where we would
have previously used something like 'am__foo', and 'am.foo.bar-baz'
where we would have previously used something like 'am__foo_bar_baz'
or 'am__foo__bar_baz'.

We should start using the new naming to do so in future commits.  But
we should also avid a sweeping rename for now, to minimize conflicts
with the mainline Automake codebases, which (for portability reason)
must still limit itself to the use of the 'am__' prefix.

* HACKING: Adjust.  Also, remove now-irrelevant advice about the
problem of an old vendor make (NEWS-OS 4.2R) with variables whose
name start with an underscore.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agonews: minor fixlets and reordering
Stefano Lattarini [Tue, 17 Jul 2012 10:29:37 +0000 (12:29 +0200)] 
news: minor fixlets and reordering

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'ng/dist-many' into ng/master
Stefano Lattarini [Mon, 16 Jul 2012 09:49:15 +0000 (11:49 +0200)] 
Merge branch 'ng/dist-many' into ng/master

* ng/dist-many:
  [ng] dist: do not exceed command line length limits, even with many files
  [ng] coverage: distributing lots of files
  [ng] dist: memoize some internal variables

13 years ago[ng] fixup: tests on Bison skeletons are now passing
Stefano Lattarini [Mon, 16 Jul 2012 09:39:53 +0000 (11:39 +0200)] 
[ng] fixup: tests on Bison skeletons are now passing

* Makefile.am (XFAIL_TESTS): So remove them from here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'master' into ng/master
Stefano Lattarini [Mon, 16 Jul 2012 09:27:35 +0000 (11:27 +0200)] 
Merge branch 'master' into ng/master

* master: (23 commits)
  fixup: delete "# serial" line in m4/amversion.in
  news: update about recent ylwrap changes and fixes
  m4: get rid of "# serial" lines
  configure: ${#param} must be supported by the shell for the testsuite
  yacc tests: fix a spurious failure with parallel make
  ylwrap: use proper quoting inside a `...` substitution
  ylwrap: don't uselessly reset the exit status in case of failure
  ylwrap: fix C++ support for Bison
  ylwrap: refactor: move loop invariant
  ylwrap: refactoring: don't rely on the file order
  tests: upgrade and fix Bison test case
  tests: fix bison input file
  ylwrap: comment changes
  ylwrap: modernize idioms
  ylwrap: rename header inclusion in generated parsers
  ylwrap: simplify the list of renamings
  ylwrap: refactor: less duplication
  news: mention fixed testsuite weaknesses
  news: bump, for future 1.12.3
  tests: verify the shell test scripts are syntactically valid
  tests: don't use C instead of C++ compiler on case-insensitive platforms
  tests: avoid spurious TAP errors on Mac OS X 10.7
  tests: fix spurious failure in aclocal7.sh on fast machines

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'maint'
Stefano Lattarini [Mon, 16 Jul 2012 09:16:15 +0000 (11:16 +0200)] 
Merge branch 'maint'

* maint:
  fixup: delete "# serial" line in m4/amversion.in
  news: update about recent ylwrap changes and fixes
  m4: get rid of "# serial" lines
  configure: ${#param} must be supported by the shell for the testsuite
  yacc tests: fix a spurious failure with parallel make
  ylwrap: use proper quoting inside a `...` substitution
  ylwrap: don't uselessly reset the exit status in case of failure
  ylwrap: fix C++ support for Bison
  ylwrap: refactor: move loop invariant
  ylwrap: refactoring: don't rely on the file order
  tests: upgrade and fix Bison test case
  tests: fix bison input file
  ylwrap: comment changes
  ylwrap: modernize idioms
  ylwrap: rename header inclusion in generated parsers
  ylwrap: simplify the list of renamings
  ylwrap: refactor: less duplication

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agofixup: delete "# serial" line in m4/amversion.in
Stefano Lattarini [Mon, 16 Jul 2012 09:11:34 +0000 (11:11 +0200)] 
fixup: delete "# serial" line in m4/amversion.in

Otherwise, when m4/amversion.m4 is regenerated, it will contain a
serial line as well.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoMerge branch 'yacc-work' into maint
Stefano Lattarini [Mon, 16 Jul 2012 08:57:41 +0000 (10:57 +0200)] 
Merge branch 'yacc-work' into maint

* yacc-work:
  news: update about recent ylwrap changes and fixes
  yacc tests: fix a spurious failure with parallel make
  ylwrap: use proper quoting inside a `...` substitution
  ylwrap: don't uselessly reset the exit status in case of failure
  ylwrap: fix C++ support for Bison
  ylwrap: refactor: move loop invariant
  ylwrap: refactoring: don't rely on the file order
  tests: upgrade and fix Bison test case
  tests: fix bison input file
  ylwrap: comment changes
  ylwrap: modernize idioms
  ylwrap: rename header inclusion in generated parsers
  ylwrap: simplify the list of renamings
  ylwrap: refactor: less duplication

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agonews: update about recent ylwrap changes and fixes
Akim Demaille [Sun, 15 Jul 2012 09:23:59 +0000 (11:23 +0200)] 
news: update about recent ylwrap changes and fixes

* NEWS: In ylwrap, renamings are properly propagated, and unknown
files are preserved.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agom4: get rid of "# serial" lines
Stefano Lattarini [Sat, 14 Jul 2012 16:49:25 +0000 (18:49 +0200)] 
m4: get rid of "# serial" lines

The "#serial" lines are only considered by aclocal for the system-wide
third-party '.m4' files, not for the Automake-provided ones.  So they
serve no real purpose in the Automake '.m4' files.

In addition, now that we use git and topic branches, and that we are also
writing the Automake-NG fork, the "#serial" lines are becoming more and
more unreliable (e.g., different version of the same file in different
branches can easily end up having the same serial numbers).

So let's just nuke all the "#serial" lines.  See also automake bug#11932.

* m4/*.m4: All "# serial" lines removed.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
13 years agoconfigure: ${#param} must be supported by the shell for the testsuite
Stefano Lattarini [Sat, 14 Jul 2012 16:38:31 +0000 (18:38 +0200)] 
configure: ${#param} must be supported by the shell for the testsuite

This will be required at least by the Automake-NG branch.

* configure.ac: Require the $AM_TEST_RUNNER_SHELL supports ${#param} as
a way to obtain the length of the expansion of the variable $param.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>