]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'master' into ng/master
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 Apr 2012 21:34:17 +0000 (23:34 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 Apr 2012 21:34:17 +0000 (23:34 +0200)
* master:
  news: Automake 1.13 will require Autoconf >= 2.65
  news: put planned future backward-incompatibilities on top
  readme: update INSTALL to latest version from Autoconf
  sync: some auxiliary files synced from upstream
  hacking: copyright notices must be updated before releasing
  color-tests: coloring can be forced on non-ANSI terminals as well
  tests: root can write on files without write perms; cater for this
  tests: require lex, not yacc, in a lex test case
  AM_PROG_MKDIR_P: remove as obsolete
  AM_PROG_MKDIR_P: deprecate, to be removed in Automake 1.13
  maint: fix a comment typo

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
1  2 
Makefile.am
configure.ac
lib/am/check.am
m4/init.m4
syntax-checks.mk
t/ax/tap-summary-aux.sh
t/ax/testsuite-summary-checks.sh
t/color.sh
t/color2.sh
t/tap-color.sh

diff --cc Makefile.am
index bc8d5575f54ee406d715d4858b0d1607c44a4c12,5fb8fe32002487cbff5d7e410165d2d9d7a6a956..5e901092a9f5c3e7f4e87a1521d0daf6a052ccb2
@@@ -285,9 -273,9 +285,8 @@@ dist_automake_ac_DATA = 
    m4/lex.m4 \
    m4/lispdir.m4 \
    m4/maintainer.m4 \
 -  m4/make.m4 \
    m4/minuso.m4 \
    m4/missing.m4 \
-   m4/mkdirp.m4 \
    m4/options.m4 \
    m4/protos.m4 \
    m4/python.m4 \
diff --cc configure.ac
index 25208bdede9d20583b842ae08ec58b66be357cd1,6c4208a186a86ebd785eaa7186eb49f76fb89ece..f92902a1fe941461d82f20acd06fc5c72f2f630e
@@@ -40,10 -40,10 +40,10 @@@ dnl We call AC_PROG_CC in an unusual wa
  dnl testsuite, so also use 'no-dependencies' and 'no-define' among
  dnl the automake options to avoid bloating and potential problems.
  AM_INIT_AUTOMAKE([dist-xz filename-length-max=99 color-tests
 -                parallel-tests silent-rules no-define no-dependencies])
 +                  parallel-tests no-define no-dependencies])
  
  ## Keep this on a line of its own, since it must be found and processed
- ## by the 'update-copyright' rule in out Makefile.
+ ## by the 'update-copyright' rule in our Makefile.
  RELEASE_YEAR=2012
  AC_SUBST([RELEASE_YEAR])
  
diff --cc lib/am/check.am
Simple merge
diff --cc m4/init.m4
Simple merge
Simple merge
index 49b86f28731a96e0b3457b37be4e367bbeae43fc,3848fd1b41de33de9af12502173fe3e86f94d8b6..77dd0982069a84f350697d426bdacbc53991041b
@@@ -56,7 -56,9 +56,9 @@@ do_check (
    cat all.test
    st=0
    if test $use_colors = yes; then
-     make_cmd="$MAKE TERM=ansi AM_COLOR_TESTS=always"
+     # Forced colorization should take place also with non-ANSI terminals;
+     # hence the "TERM=dumb" definition.
 -    make_cmd="env TERM=dumb AM_COLOR_TESTS=always $MAKE -e"
++    make_cmd="$MAKE TERM=dumb AM_COLOR_TESTS=always"
    else
      make_cmd=$MAKE
    fi
Simple merge
diff --cc t/color.sh
index edae625e06b75c41bd9966b5216b94bf67a908c7,c9fe302d0953518432f3a464646f081b3a246551..a08ea191384707a0d6dbad2151fba6d15d9488a2
@@@ -114,11 -141,14 +114,14 @@@ for vpath in false :; d
  
    $srcdir/configure
  
-   $MAKE check AM_COLOR_TESTS=always >stdout && { cat stdout; Exit 1; }
+   # Forced colorization should take place also with non-ANSI terminals;
+   # hence the "TERM=dumb" definition.
 -  TERM=dumb AM_COLOR_TESTS=always $MAKE -e check >stdout \
++  $MAKE check AM_COLOR_TESTS=always TERM=dumb >stdout \
+     && { cat stdout; Exit 1; }
    cat stdout
    test_color
  
-   $MAKE check >stdout && { cat stdout; Exit 1; }
 -  TERM=ansi $MAKE -e check >stdout && { cat stdout; Exit 1; }
++  $MAKE check TERM=ansi >stdout && { cat stdout; Exit 1; }
    cat stdout
    test_no_color
  
diff --cc t/color2.sh
Simple merge
diff --cc t/tap-color.sh
index 794f459086e58cb41df398143df08ff01398d381,b803306dfa1a1d65675d4c20ad09eafcb7fbdfc0..64f85a3a49afb1da5cc042545d384ad2cccd0779
@@@ -130,17 -125,47 +125,20 @@@ test_color (
  
  test_no_color ()
  {
 -  # With make implementations that, like Solaris make, in case of errors
 -  # print the whole failing recipe on standard output, we should content
 -  # ourselves with a laxer check, to avoid false positives.
 -  # Keep this in sync with lib/am/check.am:$(am__color_tests).
 -  if $FGREP '= Xalways; then' stdout; then
 -    # Extra verbose make, resort to laxer checks.
 -    # But we also want to check that the testsuite summary is not unduly
 -    # colorized.
 -    (
 -      set +e # In case some grepped regex below isn't matched.
 -      # Not a useless use of cat; see above comments about grep.
 -      cat stdout | grep "TOTAL.*:"
 -      cat stdout | grep "PASS.*:"
 -      cat stdout | grep "FAIL.*:"
 -      cat stdout | grep "SKIP.*:"
 -      cat stdout | grep "XFAIL.*:"
 -      cat stdout | grep "XPASS.*:"
 -      cat stdout | grep "ERROR.*:"
 -      cat stdout | grep "^#"
 -      cat stdout | grep 'test.*expected'
 -      cat stdout | grep 'test.*not run'
 -      cat stdout | grep '===='
 -      cat stdout | grep '[Ss]ee .*test-suite\.log'
 -      cat stdout | grep '[Tt]estsuite summary'
 -    ) | grep "$esc" && Exit 1
 -    : For shells with broken 'set -e'
 -  else
 -    cat stdout | grep "$esc" && Exit 1
 -    : For shells with broken 'set -e'
 -  fi
 +  cat stdout | grep "$esc" && Exit 1
 +  :
  }
  
- AM_COLOR_TESTS=always $MAKE check >stdout && { cat stdout; Exit 1; }
 +# It should be possible to override AM_COLOR_TESTS also from the
 +# environment.
+ # Forced colorization should take place also with non-ANSI terminals;
+ # hence the "TERM=dumb" definition.
+ TERM=dumb AM_COLOR_TESTS=always $MAKE check >stdout \
+   && { cat stdout; Exit 1; }
  cat stdout
  test_color
  
- $MAKE check >stdout && { cat stdout; Exit 1; }
 -TERM=ansi $MAKE -e check >stdout \
 -  && { cat stdout; Exit 1; }
++$MAKE check TERM=ansi >stdout && { cat stdout; Exit 1; }
  cat stdout
  test_no_color