Use
.I file
as the initial SConscript file.
+Multiple
+.B -f
+options may be specified,
+in which case
+.B scons
+will read all of the specified files.
.TP
-h, --help
print "subdir/BuildThis", os.getcwd()
""")
+test.write('Build2', """
+import os
+print "Build2", os.getcwd()
+""")
+
wpath = test.workpath()
test.run(arguments = '-f SConscript .',
stdout = test.wrap_stdout(read_str = 'STDIN %s\n' % wpath,
build_str = "scons: `.' is up to date.\n"))
+expect = test.wrap_stdout(read_str = 'Build2 %s\nSConscript %s\n' % (wpath, wpath),
+ build_str = "scons: `.' is up to date.\n")
+test.run(arguments = '-f Build2 -f SConscript .', stdout=expect)
+
test.run(arguments = '-f no_such_file .',
stdout = test.wrap_stdout("scons: `.' is up to date.\n"),
stderr = None)