diff options
author | Steven Knight <knight@baldmt.com> | 2005-02-11 03:08:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-02-11 03:08:06 (GMT) |
commit | c4cf6660b5a05710dc603999010f5b4645b3f655 (patch) | |
tree | d766eefacb1b144e4b43ad946e3630502aa47778 /test | |
parent | 13706a906d814697ecfd819fc915ff0d97bf7388 (diff) | |
download | SCons-c4cf6660b5a05710dc603999010f5b4645b3f655.zip SCons-c4cf6660b5a05710dc603999010f5b4645b3f655.tar.gz SCons-c4cf6660b5a05710dc603999010f5b4645b3f655.tar.bz2 |
Display the help message when -u -h is supplied. (Elliot Murphy)
Diffstat (limited to 'test')
-rw-r--r-- | test/option-h.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/option-h.py b/test/option-h.py index e70de1b..7b36c24 100644 --- a/test/option-h.py +++ b/test/option-h.py @@ -31,14 +31,29 @@ import sys test = TestSCons.TestSCons() test.run(arguments = '-h') +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.run(arguments = '-u -h') +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.run(arguments = '-U -h') +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.run(arguments = '-D -h') test.fail_test(string.find(test.stdout(), '-h, --help') == -1) test.write('SConstruct', "") test.run(arguments = '-h') +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.run(arguments = '-u -h') +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.run(arguments = '-U -h') +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) +test.run(arguments = '-D -h') test.fail_test(string.find(test.stdout(), '-h, --help') == -1) test.pass_test() - |