diff options
| author | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-21 00:28:58 (GMT) |
|---|---|---|
| committer | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-21 00:28:58 (GMT) |
| commit | 30664716b8dd63de48ab40865c48db8580f4956b (patch) | |
| tree | 082e3d382bbc69ffcee00cb88b7ad0b9ac0951c4 /test/LINK/VersionedLib-subdir.py | |
| parent | 810d9787e113ec41451bb4722a764f551cb35178 (diff) | |
| download | SCons-30664716b8dd63de48ab40865c48db8580f4956b.zip SCons-30664716b8dd63de48ab40865c48db8580f4956b.tar.gz SCons-30664716b8dd63de48ab40865c48db8580f4956b.tar.bz2 | |
correct logic in VersionedLib*.py tests
Diffstat (limited to 'test/LINK/VersionedLib-subdir.py')
| -rw-r--r-- | test/LINK/VersionedLib-subdir.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/LINK/VersionedLib-subdir.py b/test/LINK/VersionedLib-subdir.py index 15369ef..a2e141b 100644 --- a/test/LINK/VersionedLib-subdir.py +++ b/test/LINK/VersionedLib-subdir.py @@ -37,6 +37,7 @@ import os import sys import SCons.Platform +import SCons.Defaults test = TestSCons.TestSCons() @@ -58,11 +59,13 @@ int main() } """) +env = SCons.Defaults.DefaultEnvironment() platform = SCons.Platform.platform_default() +tool_list = SCons.Platform.DefaultToolList(platform, env) -if platform == 'darwin': +if 'applelink' in tool_list: subdir = 'blah.0.1.2.dylib.blah' -elif platform == 'cygwin': +elif 'cyglink' in tool_list: subdir = 'blah-0-1-2.dll.a.blah' else: subdir = 'blah.so.0.1.2.blah' @@ -90,7 +93,7 @@ if sys.platform.find('irix') != -1: test.run(program = test.workpath('main')) -if platform == 'posix': +if 'gnulink' in tool_list: # All (?) the files we expect will get created in the current directory files = [ 'libfoo.so', @@ -98,14 +101,14 @@ if platform == 'posix': 'libfoo.so.0.1.2', ] obj = 'foo.os' -elif platform == 'darwin': +elif 'applelink' in tool_list: # All (?) the files we expect will get created in the current directory files = [ 'libfoo.dylib', 'libfoo.0.1.2.dylib', ] obj = 'foo.os' -elif platform == 'cygwin': +elif 'cyglink' in tool_list: # All (?) the files we expect will get created in the current directory files = [ 'cygfoo-0-1-2.dll', @@ -113,14 +116,14 @@ elif platform == 'cygwin': 'libfoo.dll.a', ] obj = 'foo.os' -elif platform == 'win32': +elif 'mslink' in tool_list: # All (?) the files we expect will get created in the current directory files = [ 'foo.dll', 'foo.lib', ] obj = 'foo.obj' -elif platform == 'sunos': +elif 'sunlink' in tool_list: # All (?) the files we expect will get created in the current directory files = [ 'libfoo.so', |
