46a47
> self.deps = []
61c62,63
< 'compile_only' : self.compile_only
---
> 'compile_only' : self.compile_only,
> 'deps' : self.deps
67a70,71
> self.reldir = test.reldir
> self.test_deps = test.deps
98c102,106
< return super(SystemCTestBin, self).declare(env, objs)
---
> test_bin = super(SystemCTestBin, self).declare(env, objs)
> test_dir = self.dir.Dir(self.reldir)
> for dep in self.test_deps:
> env.Depends(test_bin, test_dir.File(dep))
> return test_bin
120a129,137
> def get_entries(fname):
> with open(os.path.join(dirname, fname)) as content:
> lines = content.readlines
> # Get rid of leading and trailing whitespace.
> lines = map(lambda x: x.strip(), content.readlines())
> # Get rid of blank lines.
> lines = filter(lambda x: x, lines)
> return lines
>
143,150c160,161
< with open(os.path.join(dirname, f)) as content:
< lines = content.readlines
< # Get rid of leading and trailing whitespace.
< lines = map(lambda x: x.strip(), content.readlines())
< # Get rid of blank lines.
< lines = filter(lambda x: x, lines)
< # Add all the sources to this test.
< test.add_sources(lines)
---
> # Add all the sources to this test.
> test.add_sources(get_entries(f))
154a166,168
> if 'DEPS' in names:
> test.deps = get_entries('DEPS')
>