diff options
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) |
