program = 'scons' if it exists,
else 'scons.py'
interpreter = 'python'
+ match = TestCmd.match_exact
workdir = ''
The workdir value means that, by default, a temporary workspace
kw['program'] = 'scons.py'
if not kw.has_key('interpreter'):
kw['interpreter'] = 'python'
+ if not kw.has_key('match'):
+ kw['match'] = TestCmd.match_exact
if not kw.has_key('workdir'):
kw['workdir'] = ''
apply(TestCmd.TestCmd.__init__, [self], kw)
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import TestCmd
+import TestSCons
import os
import string
-import TestSCons
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestCmd.match_re)
wpath = test.workpath()
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import TestCmd
import TestSCons
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestCmd.match_re)
test.run(stdout = "",
stderr = """
File "\S+scons(\.py)?", line \d+, in main
""")
+test.match_func = TestCmd.match_exact
+
wpath = test.workpath()
test.write('sconstruct', """
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import TestCmd
import TestSCons
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestCmd.match_re)
test.write('SConstruct1', """
a ! x
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import TestCmd
import TestSCons
-test = TestSCons.TestSCons(match = TestCmd.match_exact)
+test = TestSCons.TestSCons()
sconstruct = """
from SCons.exitfuncs import *
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import TestCmd
import TestSCons
import string
import sys
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestCmd.match_re)
test.write('SConstruct', "")
stderr = '\nSCons error: option --ZizzerZazzerZuzz not recognized\nFile "\S+", line \d+, in long_has_args\n')
test.pass_test()
-
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+import TestCmd
import TestSCons
import string
import sys
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestCmd.match_re)
test.write('SConstruct', "")