diff options
| -rw-r--r-- | test/Help.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Help.py b/test/Help.py new file mode 100644 index 0000000..e6e6768 --- /dev/null +++ b/test/Help.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +__revision__ = "test/SConstruct.py __REVISION__ __DATE__ __DEVELOPER__" + +import TestCmd + +test = TestCmd.TestCmd(program = 'scons.py', + workdir = '', + interpreter = 'python') + +wpath = test.workpath() + +test.write('SConstruct', r""" +Help("Help text\ngoes here.\n") +""") + +test.run(chdir = '.', arguments = '-h') + +test.fail_test(test.stdout() != "Help text\ngoes here.\n\nUse scons -H for help about command-line options.\n") +test.fail_test(test.stderr() != "") + +test.pass_test() |
