summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Rosin <peda@lysator.liu.se>2010-11-16 13:01:58 +0100
committerPeter Rosin <peda@lysator.liu.se>2010-11-16 13:01:58 +0100
commit38846c5f1cb8ad3745bc9a37816fb1cb7d75b399 (patch)
tree555f6c29116496e4158f052543303a45d790085e /tests
parentf4610768555fa588dd2d25e77651dd3a22540108 (diff)
downloadautomake-38846c5f1cb8ad3745bc9a37816fb1cb7d75b399.tar.gz
Skip MSVC oriented tests if the shell is not capable.
* tests/defs.in: New required entry 'xsi-shell'. * tests/ar-lib.test, tests/compile3.test, tests/compile6.test: Require a XSI capable shell. Reported by Ralf Wildenhues. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ar-lib.test1
-rwxr-xr-xtests/compile3.test1
-rwxr-xr-xtests/compile6.test1
-rw-r--r--tests/defs.in9
4 files changed, 12 insertions, 0 deletions
diff --git a/tests/ar-lib.test b/tests/ar-lib.test
index 31d87edda..a929ea4d6 100755
--- a/tests/ar-lib.test
+++ b/tests/ar-lib.test
@@ -16,6 +16,7 @@
# Make sure `ar-lib' wraps the Microsoft Library Manager (lib) correctly
+required=xsi-shell
. ./defs || Exit 1
set -e
diff --git a/tests/compile3.test b/tests/compile3.test
index 5a5be7e55..15064a6fd 100755
--- a/tests/compile3.test
+++ b/tests/compile3.test
@@ -16,6 +16,7 @@
# Make sure `compile' wraps the Microsoft C/C++ compiler (cl) correctly
+required=xsi-shell
. ./defs || Exit 1
set -e
diff --git a/tests/compile6.test b/tests/compile6.test
index 0f09e84db..f45a5342f 100755
--- a/tests/compile6.test
+++ b/tests/compile6.test
@@ -16,6 +16,7 @@
# Make sure `compile' searches libraries correctly
+required=xsi-shell
. ./defs || Exit 1
set -e
diff --git a/tests/defs.in b/tests/defs.in
index af4a3cd9a..da744c3b4 100644
--- a/tests/defs.in
+++ b/tests/defs.in
@@ -219,6 +219,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' ) || exit 77
+ ;;
# Generic case: the tool must support --version.
*)
echo "$me: running $tool --version"