]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'master' into testsuite-work
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 May 2011 21:09:54 +0000 (23:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 May 2011 21:09:54 +0000 (23:09 +0200)
1  2 
ChangeLog
tests/defs

diff --cc ChangeLog
index 6ab07c7e7b52c3ed8bfe43849defb39bd21844f0,a6a07450301e08bcb2474f1531316f35d0c4af7d..4b10c8e6686cac96f0ae0384d90472072cd47ce9
+++ b/ChangeLog
@@@ -1,37 -1,18 +1,52 @@@
+ 2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
+       tests defs: allow requirements for compilers (mostly dummy)
+       Most of the new requirements that are now accepted in `$required'
+       as consequence of this patch are still dummy.  They are planned
+       to be implemented only in master (or in some derived branch), but
+       having them here (even just as no-op) will allow for an easier
+       integration/backporting of potential new testcases.
+       * tests/defs.in (cc, c++, fortran, fortran77): New requirements,
+       still dummy.
+       (flex): New requirement, picking LEX for configure.
+       (lex): New requirement, alias for `flex'.  A more appropriate
+       implementation, looking for a generic `lex' program, will follow
+       in the future.
 +2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests: 'silent-many-gcc.test' improved and made more robust
 +      * tests/silent-many-gcc.test:  Also force "fast" gcc depmode
 +      for C++ compilations.  Add sanity checks verifying that the
 +      cache variables we force are really used by configure.  Fix
 +      typo in comments.
 +
 +2011-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests: drop useless requirements of 'g++'
 +      * tests/lflags2.test ($required): Remove 'g++', as any working
 +      C++ compiler should be enough, and ./configure will cause the
 +      test to skip if no working C++ compiler is found.
 +      * tests/yflags2.test: Likewise.
 +      * tests/subobj9.test: Likewise.
 +      * tests/silentcxx.test: Likewise.  Also, do not force depmodes
 +      that could cause non-GNU C++ compilers to fail.
 +      * tests/silentcxx-gcc.test: New test, like `silentcxx.test',
 +      but forcing "fast" gcc depmode (and thus requiring the GNU C++
 +      compiler).
 +      * tests/specflg10.test: Add proper "fixme" comment telling that
 +      we should make this test work with a generic C++ compiler.
 +      * tests/Makefile.am (TESTS): Update.
 +
 +2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
 +
 +      tests defs: one more environment sanitization (corner case)
 +      * tests/defs (am__using_gmake): Initialize.  The `using_gmake'
 +      subroutine was using this variable for caching, but wasn't
 +      initializing it, which could cause problems in the (admittedly
 +      very unlikely) case in which it was pre-existent in the
 +      environment.
 +
  2011-05-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
  
        tests: add forgotten test scripts to $(TESTS)
diff --cc tests/defs
index 44c5b3b5aaa0ac563d985d164f32046f15af69e1,6ee183017f4eabedc1a3c52f07e05e6a5739c4e3..d2f1284661fbbb2da2a171ad54b527df4dfef9f4
        test "${_am_dummy##*/},${_am_dummy%/*},${_am_dummy#??}"${_am_dummy%"$_am_dummy"}, \
                = c,a/b,b/c, \
        && eval 'test $(( 1 + 1 )) -eq 2 \
 -      && test "${#_am_dummy}" -eq 5' ) || exit 77
 +      && test "${#_am_dummy}" -eq 5' ) \
 +          || skip_ "the shell lacks some required XSI features"
        ;;
+     flex|lex)
+       # Since flex is required, we pick LEX for ./configure.
+       LEX=flex
+       export LEX
+       echo "$me: running flex --version"
+       flex --version || exit 77
+       ;;
      yacc)
        if test x"$YACC" = x"no"; then
          # The user has explicitly told he doesn't want a yacc program