__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import os.path
import TestSCons
test = TestSCons.TestSCons()
+foo_bar = os.path.join('foo', 'bar')
+
test.write('SConstruct', """
env = Environment()
env.Command("aaa.out", "aaa.in", "should never get executed")
status = 2)
test.run(arguments = '-k foo/bar foo',
- stderr = """scons: *** Do not know how to make target `foo/bar'.
-""",
+ stderr = "scons: *** Do not know how to make target `%s'.\n" % foo_bar,
status = 2)
test.run(arguments = "aaa.out",
""")
stderr = '''
-scons: warning: Ignoring corrupt .sconsign file: sub1..sconsign
+scons: warning: Ignoring corrupt .sconsign file: sub1.\.sconsign
.*
'''
-stdout = test.wrap_stdout('build1\("sub1/foo.out", "foo.in"\)\n')
+stdout = test.wrap_stdout('build1\("sub1.foo\.out", "foo\.in"\)\n')
test.write(sub1__sconsign, 'not:a:sconsign:file')
test.run(arguments = '.', stderr=stderr, stdout=stdout)