diff options
author | Steven Knight <knight@baldmt.com> | 2004-11-21 16:35:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-11-21 16:35:29 (GMT) |
commit | 07c75889f874a050aff782d1488d0269fb936744 (patch) | |
tree | 5397bb5b86e09f0a292d3b714c7e527bff539a06 /test | |
parent | 8781e4655cea19b34cd062768d9f09b359fe9a09 (diff) | |
download | SCons-07c75889f874a050aff782d1488d0269fb936744.zip SCons-07c75889f874a050aff782d1488d0269fb936744.tar.gz SCons-07c75889f874a050aff782d1488d0269fb936744.tar.bz2 |
Add a --debug=stree option to show Node status. (Kevin Quick)
Diffstat (limited to 'test')
-rw-r--r-- | test/option--debug.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/option--debug.py b/test/option--debug.py index 7a80647..47bc058 100644 --- a/test/option--debug.py +++ b/test/option--debug.py @@ -84,6 +84,47 @@ test.fail_test(string.find(test.stdout(), tree) == -1) test.run(arguments = "--debug=tree foo.xxx") test.fail_test(string.find(test.stdout(), tree) == -1) +stree = """ +[E B C]+-foo.xxx +[E B C] +-foo.ooo +[E ] | +-foo.c +[E ] | +-foo.h +[E ] | +-bar.h +[E B C] +-bar.ooo +[E ] +-bar.c +[E ] +-bar.h +[E ] +-foo.h +""" + +test.run(arguments = "--debug=stree foo.xxx") +test.fail_test(string.find(test.stdout(), stree) == -1) + +stree2 = """ + E = exists + R = exists in repository only + b = implicit builder + B = explicit builder + S = side effect + P = precious + A = always build + C = current + +[ B ]+-foo.xxx +[ B ] +-foo.ooo +[E ] | +-foo.c +[E ] | +-foo.h +[E ] | +-bar.h +[ B ] +-bar.ooo +[E ] +-bar.c +[E ] +-bar.h +[E ] +-foo.h +""" + +test.run(arguments = '-c foo.xxx') +test.run(arguments = "--no-exec --debug=stree foo.xxx") +test.fail_test(string.find(test.stdout(), stree2) == -1) + + tree = """ +-foo.xxx |