diff options
Diffstat (limited to 'test/option-h.py')
-rw-r--r-- | test/option-h.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/option-h.py b/test/option-h.py new file mode 100644 index 0000000..92bbbc8 --- /dev/null +++ b/test/option-h.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +__revision__ = "test/option-h.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd +import string +import sys + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +test.run(chdir = '.', arguments = '-h') + +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.write('SConstruct', "") + +test.run(chdir = '.', arguments = '-h') + +test.fail_test(string.find(test.stdout(), '-h, --help') == -1) + +test.pass_test() + |