Hi Peter,

* Peter Rosin wrote on Mon, Nov 15, 2010 at 09:19:44AM CET:
> This is based off of master (but I guess it also applies to tests-init)
> but the backport to the msvc branch is trivial. I "stole" the xsi-test
> from libtool.
> 
> Would be good if someone tested on that Alpha before pushing I suppose.

Patch is ok if we also have test coverage of 'compile' in non-MSVC mode
on this system (so we can be sure that the shell doesn't barf skipping
over the XSI code bits).  You can omit dropping the output as you like.
Thanks for the quick feedback!

Cheers,
Ralf

> Subject: [PATCH] Skip MSVC oriented tests if the shell is not capable.
> 
> * tests/defs: New required entry 'xsi-shell'.
> * tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
> Require a XSI capable shell.

> --- a/tests/defs
> +++ b/tests/defs
> @@ -290,6 +290,15 @@ do
>        echo "$me: running texi2dvi -o /dev/null --version"
>        ( texi2dvi -o /dev/null --version ) || exit 77
>        ;;
> +    xsi-shell)
> +      # Try some XSI features.
> +      echo "$me: trying some XSI constructs"
> +      ( _am_dummy="a/b/c"
> +     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' ) >/dev/null 2>&1 || exit 77
> +      ;;
>      *)
>        # Generic case: the tool must support --version.
>        echo "$me: running $tool --version"

Reply via email to