summaryrefslogtreecommitdiff
path: root/test/Help.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-15 14:01:28 +0000
committerSteven Knight <knight@baldmt.com>2003-09-15 14:01:28 +0000
commitc41dc6daf69787a9f4d4984aec727af705445e46 (patch)
tree24ce63856445f3ab2b29f4593bd0cb886cd4f4ba /test/Help.py
parentf36ff530132ecfe7941f80d2d6e5f03f75decf41 (diff)
downloadscons-c41dc6daf69787a9f4d4984aec727af705445e46.tar.gz
Turn more global functions into Environment methods. (clone of 0.92.C121)
Diffstat (limited to 'test/Help.py')
-rw-r--r--test/Help.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Help.py b/test/Help.py
index d88b715c..ea356ba9 100644
--- a/test/Help.py
+++ b/test/Help.py
@@ -44,4 +44,20 @@ Use scons -H for help about command-line options.
test.run(arguments = '-h', stdout = expect)
+test.write('SConstruct', r"""
+env = Environment(MORE='more', HELP='help')
+env.Help("\nEven $MORE\n$HELP text!\n")
+""")
+
+expect = """scons: Reading SConscript files ...
+scons: done reading SConscript files.
+
+Even more
+help text!
+
+Use scons -H for help about command-line options.
+"""
+
+test.run(arguments = '-h', stdout = expect)
+
test.pass_test()