summaryrefslogtreecommitdiffstats
path: root/test/SConstruct.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-08-31 04:58:09 (GMT)
committerSteven Knight <knight@baldmt.com>2002-08-31 04:58:09 (GMT)
commitda5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07 (patch)
tree09923409e3e511b6d18e0323209f34cda29c2ca7 /test/SConstruct.py
parentd8b4ea0c9adfb77244f488c338d290c863f2b8b1 (diff)
downloadSCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.zip
SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.tar.gz
SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.tar.bz2
Provide a message if there are no command-line targets specified and no Default() targets.
Diffstat (limited to 'test/SConstruct.py')
-rw-r--r--test/SConstruct.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/SConstruct.py b/test/SConstruct.py
index de5b72e..bf35edc 100644
--- a/test/SConstruct.py
+++ b/test/SConstruct.py
@@ -29,11 +29,13 @@ import TestSCons
test = TestSCons.TestSCons(match = TestCmd.match_re)
-test.run(stdout = "",
- stderr = r"""
+test.run(arguments = ".",
+ status = 2,
+ stdout = "",
+ stderr = r"""
SCons error: No SConstruct file found.
File "\S+", line \d+, in \S+
-""", status=2)
+""")
test.match_func = TestCmd.match_exact
@@ -44,20 +46,21 @@ import os
print "sconstruct", os.getcwd()
""")
-test.run(stdout = "sconstruct %s\n" % wpath)
+test.run(arguments = ".", stdout = 'sconstruct %s\nscons: "." is up to date.\n' % wpath)
+
test.write('Sconstruct', """
import os
print "Sconstruct", os.getcwd()
""")
-test.run(stdout = "Sconstruct %s\n" % wpath)
+test.run(arguments = ".", stdout = 'Sconstruct %s\nscons: "." is up to date.\n' % wpath)
test.write('SConstruct', """
import os
print "SConstruct", os.getcwd()
""")
-test.run(stdout = "SConstruct %s\n" % wpath)
+test.run(arguments = ".", stdout = 'SConstruct %s\nscons: "." is up to date.\n' % wpath)
test.pass_test()