From: Stefano Lattarini Date: Sun, 15 May 2011 13:38:14 +0000 (+0200) Subject: Merge branch 'master' into testsuite-work X-Git-Tag: ng-0.5a~89^2~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d448707a0b72421a74d4699f951a251d47738ca;p=thirdparty%2Fautomake.git Merge branch 'master' into testsuite-work * master: testsuite: be more cross-compile friendly tests: fix portability issues in 'repeated-options.test' --- 2d448707a0b72421a74d4699f951a251d47738ca diff --cc ChangeLog index 7859a4e5b,b3a1e7e43..764a99aae --- a/ChangeLog +++ b/ChangeLog @@@ -1,14 -1,19 +1,30 @@@ + 2011-05-15 Stefano Lattarini + + testsuite: be more cross-compile friendly + * tests/defs.in (cross_compiling): New subroutine. + (am__tool_prefix): New internal variable. + (gcc, g++, gcj): Force the use of the correct "tool prefix" + when cross compiling. + (gfortran, g77, non-cross): New requirements. + + 2011-05-15 Stefano Lattarini + + tests: fix portability issues in 'repeated-options.test' + * tests/repeated-options.test: Do not assume that object files + have `.o' suffix and executables have no default suffix; instead, + use `$(OBJEXT)' and `$(EXEEXT)'. + +2011-05-07 Stefano Lattarini + + tests: fix spurious failure of extradep.test on FreeBSD + * tests/extradep.test: When using `ls -t' to determine whether a + file has been updated, make sure to use as reference a file whose + timestamp is expected to be *strictly* older that that of the file + being checked. This is required because at least FreeBSD `ls' do + not sort files with the same timestamp in alphabetical order when + using the `-t' option. + * tests/extradep2.test: Likewise. + 2011-05-07 Stefano Lattarini tests: fix spurious failure of txinfo21.test on FreeBSD diff --cc tests/defs index d2f128466,3be8eade1..e4e3cc1a2 --- a/tests/defs +++ b/tests/defs @@@ -285,29 -291,53 +302,53 @@@ d # always use it. This is important only when the user # has defined CC in his environment, otherwise ./configure will # prefer gcc to other compilers. - CC=gcc + CC=${am__tool_prefix}gcc export CC echo "$me: running $CC --version" - $CC --version || exit 77 + $CC --version || skip_ "GNU C compiler not available" echo "$me: running $CC -v" - $CC -v || exit 77 + $CC -v || skip_ "botched installation for GNU C compiler" ;; gcj) - GCJ=gcj + GCJ=${am__tool_prefix}gcj export GCJ echo "$me: running $GCJ --version" - $GCJ --version || exit 77 + $GCJ --version || skip_ "GNU Java compiler not available" echo "$me: running $GCJ -v" - $GCJ -v || exit 77 + $GCJ -v || skip_ "botched installation for GNU Java compiler" ;; g++) - CXX=g++ + CXX=${am__tool_prefix}g++ export CXX echo "$me: running $CXX --version" - $CXX --version || exit 77 + $CXX --version || skip_ "GNU C++ compiler not available" echo "$me: running $CXX -v" - $CXX -v || exit 77 + $CXX -v || skip_ "botched installation for GNU C++ compiler" ;; + gfortran) + FC=${am__tool_prefix}gfortran + export FC + echo "$me: running $FC --version" + $FC --version || skip_ "GNU Fortran compiler not available" + echo "$me: running $FC -v" + $FC -v || skip_ "botched installation for GNU Fortran compiler" + case " $required " in + *\ g77\ *) ;; + *) F77=$FC; export F77;; + esac + ;; + g77) + F77=${am__tool_prefix}g77 + export F77 + echo "$me: running $F77 --version" + $F77 --version || skip_ "GNU Fortran 77 compiler not available" + echo "$me: running $F77 -v" + $F77 -v || skip_ "botched installation for GNU Fortran 77 compiler" + case " $required " in + *\ gfortran\ *) ;; + *) FC=$F77; export FC;; + esac + ;; icc) CC=icc export CC @@@ -354,9 -382,13 +395,12 @@@ ;; perl-threads) if test "$WANT_NO_THREADS" = "yes"; then - echo "$me: skip with Devel::Cover: cannot cope with threads" >&2 - exit 77 + skip_ "Devel::Cover cannot cope with threads" fi ;; + non-cross) + cross_compiling && skip_ "doesn't work in cross-compile mode" + ;; python) # Python doesn't support --version, it has -V echo "$me: running python -V"