summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-25 16:56:41 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-25 16:56:41 (GMT)
commitd23e503a2499c58c9826b3b341ff33f79bc20b10 (patch)
treef9827472eb38e3d2df1af48fae50cfa3043ef4e2 /test
parent72042342ebcbc24c523fb4e1413821c73e585a2a (diff)
downloadSCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.zip
SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.tar.gz
SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.tar.bz2
Windows portability
Diffstat (limited to 'test')
-rw-r--r--test/BuildDir.py1
-rw-r--r--test/TAR.py6
-rw-r--r--test/TARFLAGS.py8
3 files changed, 8 insertions, 7 deletions
diff --git a/test/BuildDir.py b/test/BuildDir.py
index 8e79de9..b8e073b 100644
--- a/test/BuildDir.py
+++ b/test/BuildDir.py
@@ -212,7 +212,6 @@ def equal_stats(x,y):
x = os.stat(x)
y = os.stat(y)
return (stat.S_IMODE(x[stat.ST_MODE]) == stat.S_IMODE(y[stat.ST_MODE]) and
- x[stat.ST_ATIME] == y[stat.ST_ATIME] and
x[stat.ST_MTIME] == y[stat.ST_MTIME])
# Make sure we did duplicate the source files in build/var2, and that their stats are the same:
diff --git a/test/TAR.py b/test/TAR.py
index 0d6f857..ee9e7d4 100644
--- a/test/TAR.py
+++ b/test/TAR.py
@@ -58,7 +58,7 @@ sys.exit(0)
""")
test.write('SConstruct', """
-env = Environment(TAR = r'%s mytar.py')
+env = Environment(tools = ['tar'], TAR = r'%s mytar.py')
env.Tar(target = 'aaa.tar', source = ['file1', 'file2'])
env.Tar(target = 'aaa.tar', source = 'file3')
env.Tar(target = 'bbb', source = 'sub1')
@@ -95,9 +95,9 @@ os.system(string.join(sys.argv[1:], " "))
""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
test.write('SConstruct', """
-foo = Environment()
+foo = Environment(tools = ['tar'])
tar = foo.Dictionary('TAR')
-bar = Environment(TAR = r'%s wrapper.py ' + tar)
+bar = Environment(tools = ['tar'], TAR = r'%s wrapper.py ' + tar)
foo.Tar(target = 'foo.tar', source = ['file10', 'file11'])
foo.Tar(target = 'foo.tar', source = 'file12')
bar.Tar(target = 'bar.tar', source = ['file13', 'file14'])
diff --git a/test/TARFLAGS.py b/test/TARFLAGS.py
index 6fcff43..9bf1359 100644
--- a/test/TARFLAGS.py
+++ b/test/TARFLAGS.py
@@ -62,7 +62,7 @@ sys.exit(0)
""")
test.write('SConstruct', """
-env = Environment(TAR = r'%s mytar.py', TARFLAGS = '-x')
+env = Environment(tools = ['tar'], TAR = r'%s mytar.py', TARFLAGS = '-x')
env.Tar(target = 'aaa.tar', source = ['file1', 'file2'])
env.Tar(target = 'aaa.tar', source = 'file3')
env.Tar(target = 'bbb', source = 'sub1')
@@ -99,9 +99,11 @@ os.system(string.join(sys.argv[1:], " "))
""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
test.write('SConstruct', """
-foo = Environment()
+foo = Environment(tools = ['tar'])
tar = foo['TAR']
-bar = Environment(TAR = '', TARFLAGS = '%s wrapper.py ' + tar + ' -c -b 1')
+bar = Environment(tools = ['tar'],
+ TAR = '',
+ TARFLAGS = '%s wrapper.py ' + tar + ' -c -b 1')
foo.Tar(target = 'foo.tar', source = ['file10', 'file11'])
foo.Tar(target = 'foo.tar', source = 'file12')
bar.Tar(target = 'bar.tar', source = ['file13', 'file14'])