tests: check the depmodes 'msvisualcpp' and 'msvcmsys'
authorPeter Rosin <peda@lysator.liu.se>
Wed, 8 Feb 2012 12:35:32 +0000 (13:35 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 8 Feb 2012 12:35:32 +0000 (13:35 +0100)
* tests/defs (cygpath): New requirement, checking that cygpath
is working.
(mingw): New requirement, checking that the build system is
MSYS (in its normal MinGW mode).
* tests/gen-testsuite-part (depmodes): Add entries for depmodes
'msvisualcpp' and 'msvcmsys'.

tests/defs
tests/gen-testsuite-part

index 6d3810b..03766ea 100644 (file)
@@ -729,6 +729,10 @@ do
       cscope --version </dev/null \
         || skip_all_ "required program \`cscope' not available"
       ;;
+    cygpath)
+      echo "$me: running cygpath --version"
+      cygpath --version || skip_all_ "cygpath not available"
+      ;;
     etags)
       # Exuberant Ctags will create a TAGS file even
       # when asked for --help or --version.  (Emacs's etags
@@ -852,6 +856,14 @@ do
         || skip_all_ "cannot find a makeinfo program that groks the" \
                  "\`--html' option"
       ;;
+    mingw)
+      uname_s=`uname -s || echo UNKNOWN`
+      echo "$me: system name: $uname_s"
+      case $uname_s in
+        MINGW*) ;;
+        *) skip_all_ "this test requires MSYS in MinGW mode" ;;
+      esac
+      ;;
     non-root)
       # Skip this test case if the user is root.
       # We try to append to a read-only file to detect this.
index 40e6dfc..ad00657 100755 (executable)
@@ -332,6 +332,10 @@ my %depmodes =
 # This is for older (pre-3.x) GCC versions.  Newer versions
 # have depmode "gcc3".
     gcc          => ["gcc"],
+# This is for older (pre-7) msvc versions.  Newer versions
+# have depmodes "msvc7" and "msvc7msys".
+    msvisualcpp  => ["cl", "cygpath"],
+    msvcmsys     => ["cl", "mingw"],
   );
 
 foreach my $lt (TRUE, FALSE)