summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FSTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-08-13 22:18:56 (GMT)
committerSteven Knight <knight@baldmt.com>2002-08-13 22:18:56 (GMT)
commit8e1aad73335c43457eee537d764d017e93e01919 (patch)
tree33cab05f075a70353cbd21b442dc89c7f7e43640 /src/engine/SCons/Node/FSTests.py
parent7bbef28aa0e582776ae4d7a8af34641c5faf794a (diff)
downloadSCons-8e1aad73335c43457eee537d764d017e93e01919.zip
SCons-8e1aad73335c43457eee537d764d017e93e01919.tar.gz
SCons-8e1aad73335c43457eee537d764d017e93e01919.tar.bz2
Add BuildDir() support to the Repository functionality.
Diffstat (limited to 'src/engine/SCons/Node/FSTests.py')
-rw-r--r--src/engine/SCons/Node/FSTests.py20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py
index 8ffb2e6..f9f1c9e 100644
--- a/src/engine/SCons/Node/FSTests.py
+++ b/src/engine/SCons/Node/FSTests.py
@@ -672,17 +672,25 @@ class RepositoryTestCase(unittest.TestCase):
work_d4 = fs.File(os.path.join('work', 'd4'))
list = fs.Rsearchall(['d3', work_d4])
assert list == ['d3', work_d4], list
+
+ fs.BuildDir('build', '.')
- f1 = fs.File(test.workpath("work", "i_do_not_exist"))
- assert not f1.rexists()
+ f = fs.File(test.workpath("work", "i_do_not_exist"))
+ assert not f.rexists()
test.write(["rep2", "i_exist"], "\n")
- f1 = fs.File(test.workpath("work", "i_exist"))
- assert f1.rexists()
+ f = fs.File(test.workpath("work", "i_exist"))
+ assert f.rexists()
test.write(["work", "i_exist_too"], "\n")
- f1 = fs.File(test.workpath("work", "i_exist_too"))
- assert f1.rexists()
+ f = fs.File(test.workpath("work", "i_exist_too"))
+ assert f.rexists()
+
+ f1 = fs.File(os.path.join('build', 'f1'))
+ assert not f1.rexists()
+
+ f2 = fs.File(os.path.join('build', 'f2'))
+ assert f2.rexists()
test.write(["rep2", "tstamp"], "tstamp\n")
# Okay, *this* manipulation accomodates Windows FAT file systems