diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Dir.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Dir.py b/test/Dir.py index 5c4eaa3..d7ec9ae 100644 --- a/test/Dir.py +++ b/test/Dir.py @@ -55,4 +55,20 @@ bbb_bbb scons: `.' is up to date. """)) + + +test.write('SConstruct', """\ +import os +def my_mkdir(target=None, source=None, env=None): + os.mkdir(str(target[0])) + +MDBuilder = Builder(action=my_mkdir, target_factory=Dir) +env = Environment() +env.Append(BUILDERS = {'MD':MDBuilder}) +env.MD(target='sub1', source=['SConstruct']) +env.MD(target='sub2', source=['SConstruct'], OVERRIDE='foo') +""") + +test.run() + test.pass_test() |