diff options
author | Steven Knight <knight@baldmt.com> | 2002-04-04 09:07:00 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-04-04 09:07:00 (GMT) |
commit | 6603cc0d6643e529da45fef6f85fcc1a0fc02ea4 (patch) | |
tree | 4a27de7c3fd70e5af0f257ccc73aab38e343f156 /test/option--debug.py | |
parent | a7669bc6a02999a3375c7e732a27ded5f9bb9935 (diff) | |
download | SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.zip SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.tar.gz SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.tar.bz2 |
Fix --debug=tree for directory targets (Anthony Roach)
Diffstat (limited to 'test/option--debug.py')
-rw-r--r-- | test/option--debug.py | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/test/option--debug.py b/test/option--debug.py index 35a3f06..42274c4 100644 --- a/test/option--debug.py +++ b/test/option--debug.py @@ -77,12 +77,12 @@ tree = """ +-%s +-foo%s | +-foo.c - | +-foo.h - | +-bar.h + | +-foo.h + | +-bar.h +-bar%s +-bar.c - +-bar.h - +-foo.h + +-bar.h + +-foo.h """ % (foo, obj,obj) test.fail_test(string.find(test.stdout(), tree) == -1) @@ -90,6 +90,35 @@ test.fail_test(string.find(test.stdout(), tree) == -1) test.run(arguments = "--debug=tree " + foo) test.fail_test(string.find(test.stdout(), tree) == -1) +tree = """scons: \".\" is up to date. + ++-. + +-SConstruct + +-bar.c + +-bar.h + +-bar%(obj)s + | +-bar.c + | +-bar.h + | +-foo.h + +-%(foo)s + | +-foo%(obj)s + | | +-foo.c + | | +-foo.h + | | +-bar.h + | +-bar%(obj)s + | +-bar.c + | +-bar.h + | +-foo.h + +-foo.c + +-foo.h + +-foo%(obj)s + +-foo.c + +-foo.h + +-bar.h +""" % globals() +test.run(arguments = "--debug=tree .") +test.fail_test(string.find(test.stdout(), tree) != 0) + test.run(arguments = "--debug=pdb", stdin = "n\ns\nq\n") test.fail_test(string.find(test.stdout(), "(Pdb)") == -1) test.fail_test(string.find(test.stdout(), "scons") == -1) |