diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-25 05:18:23 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-25 05:18:23 (GMT) |
commit | 41a3eeec87272670f593f46ab8558d0ab99046f5 (patch) | |
tree | 99bf886e89cd998dd6a32bdeb6894f15243122ce /test/Split.py | |
parent | fd20ba3535a82bc7a6749d0020b344f4957ebc5d (diff) | |
download | SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.zip SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.tar.gz SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.tar.bz2 |
Add more environment methods for global functions: Action(), Builder(), Environment(), Literal(), Platform(), Split(), Tool(). Deprecate ParseConfig() in favor of an environment method.
Diffstat (limited to 'test/Split.py')
-rw-r--r-- | test/Split.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/test/Split.py b/test/Split.py index 46a19e5..9902bba 100644 --- a/test/Split.py +++ b/test/Split.py @@ -29,22 +29,29 @@ import TestSCons test = TestSCons.TestSCons() test.write('SConstruct', """ +env = Environment(BBB = 'bbb', CCC = 'ccc') print Split('aaa') -print Split('bbb ccc') +print Split('aaa $BBB') +print env.Split('bbb $CCC') +print env.Split('$BBB ccc') print Split(['ddd', 'eee']) SConscript('SConscript') """) test.write('SConscript', """ -print Split('fff') +env = Environment(FFF='fff', JJJ='jjj') +print env.Split('${FFF}.f') print Split('ggg hhh') -print Split(['iii', 'jjj']) +print env.Split(['iii', '$JJJ']) """) -expect = """['aaa'] +expect = """\ +['aaa'] +['aaa', '$BBB'] +['bbb', 'ccc'] ['bbb', 'ccc'] ['ddd', 'eee'] -['fff'] +['fff.f'] ['ggg', 'hhh'] ['iii', 'jjj'] """ |