3 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
8 test = TestSCons.TestSCons()
12 subdir_BuildThis = os.path.join('subdir', 'Buildthis')
14 test.write('SConscript', """
16 print "SConscript " + os.getcwd()
19 test.write(subdir_BuildThis, """
21 print "subdir/BuildThis", os.getcwd()
24 wpath = test.workpath()
26 test.run(arguments = '-f SConscript',
27 stdout = "SConscript %s\n" % wpath)
29 test.run(arguments = '-f ' + subdir_BuildThis,
30 stdout = "subdir/BuildThis %s\n" % wpath)
32 test.run(arguments = '--file=SConscript',
33 stdout = "SConscript %s\n" % wpath)
35 test.run(arguments = '--file=' + subdir_BuildThis,
36 stdout = "subdir/BuildThis %s\n" % wpath)
38 test.run(arguments = '--makefile=SConscript',
39 stdout = "SConscript %s\n" % wpath)
41 test.run(arguments = '--makefile=' + subdir_BuildThis,
42 stdout = "subdir/BuildThis %s\n" % wpath)
44 test.run(arguments = '--sconstruct=SConscript',
45 stdout = "SConscript %s\n" % wpath)
47 test.run(arguments = '--sconstruct=' + subdir_BuildThis,
48 stdout = "subdir/BuildThis %s\n" % wpath)
50 test.run(arguments = '-f -', stdin = """
52 print "STDIN " + os.getcwd()
54 stdout = "STDIN %s\n" % wpath)
56 test.run(arguments = '-f no_such_file',
58 stderr = "Ignoring missing script 'no_such_file'\n")