diff options
author | Daniel <dmoody256@gmail.com> | 2019-01-12 09:21:08 (GMT) |
---|---|---|
committer | Daniel <dmoody256@gmail.com> | 2019-01-12 09:21:08 (GMT) |
commit | dbb5bb7c6905e388c41dad912830b983ea70e57d (patch) | |
tree | 563626b7522ebb04e448e4b31dd59d4b48432753 /test/MSVC | |
parent | 3e68e53b03e531f453edba8bc0443b5c19dde211 (diff) | |
download | SCons-dbb5bb7c6905e388c41dad912830b983ea70e57d.zip SCons-dbb5bb7c6905e388c41dad912830b983ea70e57d.tar.gz SCons-dbb5bb7c6905e388c41dad912830b983ea70e57d.tar.bz2 |
added test for vs 14.1 and checking arm targets
Diffstat (limited to 'test/MSVC')
-rw-r--r-- | test/MSVC/TARGET_ARCH.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/MSVC/TARGET_ARCH.py b/test/MSVC/TARGET_ARCH.py index 1df28d0..9d5c008 100644 --- a/test/MSVC/TARGET_ARCH.py +++ b/test/MSVC/TARGET_ARCH.py @@ -29,6 +29,8 @@ Test the ability to configure the $TARGET_ARCH construction variable. """ import TestSCons +import SCons.Tool.MSCommon.vc as msvc +from SCons.Tool.MSCommon.vc import get_msvc_version_numeric _python_ = TestSCons._python_ @@ -56,6 +58,26 @@ test.run(arguments = ".", status=2, stderr=None) test.must_contain_any_line(test.stderr(), "Unrecognized target architecture") test.must_contain_any_line(test.stderr(), "Valid architectures") +test.write('SConstruct', """ +env = Environment(tools=['default', 'msvc'], + TARGET_ARCH = 'arm', MSVC_VERSION='11.0') +if env.Detect('cl'): + env.Command('checkarm', [], 'cl') +""" % locals()) +test.run(arguments = ".", stderr = None) +if test.stderr().strip() is not "" and "ARM" not in test.stderr(): + test.fail_test() + +test.write('SConstruct', """ +env = Environment(tools=['default', 'msvc'], + TARGET_ARCH = 'arm64', MSVC_VERSION='11.0') +if env.Detect('cl'): + env.Command('checkarm64', [], 'cl') +""" % locals()) +test.run(arguments = ".", stderr = None) +if test.stderr().strip() is not "" and "ARM64" not in test.stderr(): + test.fail_test() + test.pass_test() # Local Variables: |