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 | fdaf65d36261a72883e6ed72336dff967a535e62 (patch) | |
tree | d766eefacb1b144e4b43ad946e3630502aa47778 /test/option-h.py | |
parent | d4df6e27cf6e99bc34791dad5a4902cf83476ba2 (diff) | |
download | SCons-fdaf65d36261a72883e6ed72336dff967a535e62.zip SCons-fdaf65d36261a72883e6ed72336dff967a535e62.tar.gz SCons-fdaf65d36261a72883e6ed72336dff967a535e62.tar.bz2 |
Display the help message when -u -h is supplied. (Elliot Murphy)
Diffstat (limited to 'test/option-h.py')
-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() - |