diff options
author | Steven Knight <knight@baldmt.com> | 2002-01-15 18:57:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-01-15 18:57:52 (GMT) |
commit | acae06481e87492d8d5b26b5fc102b9e73e8a2f3 (patch) | |
tree | c97faa0cbd84634aaf2a6b05f24ab0c10de63dd1 /test | |
parent | b0303dacea7ad8ccd913648302b1c6af2d55404e (diff) | |
download | SCons-acae06481e87492d8d5b26b5fc102b9e73e8a2f3.zip SCons-acae06481e87492d8d5b26b5fc102b9e73e8a2f3.tar.gz SCons-acae06481e87492d8d5b26b5fc102b9e73e8a2f3.tar.bz2 |
Add Action() and Scanner() the list of global variables.
Diffstat (limited to 'test')
-rw-r--r-- | test/SConscript.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SConscript.py b/test/SConscript.py index 496624d..3e373ae 100644 --- a/test/SConscript.py +++ b/test/SConscript.py @@ -63,6 +63,8 @@ subdir = Dir('subdir') script = File('SConscript', subdir) foo = SConscript(script) assert foo == "subdir/SConscript foo" + +SConscript('SConscript5') """) test.write('SConscript', """ @@ -138,6 +140,15 @@ foo = 'subdir/SConscript foo' Return('foo') """) + +test.write('SConscript5', """ +B = Builder(name = 'B', action = 'B') +def scan(): + pass +S = Scanner(name = 'S', function = scan) +A = Action("A") +""") + wpath = test.workpath() test.run(stdout = "SConstruct %s\nSConscript %s\n" % (wpath, wpath)) |