summaryrefslogtreecommitdiffstats
path: root/test/option-f.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/option-f.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/option-f.py')
-rw-r--r--test/option-f.py41
1 files changed, 21 insertions, 20 deletions
diff --git a/test/option-f.py b/test/option-f.py
index bb8c639..30c49bb 100644
--- a/test/option-f.py
+++ b/test/option-f.py
@@ -45,38 +45,39 @@ print "subdir/BuildThis", os.getcwd()
wpath = test.workpath()
-test.run(arguments = '-f SConscript',
- stdout = "SConscript %s\n" % wpath)
+test.run(arguments = '-f SConscript .',
+ stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '-f ' + subdir_BuildThis,
- stdout = "subdir/BuildThis %s\n" % wpath)
-test.run(arguments = '--file=SConscript',
- stdout = "SConscript %s\n" % wpath)
+test.run(arguments = '-f %s .' % subdir_BuildThis,
+ stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '--file=' + subdir_BuildThis,
- stdout = "subdir/BuildThis %s\n" % wpath)
+test.run(arguments = '--file=SConscript .',
+ stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '--makefile=SConscript',
- stdout = "SConscript %s\n" % wpath)
+test.run(arguments = '--file=%s .' % subdir_BuildThis,
+ stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '--makefile=' + subdir_BuildThis,
- stdout = "subdir/BuildThis %s\n" % wpath)
+test.run(arguments = '--makefile=SConscript .',
+ stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '--sconstruct=SConscript',
- stdout = "SConscript %s\n" % wpath)
+test.run(arguments = '--makefile=%s .' % subdir_BuildThis,
+ stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '--sconstruct=' + subdir_BuildThis,
- stdout = "subdir/BuildThis %s\n" % wpath)
+test.run(arguments = '--sconstruct=SConscript .',
+ stdout = 'SConscript %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '-f -', stdin = """
+test.run(arguments = '--sconstruct=%s .' % subdir_BuildThis,
+ stdout = 'subdir/BuildThis %s\nscons: "." is up to date.\n' % wpath)
+
+test.run(arguments = '-f - .', stdin = """
import os
print "STDIN " + os.getcwd()
""",
- stdout = "STDIN %s\n" % wpath)
+ stdout = 'STDIN %s\nscons: "." is up to date.\n' % wpath)
-test.run(arguments = '-f no_such_file',
- stdout = "",
+test.run(arguments = '-f no_such_file .',
+ stdout = 'scons: "." is up to date.\n',
stderr = "Ignoring missing SConscript 'no_such_file'\n")
test.pass_test()