[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: check the depmodes 'msvisualcpp' and 'msvcmsys'
From: |
Peter Rosin |
Subject: |
[PATCH] tests: check the depmodes 'msvisualcpp' and 'msvcmsys' |
Date: |
Wed, 08 Feb 2012 11:03:57 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
* 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 | 10 ++++++++++
tests/gen-testsuite-part | 4 ++++
2 files changed, 14 insertions(+), 0 deletions(-)
Hi!
Can I assume that 'uname' works? If so, ok for master?
Cheers,
Peter
diff --git a/tests/defs b/tests/defs
index 6d3810b..6031033 100644
--- a/tests/defs
+++ b/tests/defs
@@ -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,12 @@ do
|| skip_all_ "cannot find a makeinfo program that groks the" \
"\`--html' option"
;;
+ mingw)
+ 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.
diff --git a/tests/gen-testsuite-part b/tests/gen-testsuite-part
index 40e6dfc..ad00657 100755
--- a/tests/gen-testsuite-part
+++ b/tests/gen-testsuite-part
@@ -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)
--
1.7.5.1
- [PATCH] tests: check the depmodes 'msvisualcpp' and 'msvcmsys',
Peter Rosin <=