summaryrefslogtreecommitdiffstats
path: root/test/option-h.py
blob: 937f4462b248ef19d866147a5f5e99b67941d13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

import TestSCons
import string
import sys

test = TestSCons.TestSCons()

test.run(arguments = '-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.pass_test()