From: Stefano Lattarini Date: Mon, 8 Aug 2011 13:00:25 +0000 (+0200) Subject: test defs: fix skip directives to work also with TAP-based tests X-Git-Tag: ng-0.5a~89^2~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4896832bde810feb7d329f9674082f2d7fc0996;p=thirdparty%2Fautomake.git test defs: fix skip directives to work also with TAP-based tests * test/defs: Use `skip_all_', not `skip_', to issue a skip of the whole calling test script. --- diff --git a/ChangeLog b/ChangeLog index 4d2f5dab8..55179a0e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-08-08 Stefano Lattarini + + test defs: fix skip directives to work also with TAP-based tests + * test/defs: Use `skip_all_', not `skip_', to issue a skip of the + whole calling test script. + 2011-08-08 Stefano Lattarini test defs: more environment cleanup diff --git a/tests/defs b/tests/defs index 277897252..d3ae1dd80 100644 --- a/tests/defs +++ b/tests/defs @@ -428,7 +428,7 @@ require_xsi () { test $# -eq 1 || fatal_ "require_xsi needs exactly one argument" echo "$me: trying some XSI constructs with $1" - $1 -c "$xsi_shell_code" || skip_ "$1 lacks XSI features" + $1 -c "$xsi_shell_code" || skip_all_ "$1 lacks XSI features" } # Shell code supposed to work only with XSI shells. Keep this in sync # with libtool.m4:_LT_CHECK_SHELL_FEATURES. @@ -470,13 +470,13 @@ do case $tool in :) ;; cc) - test "$CC" = false && skip_ "no C compiler available";; + test "$CC" = false && skip_all_ "no C compiler available";; c++) - test "$CXX" = false && skip_ "no C++ compiler available";; + test "$CXX" = false && skip_all_ "no C++ compiler available";; fortran) - test "$FC" = false && skip_ "no Fortran compiler available";; + test "$FC" = false && skip_all_ "no Fortran compiler available";; fortran77) - test "$F77" = false && skip_ "no Fortran 77 compiler available";; + test "$F77" = false && skip_all_ "no Fortran 77 compiler available";; xsi-shell) require_xsi "$SHELL";; xsi-bin-sh) @@ -492,19 +492,19 @@ do # Do not use --version, bzip2 still tries to compress stdin. echo "$me: running bzip2 --help" bzip2 --help \ - || skip_ "required program \`bzip2' not available" + || skip_all_ "required program \`bzip2' not available" ;; cl) CC=cl export CC echo "$me: running $CC -?" - $CC -? || skip_ "Microsoft C compiler \`$CC' not available" + $CC -? || skip_all_ "Microsoft C compiler \`$CC' not available" ;; cscope) # Sun cscope is interactive without redirection. echo "$me: running cscope --version