diff options
Diffstat (limited to 'src/engine/SCons/UtilTests.py')
-rw-r--r-- | src/engine/SCons/UtilTests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/engine/SCons/UtilTests.py b/src/engine/SCons/UtilTests.py index e0788da..5f0eaa8 100644 --- a/src/engine/SCons/UtilTests.py +++ b/src/engine/SCons/UtilTests.py @@ -163,6 +163,18 @@ class UtilTestCase(unittest.TestCase): target=target, source=source) assert newcom == "test foo/bar.exe foo/blah.cpp", newcom + SCons.Node.FS.default_fs.BuildDir("#baz","#foo") + + newcom = scons_subst("test ${SOURCE.srcdir}", env, + target=target, source=['baz/bar.c']) + + assert newcom == cvt("test foo"), newcom + + newcom = scons_subst("test ${SOURCE.srcpath}", env, + target=target, source=['baz/bar.c']) + + assert newcom == cvt("test foo/bar.c"), newcom + newcom = scons_subst("test $xxx", env) assert newcom == cvt("test"), newcom |