summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/UtilTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-12 15:57:38 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-12 15:57:38 (GMT)
commit136f9a0b1742fb37db047d923dccacb2f5d5f9ad (patch)
tree7bb5a28dba1de85fd47718d0e048a7aa706548c3 /src/engine/SCons/UtilTests.py
parent815fd42ff563da2b188200db897edd809905df8d (diff)
downloadSCons-136f9a0b1742fb37db047d923dccacb2f5d5f9ad.zip
SCons-136f9a0b1742fb37db047d923dccacb2f5d5f9ad.tar.gz
SCons-136f9a0b1742fb37db047d923dccacb2f5d5f9ad.tar.bz2
Move find_file() and find_files() from SCons.Util to SCons.Node.FS.
Diffstat (limited to 'src/engine/SCons/UtilTests.py')
-rw-r--r--src/engine/SCons/UtilTests.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/engine/SCons/UtilTests.py b/src/engine/SCons/UtilTests.py
index bcb93d0..aa58c8e 100644
--- a/src/engine/SCons/UtilTests.py
+++ b/src/engine/SCons/UtilTests.py
@@ -188,22 +188,6 @@ class UtilTestCase(unittest.TestCase):
assert cmd_list[1][0] == 'after', cmd_list[1][0]
assert cmd_list[0][2] == cvt('../foo/ack.cbefore'), cmd_list[0][2]
- def test_find_file(self):
- """Testing find_file function."""
- test = TestCmd.TestCmd(workdir = '')
- test.write('./foo', 'Some file\n')
- fs = SCons.Node.FS.FS(test.workpath(""))
- os.chdir(test.workpath("")) # FS doesn't like the cwd to be something other than it's root
- node_derived = fs.File(test.workpath('bar/baz'))
- node_derived.builder_set(1) # Any non-zero value.
- paths = map(fs.Dir, ['.', './bar'])
- nodes = [find_file('foo', paths, fs.File),
- find_file('baz', paths, fs.File)]
- file_names = map(str, nodes)
- file_names = map(os.path.normpath, file_names)
- assert os.path.normpath('./foo') in file_names, file_names
- assert os.path.normpath('./bar/baz') in file_names, file_names
-
def test_autogenerate(dict):
"""Test autogenerating variables in a dictionary."""
dict = {'LIBS' : [ 'foo', 'bar', 'baz' ],