Add command-line processing for all options (with tests).
[scons.git] / test / option-h.py
1 #!/usr/bin/env python
2
3 __revision__ = "test/option-h.py __REVISION__ __DATE__ __DEVELOPER__"
4
5 import TestCmd
6 import string
7 import sys
8
9 test = TestCmd.TestCmd(program = 'scons.py',
10                        workdir = '',
11                        interpreter = 'python')
12
13 test.run(chdir = '.', arguments = '-h')
14
15 test.fail_test(string.find(test.stdout(), '-h, --help') == -1)
16
17 test.write('SConstruct', "")
18
19 test.run(chdir = '.', arguments = '-h')
20
21 test.fail_test(string.find(test.stdout(), '-h, --help') == -1)
22
23 test.pass_test()
24