diff options
author | William Deegan <bill@baddogconsulting.com> | 2010-06-05 03:18:15 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2010-06-05 03:18:15 (GMT) |
commit | ddbf45ad4b1086ac6493c0d3649310945d85313a (patch) | |
tree | d626936fe75e669a137228cf72137030cba2e47b /test | |
parent | 87bd27f06c0e23fedb66c4c5a46b564c1ce88ce7 (diff) | |
download | SCons-ddbf45ad4b1086ac6493c0d3649310945d85313a.zip SCons-ddbf45ad4b1086ac6493c0d3649310945d85313a.tar.gz SCons-ddbf45ad4b1086ac6493c0d3649310945d85313a.tar.bz2 |
Re-enable tests on non win32 platforms.
This should alter the HOST_ARCH for these tests on non-x86 platforms to x86 and therefore run.
Diffstat (limited to 'test')
-rw-r--r-- | test/MSVS/vs-6.0-clean.py | 10 | ||||
-rw-r--r-- | test/MSVS/vs-6.0-files.py | 11 | ||||
-rw-r--r-- | test/MSVS/vs-6.0-variant_dir.py | 9 | ||||
-rw-r--r-- | test/MSVS/vs-7.0-clean.py | 9 | ||||
-rw-r--r-- | test/MSVS/vs-7.0-files.py | 6 | ||||
-rw-r--r-- | test/MSVS/vs-7.0-variant_dir.py | 6 | ||||
-rw-r--r-- | test/MSVS/vs-7.1-clean.py | 9 | ||||
-rw-r--r-- | test/MSVS/vs-7.1-files.py | 6 | ||||
-rw-r--r-- | test/MSVS/vs-7.1-variant_dir.py | 6 | ||||
-rw-r--r-- | test/MSVS/vs-8.0-clean.py | 9 | ||||
-rw-r--r-- | test/MSVS/vs-8.0-files.py | 6 | ||||
-rw-r--r-- | test/MSVS/vs-8.0-variant_dir.py | 6 | ||||
-rw-r--r-- | test/MSVS/vs-8.0-x64-files.py | 7 |
13 files changed, 38 insertions, 62 deletions
diff --git a/test/MSVS/vs-6.0-clean.py b/test/MSVS/vs-6.0-clean.py index 8db5189..052acae 100644 --- a/test/MSVS/vs-6.0-clean.py +++ b/test/MSVS/vs-6.0-clean.py @@ -34,10 +34,9 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() + -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['6.0'] @@ -50,7 +49,8 @@ expected_dswfile = TestSConsMSVS.expected_dswfile_6_0 test.write('SConstruct', """\ -env=Environment(platform='win32', tools=['msvs'], MSVS_VERSION='6.0') +env=Environment(platform='win32', tools=['msvs'], + MSVS_VERSION='6.0',HOST_ARCH='%(HOST_ARCH)s') testsrc = ['test.c'] testincs = ['sdk.h'] @@ -72,7 +72,7 @@ env.MSVSSolution(target = 'Test.dsw', slnguid = '{SLNGUID}', projects = [p], variant = 'Release') -""") +"""%{'HOST_ARCH':host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-6.0-files.py b/test/MSVS/vs-6.0-files.py index 41b579b..b6ac4f0 100644 --- a/test/MSVS/vs-6.0-files.py +++ b/test/MSVS/vs-6.0-files.py @@ -33,24 +33,19 @@ import TestSConsMSVS import sys -test = TestSConsMSVS.TestSConsMSVS() - -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) +test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['6.0'] - expected_dspfile = TestSConsMSVS.expected_dspfile_6_0 expected_dswfile = TestSConsMSVS.expected_dswfile_6_0 SConscript_contents = TestSConsMSVS.SConscript_contents_6_0 - -test.write('SConstruct', SConscript_contents) +test.write('SConstruct', SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments="Test.dsp") diff --git a/test/MSVS/vs-6.0-variant_dir.py b/test/MSVS/vs-6.0-variant_dir.py index 71ed3ac..02bc7e5 100644 --- a/test/MSVS/vs-6.0-variant_dir.py +++ b/test/MSVS/vs-6.0-variant_dir.py @@ -35,15 +35,12 @@ import sys test = TestSConsMSVS.TestSConsMSVS() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) +host_arch = test.get_vs_host_arch() + # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['6.0'] - - expected_dspfile = TestSConsMSVS.expected_dspfile_6_0 expected_dswfile = TestSConsMSVS.expected_dswfile_6_0 SConscript_contents = TestSConsMSVS.SConscript_contents_6_0 @@ -55,7 +52,7 @@ test.write('SConstruct', """\ SConscript('src/SConscript', variant_dir='build') """) -test.write(['src', 'SConscript'], SConscript_contents) +test.write(['src', 'SConscript'], SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-7.0-clean.py b/test/MSVS/vs-7.0-clean.py index a646218..0bb4d62 100644 --- a/test/MSVS/vs-7.0-clean.py +++ b/test/MSVS/vs-7.0-clean.py @@ -34,10 +34,8 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['7.0'] @@ -50,7 +48,8 @@ expected_vcprojfile = TestSConsMSVS.expected_vcprojfile_7_0 test.write('SConstruct', """\ -env=Environment(platform='win32', tools=['msvs'], MSVS_VERSION='7.0') +env=Environment(platform='win32', tools=['msvs'], + MSVS_VERSION='7.0',HOST_ARCH='%(HOST_ARCH)s') testsrc = ['test1.cpp', 'test2.cpp'] testincs = ['sdk.h'] @@ -72,7 +71,7 @@ env.MSVSSolution(target = 'Test.sln', slnguid = '{SLNGUID}', projects = [p], variant = 'Release') -""") +"""%{'HOST_ARCH':host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-7.0-files.py b/test/MSVS/vs-7.0-files.py index d63b3c8..62d08dc 100644 --- a/test/MSVS/vs-7.0-files.py +++ b/test/MSVS/vs-7.0-files.py @@ -36,10 +36,8 @@ import sys import TestSConsMSVS test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['7.0'] @@ -52,7 +50,7 @@ SConscript_contents = TestSConsMSVS.SConscript_contents_7_0 -test.write('SConstruct', SConscript_contents) +test.write('SConstruct', SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments="Test.vcproj") diff --git a/test/MSVS/vs-7.0-variant_dir.py b/test/MSVS/vs-7.0-variant_dir.py index c9c1ec2..878a969 100644 --- a/test/MSVS/vs-7.0-variant_dir.py +++ b/test/MSVS/vs-7.0-variant_dir.py @@ -34,10 +34,8 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['7.0'] @@ -56,7 +54,7 @@ test.write('SConstruct', """\ SConscript('src/SConscript', variant_dir='build') """) -test.write(['src', 'SConscript'], SConscript_contents) +test.write(['src', 'SConscript'], SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-7.1-clean.py b/test/MSVS/vs-7.1-clean.py index 7357b30..bd657a8 100644 --- a/test/MSVS/vs-7.1-clean.py +++ b/test/MSVS/vs-7.1-clean.py @@ -34,10 +34,8 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['7.1'] @@ -50,7 +48,8 @@ expected_vcprojfile = TestSConsMSVS.expected_vcprojfile_7_1 test.write('SConstruct', """\ -env=Environment(platform='win32', tools=['msvs'], MSVS_VERSION='7.1') +env=Environment(platform='win32', tools=['msvs'], + MSVS_VERSION='7.1',HOST_ARCH='%(HOST_ARCH)s') testsrc = ['test1.cpp', 'test2.cpp'] testincs = ['sdk.h'] @@ -72,7 +71,7 @@ env.MSVSSolution(target = 'Test.sln', slnguid = '{SLNGUID}', projects = [p], variant = 'Release') -""") +"""%{'HOST_ARCH':host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-7.1-files.py b/test/MSVS/vs-7.1-files.py index 4fa0627..1df10f4 100644 --- a/test/MSVS/vs-7.1-files.py +++ b/test/MSVS/vs-7.1-files.py @@ -36,10 +36,8 @@ import sys import TestSConsMSVS test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['7.1'] @@ -52,7 +50,7 @@ SConscript_contents = TestSConsMSVS.SConscript_contents_7_1 -test.write('SConstruct', SConscript_contents) +test.write('SConstruct', SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments="Test.vcproj") diff --git a/test/MSVS/vs-7.1-variant_dir.py b/test/MSVS/vs-7.1-variant_dir.py index 78afa8a..98640e3 100644 --- a/test/MSVS/vs-7.1-variant_dir.py +++ b/test/MSVS/vs-7.1-variant_dir.py @@ -34,10 +34,8 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['7.1'] @@ -56,7 +54,7 @@ test.write('SConstruct', """\ SConscript('src/SConscript', variant_dir='build') """) -test.write(['src', 'SConscript'], SConscript_contents) +test.write(['src', 'SConscript'], SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-8.0-clean.py b/test/MSVS/vs-8.0-clean.py index 2ac258c..249d8a4 100644 --- a/test/MSVS/vs-8.0-clean.py +++ b/test/MSVS/vs-8.0-clean.py @@ -34,10 +34,8 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['8.0'] @@ -52,7 +50,8 @@ expected_vcprojfile = TestSConsMSVS.expected_vcprojfile_8_0 test.write('SConstruct', """\ env=Environment(platform='win32', tools=['msvs'], MSVS_VERSION='8.0', CPPDEFINES=['DEF1', 'DEF2',('DEF3','1234')], - CPPPATH=['inc1', 'inc2']) + CPPPATH=['inc1', 'inc2'], + HOST_ARCH='%(HOST_ARCH)s') testsrc = ['test1.cpp', 'test2.cpp'] testincs = ['sdk.h'] @@ -74,7 +73,7 @@ env.MSVSSolution(target = 'Test.sln', slnguid = '{SLNGUID}', projects = [p], variant = 'Release') -""") +"""%{'HOST_ARCH': host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-8.0-files.py b/test/MSVS/vs-8.0-files.py index cb3dead..11dfd35 100644 --- a/test/MSVS/vs-8.0-files.py +++ b/test/MSVS/vs-8.0-files.py @@ -36,10 +36,8 @@ import sys import TestSConsMSVS test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['8.0'] @@ -52,7 +50,7 @@ SConscript_contents = TestSConsMSVS.SConscript_contents_8_0 -test.write('SConstruct', SConscript_contents) +test.write('SConstruct', SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments="Test.vcproj") diff --git a/test/MSVS/vs-8.0-variant_dir.py b/test/MSVS/vs-8.0-variant_dir.py index a27cfaf..e5b8c43 100644 --- a/test/MSVS/vs-8.0-variant_dir.py +++ b/test/MSVS/vs-8.0-variant_dir.py @@ -34,10 +34,8 @@ import sys test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['8.0'] @@ -56,7 +54,7 @@ test.write('SConstruct', """\ SConscript('src/SConscript', variant_dir='build') """) -test.write(['src', 'SConscript'], SConscript_contents) +test.write(['src', 'SConscript'], SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments=".") diff --git a/test/MSVS/vs-8.0-x64-files.py b/test/MSVS/vs-8.0-x64-files.py index 97afcae..cfad019 100644 --- a/test/MSVS/vs-8.0-x64-files.py +++ b/test/MSVS/vs-8.0-x64-files.py @@ -36,10 +36,9 @@ import sys import TestSConsMSVS test = TestSConsMSVS.TestSConsMSVS() +host_arch = test.get_vs_host_arch() + -if sys.platform != 'win32': - msg = "Skipping Visual Studio test on non-Windows platform '%s'\n" % sys.platform - test.skip_test(msg) # Make the test infrastructure think we have this version of MSVS installed. test._msvs_versions = ['8.0'] @@ -59,7 +58,7 @@ SConscript_contents = SConscript_contents.replace('\'Release\'', '\'Release|x64\ -test.write('SConstruct', SConscript_contents) +test.write('SConstruct', SConscript_contents%{'HOST_ARCH': host_arch}) test.run(arguments="Test.vcproj") |