summaryrefslogtreecommitdiffstats
path: root/test/LINK/VersionedLib-VariantDir.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/LINK/VersionedLib-VariantDir.py')
-rw-r--r--test/LINK/VersionedLib-VariantDir.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/LINK/VersionedLib-VariantDir.py b/test/LINK/VersionedLib-VariantDir.py
index 7406a33..0a631b0 100644
--- a/test/LINK/VersionedLib-VariantDir.py
+++ b/test/LINK/VersionedLib-VariantDir.py
@@ -33,8 +33,11 @@ import os
import sys
import SCons.Platform
+import SCons.Defaults
+env = SCons.Defaults.DefaultEnvironment()
platform = SCons.Platform.platform_default()
+tool_list = SCons.Platform.DefaultToolList(platform, env)
test = TestSCons.TestSCons()
@@ -96,7 +99,7 @@ if sys.platform.find('irix') != -1:
test.run(program = test.workpath('build/bin/main'))
-if platform == 'posix':
+if 'gnulink' in tool_list:
# All (?) the files we expect will get created in the current directory
files = [
'libfoo.so',
@@ -104,14 +107,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',
@@ -119,14 +122,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',