summaryrefslogtreecommitdiffstats
path: root/test/MSVC
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2012-12-18 20:27:01 (GMT)
committerDirk Baechle <dl9obn@darc.de>2012-12-18 20:27:01 (GMT)
commit66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f (patch)
tree572754fc81a9a5239eee054407aa455ca8de5af4 /test/MSVC
parent02cae725ed116ae6cd996fe3bf5888f7f8f61b97 (diff)
downloadSCons-66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f.zip
SCons-66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f.tar.gz
SCons-66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f.tar.bz2
- fixes for MinGW under Windows, mainly skipping MSVS-specific tests
Diffstat (limited to 'test/MSVC')
-rw-r--r--test/MSVC/PCH-source.py4
-rw-r--r--test/MSVC/PCHSTOP-errors.py4
-rw-r--r--test/MSVC/TARGET_ARCH.py5
-rw-r--r--test/MSVC/batch-longlines.py5
-rw-r--r--test/MSVC/embed-manifest.py5
-rw-r--r--test/MSVC/hierarchical.py4
-rw-r--r--test/MSVC/msvc.py5
-rw-r--r--test/MSVC/multiple-pdb.py5
-rw-r--r--test/MSVC/pch-spaces-subdir.py5
-rw-r--r--test/MSVC/pdb-VariantDir-path.py5
-rw-r--r--test/MSVC/pdb-manifest.py5
-rw-r--r--test/MSVC/query_vcbat.py5
12 files changed, 57 insertions, 0 deletions
diff --git a/test/MSVC/PCH-source.py b/test/MSVC/PCH-source.py
index df6d6b1..c3c0f2e 100644
--- a/test/MSVC/PCH-source.py
+++ b/test/MSVC/PCH-source.py
@@ -41,6 +41,10 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
test.write('SConstruct', """\
env = Environment(tools=['msvc', 'mslink'])
diff --git a/test/MSVC/PCHSTOP-errors.py b/test/MSVC/PCHSTOP-errors.py
index a460283..d3ffc70 100644
--- a/test/MSVC/PCHSTOP-errors.py
+++ b/test/MSVC/PCHSTOP-errors.py
@@ -39,6 +39,10 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
SConstruct_path = test.workpath('SConstruct')
diff --git a/test/MSVC/TARGET_ARCH.py b/test/MSVC/TARGET_ARCH.py
index d6d8b43..8b1c39d 100644
--- a/test/MSVC/TARGET_ARCH.py
+++ b/test/MSVC/TARGET_ARCH.py
@@ -39,6 +39,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
test.write('SConstruct', """
env_64 = Environment(tools=['default', 'msvc'],
TARGET_ARCH = 'amd64')
diff --git a/test/MSVC/batch-longlines.py b/test/MSVC/batch-longlines.py
index 5a04295..a5786fa 100644
--- a/test/MSVC/batch-longlines.py
+++ b/test/MSVC/batch-longlines.py
@@ -39,6 +39,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
_python_ = TestSCons._python_
for i in xrange(1,200):
diff --git a/test/MSVC/embed-manifest.py b/test/MSVC/embed-manifest.py
index 92f36a2..286c2c7 100644
--- a/test/MSVC/embed-manifest.py
+++ b/test/MSVC/embed-manifest.py
@@ -42,6 +42,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
test.write('SConstruct', """\
env=Environment(WINDOWS_EMBED_MANIFEST=True)
env.Append(CCFLAGS = '/MD')
diff --git a/test/MSVC/hierarchical.py b/test/MSVC/hierarchical.py
index f130806..72e5813 100644
--- a/test/MSVC/hierarchical.py
+++ b/test/MSVC/hierarchical.py
@@ -38,6 +38,10 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
test.subdir('src', 'build', 'out')
diff --git a/test/MSVC/msvc.py b/test/MSVC/msvc.py
index 106aed9..d98ffbe 100644
--- a/test/MSVC/msvc.py
+++ b/test/MSVC/msvc.py
@@ -40,6 +40,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
#####
# Test the basics
diff --git a/test/MSVC/multiple-pdb.py b/test/MSVC/multiple-pdb.py
index 0e8caa3..8e86639 100644
--- a/test/MSVC/multiple-pdb.py
+++ b/test/MSVC/multiple-pdb.py
@@ -45,6 +45,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
test.write('SConstruct', """\
env = Environment(PDB = '${TARGET.base}.pdb')
env.Program('test1.cpp')
diff --git a/test/MSVC/pch-spaces-subdir.py b/test/MSVC/pch-spaces-subdir.py
index 991627f..2b66a55 100644
--- a/test/MSVC/pch-spaces-subdir.py
+++ b/test/MSVC/pch-spaces-subdir.py
@@ -39,6 +39,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
test.write('Main.cpp', """\
#include "Precompiled.h"
diff --git a/test/MSVC/pdb-VariantDir-path.py b/test/MSVC/pdb-VariantDir-path.py
index 796c36e..899208e 100644
--- a/test/MSVC/pdb-VariantDir-path.py
+++ b/test/MSVC/pdb-VariantDir-path.py
@@ -40,6 +40,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
test.subdir('src')
test.write('SConstruct', """\
diff --git a/test/MSVC/pdb-manifest.py b/test/MSVC/pdb-manifest.py
index d70989f..46189ac 100644
--- a/test/MSVC/pdb-manifest.py
+++ b/test/MSVC/pdb-manifest.py
@@ -42,6 +42,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
test.write('SConstruct', """\
env = Environment()
diff --git a/test/MSVC/query_vcbat.py b/test/MSVC/query_vcbat.py
index a662008..f07f780 100644
--- a/test/MSVC/query_vcbat.py
+++ b/test/MSVC/query_vcbat.py
@@ -33,6 +33,11 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
+
#####
# Test the basics