From d89cb131fd24ee8dffd0a6689c464459ec94b0a9 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Tue, 11 Sep 2001 18:03:12 +0000 Subject: [PATCH] Add a test for local Help() functionality. git-svn-id: http://scons.tigris.org/svn/scons/trunk@44 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- test/Help.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/Help.py 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() -- 2.26.2