]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'master' into ng/master
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 21 Feb 2012 14:42:17 +0000 (15:42 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 21 Feb 2012 14:42:17 +0000 (15:42 +0100)
* master: (28 commits)
  tests: "make installcheck" shouldn't run the testsuite twice
  news: minor fixlets and reorganization
  cosmetics: few typofixes
  automake: new option 'serial-tests'
  tests: fix a timestamp issue, and other minor buglets
  automake: new option to print location of scripts and data files
  docs: prefer the awk+sh TAP driver over the perl one
  tests: be stricter in determining whether "make -jN" works
  tests: don't trust exit status of "make -k"
  tests: fix race condition in 'self-check-dir.tap'
  parallel-tests: fix another BSD parallel make issue
  tests: avoid FreeBSD make VPATH issues in more tests (see bug#7884)
  cosmetics: remove extra trailing whitespace in configure.ac
  tests: avoid spurious failure with FreeBSD make
  tests: fix broken quoting in the generated yacc grammar
  fixup: always use correct path for automake/aclocal wrappers
  tests: fix spurious failure in VPATH build
  tests: fix many spurious failures in VPATH builds
  tests: relax a test to cater to NetBSD make
  dryrun: $(am__dry_run) not confused by metachars in $(MAKEFLAGS)
  ...

16 files changed:
1  2 
Makefile.am
automake.in
configure.ac
doc/Makefile.am
doc/automake.texi
lib/am/header-vars.am
syntax-checks.mk
tests/Makefile.am
tests/conffile-leading-dot.test
tests/defs
tests/lisp8.test
tests/list-of-tests.mk
tests/parallel-tests-empty-testlogs.test
tests/parallel-tests-extra-programs.test
tests/suffix10.tap
tests/tap-doc2.test

diff --cc Makefile.am
index 2befc91974b395771b2deb756a8bcba7c26ed528,a7aed453ac2ce974047c841f276260a57a8a5e6f..43a61a35323e3b1943322d68e352b516cc04a72c
@@@ -102,13 -102,9 +103,9 @@@ automake aclocal: Makefil
  INSTALL: lib/INSTALL
        $(AM_V_GEN)cp $(srcdir)/lib/INSTALL $@
  
- # Run the testsuite with the installed aclocal and automake.
- installcheck-local:
-       am_running_installcheck=yes $(MAKE) check
  # Convenience proxy target for the test suites.
  recheck:
 -      $(am__cd) tests && $(MAKE) $(AM_MAKEFLAGS) $@
 +      $(am__cd) tests && $(MAKE) $@
  .PHONY: recheck
  
  ################################################################
diff --cc automake.in
Simple merge
diff --cc configure.ac
Simple merge
diff --cc doc/Makefile.am
Simple merge
Simple merge
index ee4aa46f0f4db3af1b9c9461a815be3ba1e30463,ba4aa0bcc5bde0795d7e65e8e6ffcdae91fefcd0..f6ae4609e64401577599b8d78c55f5bf474d9e30
@@@ -30,11 -27,11 +30,9 @@@ am__vpath_rewrite = 
  ## DESTDIR =
  
  ## Shell code that determines whether make is running in "dry mode"
 -## ("make -n") or not.  Useful in rules that invoke make recursively,
 -## and are thus executed also with "make -n" -- either because they
 -## are declared as dependencies to '.MAKE' (NetBSD make), or because
 -## their recipes contain the "$(MAKE)" string (GNU and Solaris make).
 -
 +## ("make -n") or not.  Useful in rules that invoke make recursively, and
 +## are thus executed also with "make -n" -- because, say, their recipes
 +## contain the "$(MAKE)" string or starts with the '+' modifier.
- ## The case statement has [:] in order to not tickle makefile-deps.test
- ## which greps for '^ *:'.
  am__make_dryrun = \
    { \
      am__dry=no; \
index 8c797ca79a38dfacff0d68c1cac530bfae628e32,a8bdcadd9496e42776ee05a5d1e0c41d90f71ee1..0b730d451d425db1c636b1eef7863cc93a1e8a2a
@@@ -77,7 -68,7 +77,6 @@@ sc_tests_automake_fails 
  sc_tests_plain_aclocal \
  sc_tests_plain_perl \
  sc_tests_required_after_defs \
- sc_tests_tap_plan \
 -sc_tests_overriding_macros_on_cmdline \
  sc_tests_plain_sleep \
  sc_tests_plain_egrep_fgrep \
  sc_tests_PATH_SEPARATOR \
@@@ -533,33 -425,48 +532,6 @@@ sc_tests_required_after_defs
          fi; \
        done
  
- ## TAP-based test scripts should not forget to declare a TAP plan.  In
- ## case it is not known in advance how many tests will be run, a "lazy"
- ## plan can be used; but its use should be deliberate, explicitly declared
- ## with a "plan_ later" call, rather than the result of an oversight.
- ## This check helps to ensure this is indeed the case.
- sc_tests_tap_plan:
-       @with_plan=`grep -l '^ *plan_ ' $(srcdir)/tests/*.tap`; \
-        with_plan=`echo $$with_plan`; \
-        ok=:; \
-        for t in $(srcdir)/tests/*.tap; do \
-          case " $$with_plan " in *" $$t "*) continue;; esac; \
-          case $$t in \
-            *-w.tap) \
-              : it is ok for an *auto-generated* test sourcing an \
-              : hand-written one not to declare a TAP plan: that will \
-              : be done by the sourced test; \
-              t2=`echo $$t | sed -e 's|.*/||' -e 's/-w\.tap$$/.tap/'` \
-                && grep -E "^ *\\.  *[^        ]*/$$t2\\b" $$t >/dev/null \
-                && continue || : ;; \
-          esac; \
-          ok=false; echo $$t; \
-        done; \
-        $$ok || { \
-         echo 'The tests above do not declare a TAP plan.' 1>&2; \
 -## Overriding a Makefile macro on the command line is not portable when
 -## recursive targets are used.  Better use an envvar.  SHELL is an
 -## exception, POSIX says it can't come from the environment.  V, DESTDIR,
 -## DISTCHECK_CONFIGURE_FLAGS and DISABLE_HARD_ERRORS are exceptions, too,
 -## as package authors are urged not to initialize them anywhere.
 -## Finally, 'exp' is used by some ad-hoc checks, where we ensure it's
 -## ok to override it from the command line.
 -sc_tests_overriding_macros_on_cmdline:
 -      @if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(xtests); then \
 -        echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
 -        echo ' in the above lines, it is more portable.' 1>&2; \
--        exit 1; \
-        }
 -      fi
 -# The first s/// tries to account for usages like "$MAKE || st=$?".
 -# 'DISTCHECK_CONFIGURE_FLAGS' and 'exp' are allowed to contain whitespace in
 -# their definitions, hence the more complex last three substitutions below.
 -# Also, the 'make-dryrun.test' is whitelisted, since there we need to
 -# override variables from the command line in order to cover the expected
 -# code paths.
 -      @tests=`for t in $(xtests); do \
 -                case $$t in */make-dryrun.test);; *) echo $$t;; esac; \
 -              done`; \
 -      if sed -e 's/ || .*//' -e 's/ && .*//' \
 -              -e 's/ DESTDIR=[^ ]*/ /' -e 's/ SHELL=[^ ]*/ /' \
 -              -e 's/ V=[^ ]*/ /' -e 's/ DISABLE_HARD_ERRORS=[^ ]*/ /' \
 -              -e "s/ DISTCHECK_CONFIGURE_FLAGS='[^']*'/ /" \
 -              -e 's/ DISTCHECK_CONFIGURE_FLAGS="[^"]*"/ /' \
 -              -e 's/ DISTCHECK_CONFIGURE_FLAGS=[^ ]/ /' \
 -              -e "s/ exp='[^']*'/ /" \
 -              -e 's/ exp="[^"]*"/ /' \
 -              -e 's/ exp=[^ ]/ /' \
 -            $$tests | grep '\$$MAKE .*='; then \
 -        echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
 -        echo 'it is more portable.' 1>&2; \
 -        exit 1; \
 -      fi
 -      @if grep 'SHELL=.*\$$MAKE' $(xtests); then \
 -        echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=$$SHELL" in' 1>&2; \
 -        echo 'the above lines.' 1>&2; \
 -        exit 1; \
 -      fi
--
  ## Never use `sleep 1' to create files with different timestamps.
  ## Use `$sleep' instead.  Some filesystems (e.g., Windows') have only
  ## a 2sec resolution.
Simple merge
Simple merge
diff --cc tests/defs
Simple merge
Simple merge
Simple merge
index 2fef1c1208df5c2f2c12cbfad7c8a184f3916a67,5af8a18d14e4a474db6954b9805b7d47ffe9a239..cde8f77e50a66d18a4b82e1a4a7795d105ec5af9
@@@ -42,9 -42,10 +42,9 @@@ libfoo_la_SOURCES = foo.x
          && echo 'void yyerror (char *s) {}' \
          && echo '%}' \
          && echo '%%' \
-         && echo 'foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};' \
+         && echo "foobar : 'f' 'o' 'o' 'b' 'a' 'r' {};" \
          && echo '%%' \
 -## Account for VPATH issues on weaker make implementations.
 -        && cat `test -f '$<' || echo $(srcdir)/`$<; \
 +        && cat $<; \
        } > $@-t
        mv -f $@-t $@
  .PHONY: test
Simple merge