summaryrefslogtreecommitdiffstats
path: root/test/NodeOps.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-09-19 23:08:50 (GMT)
committerSteven Knight <knight@baldmt.com>2004-09-19 23:08:50 (GMT)
commit39a2ebca7357684025d84ffc2c5821e21fa7fb9c (patch)
treee0f1094b9735b22deac5d7f19e41d962fe3f10d0 /test/NodeOps.py
parent07ba45e583a9f03e9a7b91212e165d45d1df1978 (diff)
downloadSCons-39a2ebca7357684025d84ffc2c5821e21fa7fb9c.zip
SCons-39a2ebca7357684025d84ffc2c5821e21fa7fb9c.tar.gz
SCons-39a2ebca7357684025d84ffc2c5821e21fa7fb9c.tar.bz2
Win32 portability fixes for tests.
Diffstat (limited to 'test/NodeOps.py')
-rw-r--r--test/NodeOps.py27
1 files changed, 18 insertions, 9 deletions
diff --git a/test/NodeOps.py b/test/NodeOps.py
index ae9268c..ffb8994 100644
--- a/test/NodeOps.py
+++ b/test/NodeOps.py
@@ -41,12 +41,17 @@ import TestSCons
import os
import string
+_exe = TestSCons._exe
+lib_ = TestSCons.lib_
+_lib = TestSCons._lib
+_obj = TestSCons._obj
+dll_ = TestSCons.dll_
+_dll = TestSCons._dll
+
if sys.platform == 'win32':
- _obj = '.obj'
fooflags = '/nologo -DFOO'
barflags = '/nologo -DBAR'
else:
- _obj = '.o'
fooflags = '-DFOO'
barflags = '-DBAR'
@@ -211,16 +216,20 @@ builddir_srcnodes = [ os.path.join('bld', 'goof.in'),
os.path.join('bld', 'subsrcdir', 'boo.c'),
]
-sub_build_nodes = [ os.path.join('bld','subsrcdir','boo.o'),
- os.path.join('bld','goo.o'),
- os.path.join('bld','goof.c'),
- os.path.join('bld','libgoo.a'),
+sub_build_nodes = [ os.path.join('bld', 'subsrcdir','boo' + _obj),
+ os.path.join('bld', 'goo' + _obj),
+ os.path.join('bld', 'goof.c'),
+ os.path.join('bld', lib_ + 'goo' + _lib),
]
-build_nodes = ['fooprog', 'libfoo.so', 'foo.o',
- 'barprog', 'libbar.so', 'bar.o',
+build_nodes = ['fooprog' + _exe,
+ dll_ + 'foo' + _dll,
+ 'foo' + _obj,
+ 'barprog' + _exe,
+ dll_ + 'bar' + _dll,
+ 'bar' + _obj,
- 'gooprog',
+ 'gooprog' + _exe,
] + builddir_srcnodes + sub_build_nodes