]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'master' into ng/master
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 16 Jul 2012 09:27:35 +0000 (11:27 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 16 Jul 2012 09:29:46 +0000 (11:29 +0200)
* 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>
1  2 
Makefile.am
configure.ac
lib/ylwrap
m4/depend.m4
m4/init.m4
m4/silent.m4
m4/strip.m4
m4/substnot.m4
t/yacc-bison-skeleton-cxx.sh
t/yacc-bison-skeleton.sh
t/yacc-d-basic.sh

diff --cc Makefile.am
index e0c10424a7b6cbace979e6250fcfa2db2bfc5b73,a5332d3738d1b0ed782266406e7bbfed1e097f9a..2d910171177242320d6ebc21514ce888b997573f
@@@ -436,6 -426,45 +436,41 @@@ check-no-repeated-test-name
  check-local: check-no-repeated-test-name
  .PHONY: check-no-repeated-test-name
  
 -## Checking the list of tests.
 -test_subdirs = t t/pm t/perf contrib/t
 -include $(srcdir)/t/CheckListOfTests.am
 -
+ # Check that our test cases are syntactically correct.
+ # See automake bug#11898.
+ check-tests-syntax:
+       @st=0; \
+       err () { echo "$@: $$*" >&2; st=1; }; \
+ ## The user might do something like "make check TESTS=t/foo" or
+ ## "make check TESTS_LOGS=t/foo.log" and expect (say) the test
+ ## 't/foo.sh' to be run; this has worked well until today, and
+ ## we want to continue supporting this use case.
+       bases=`for log in : $(TEST_LOGS); do echo $$log; done \
+         | sed -e '/^:$$/d' -e 's/\.log$$//'`; \
+       for bas in $$bases; do \
+         for suf in sh tap pl; do \
+           tst=$$bas.$$suf; \
+ ## Emulate VPATH search.
+           if test -f $$tst; then \
+             break; \
+           elif test -f $(srcdir)/$$tst; then \
+             tst=$(srcdir)/$$tst; \
+             break; \
+           else \
+             tst=''; \
+           fi; \
+         done; \
+         test -n "$$tst" || err "couldn't find test '$$bas'"; \
+ ## Don't check that perl tests are valid shell scripts!
+         test $$suf = pl && continue; \
+         $(AM_V_P) && echo " $(AM_TEST_RUNNER_SHELL) -n $$tst"; \
+         $(AM_TEST_RUNNER_SHELL) -n "$$tst" \
+           || err "test '$$tst' syntactically invalid"; \
+       done; \
+       exit $$st
+ check-local: check-tests-syntax
+ .PHONY: check-tests-syntax
  # Run the testsuite with the installed aclocal and automake.
  installcheck-local: installcheck-testsuite
  installcheck-testsuite:
diff --cc configure.ac
Simple merge
diff --cc lib/ylwrap
index 3911cb0d796a381620aa90e72d40a09c8f611b94,7befa46de6feea3433c364af2061ba554bb3d9e4..867b99f0dbdd88f4eeb78b6318f31b98a1243e98
@@@ -25,10 -25,41 +25,41 @@@ scriptversion=2012-07-14.08; # UT
  # configuration script generated by Autoconf, you may include it under
  # the same distribution terms that you use for the rest of that program.
  
 -# This file is maintained in Automake, please report
 +# This file is maintained in Automake-NG, please report
  # bugs to <bug-automake@gnu.org> or send patches to
 -# <automake-patches@gnu.org>.
 +# <automake-ng@gnu.org>.
  
+ get_dirname ()
+ {
+   case $1 in
+     */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
+     # Otherwise,  we want the empty string (not ".").
+   esac
+ }
+ # guard FILE
+ # ----------
+ # The CPP macro used to guard inclusion of FILE.
+ guard()
+ {
+   printf '%s\n' "$from" \
+     | sed \
+         -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\
+         -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'
+ }
+ # quote_for_sed [STRING]
+ # ----------------------
+ # Return STRING (or stdin) quoted to be used as a sed pattern.
+ quote_for_sed ()
+ {
+   case $# in
+     0) cat;;
+     1) printf '%s\n' "$1";;
+   esac \
+     | sed -e 's|[][\\.*]|\\&|g'
+ }
  case "$1" in
    '')
      echo "$0: No files given.  Try '$0 --help' for more information." 1>&2
diff --cc m4/depend.m4
Simple merge
diff --cc m4/init.m4
Simple merge
diff --cc m4/silent.m4
Simple merge
diff --cc m4/strip.m4
Simple merge
diff --cc m4/substnot.m4
index 22a2612e3551fee91917834490bd0d01d2d95e4a,1830e796dd568ae3559008638aee6340e0731b9c..d86585a593457ecdd8f79df75aac8bf8f48ccf09
@@@ -5,12 -5,10 +5,10 @@@
  # gives unlimited permission to copy and/or distribute it,
  # with or without modifications, as long as this notice is preserved.
  
- # serial 3
  # _AM_SUBST_NOTMAKE(VARIABLE)
  # ---------------------------
 -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 -# This macro is traced by Automake.
 +# Prevent Automake-NG from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 +# This macro is traced by Automake-NG.
  AC_DEFUN([_AM_SUBST_NOTMAKE])
  
  # AM_SUBST_NOTMAKE(VARIABLE)
Simple merge
Simple merge
Simple merge