summaryrefslogtreecommitdiffstats
path: root/test/LINK/VersionedLib.py
diff options
context:
space:
mode:
authorPawel Tomulik <ptomulik@meil.pw.edu.pl>2015-09-21 00:28:58 (GMT)
committerPawel Tomulik <ptomulik@meil.pw.edu.pl>2015-09-21 00:28:58 (GMT)
commit30664716b8dd63de48ab40865c48db8580f4956b (patch)
tree082e3d382bbc69ffcee00cb88b7ad0b9ac0951c4 /test/LINK/VersionedLib.py
parent810d9787e113ec41451bb4722a764f551cb35178 (diff)
downloadSCons-30664716b8dd63de48ab40865c48db8580f4956b.zip
SCons-30664716b8dd63de48ab40865c48db8580f4956b.tar.gz
SCons-30664716b8dd63de48ab40865c48db8580f4956b.tar.bz2
correct logic in VersionedLib*.py tests
Diffstat (limited to 'test/LINK/VersionedLib.py')
-rw-r--r--test/LINK/VersionedLib.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py
index 360fa24..599c8aa 100644
--- a/test/LINK/VersionedLib.py
+++ b/test/LINK/VersionedLib.py
@@ -29,12 +29,13 @@ import sys
import TestSCons
import SCons.Platform
+import SCons.Defaults
-_exe = TestSCons._exe
-
+env = SCons.Defaults.DefaultEnvironment()
platform = SCons.Platform.platform_default()
+tool_list = SCons.Platform.DefaultToolList(platform, env)
-if platform == 'posix':
+if 'gnulink' in tool_list:
test_plan = [
{
'libversion' : '2',
@@ -73,7 +74,7 @@ if platform == 'posix':
'symlinks' : [ ('libtest.so', 'libtest.so.2.dfffa11'), ('libtest.so.2', 'libtest.so.2.dfffa11') ],
},
]
-elif platform == 'darwin':
+elif 'applelink' in tool_list:
# All (?) the files we expect will get created in the current directory
test_plan = [
{
@@ -83,7 +84,7 @@ elif platform == 'darwin':
'symlinks' : [],
},
]
-elif platform == 'cygwin':
+elif 'cyglink' in tool_list:
test_plan = [
{
'libversion' : '2',
@@ -122,7 +123,7 @@ elif platform == 'cygwin':
'symlinks' : [ ('libtest.dll.a', 'libtest-2-dfffa11.dll.a') ],
},
]
-elif platform == 'win32':
+elif 'mslink' in tool_list:
test_plan = [
{
'libversion' : '2.5.4',
@@ -131,7 +132,7 @@ elif platform == 'win32':
'symlinks' : [],
},
]
-elif platform == 'sunos':
+elif 'sunlink' in tool_list:
test_plan = [
{
'libversion' : '2',