summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-02-11 03:08:06 (GMT)
committerSteven Knight <knight@baldmt.com>2005-02-11 03:08:06 (GMT)
commitc4cf6660b5a05710dc603999010f5b4645b3f655 (patch)
treed766eefacb1b144e4b43ad946e3630502aa47778 /test
parent13706a906d814697ecfd819fc915ff0d97bf7388 (diff)
downloadSCons-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.py17
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()
-