summaryrefslogtreecommitdiff
path: root/test/Help.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-11 18:03:12 +0000
committerSteven Knight <knight@baldmt.com>2001-09-11 18:03:12 +0000
commit08994e034cbc908eefe3e8acf3f002da68e77243 (patch)
tree8ba1c5f135fc42424075547d46f835328123f007 /test/Help.py
parent97ece7f03bffd693693e7da376a3a7058d14b7a7 (diff)
downloadscons-08994e034cbc908eefe3e8acf3f002da68e77243.tar.gz
Add a test for local Help() functionality.
Diffstat (limited to 'test/Help.py')
-rw-r--r--test/Help.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Help.py b/test/Help.py
new file mode 100644
index 00000000..e6e67686
--- /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()