Test the PRINT_CMD_LINE_FUNC construction variable.
"""
-import string
-import sys
-import TestCmd
import TestSCons
_exe = TestSCons._exe
_obj = TestSCons._obj
-test = TestSCons.TestSCons(match = TestCmd.match_re)
+test = TestSCons.TestSCons(match = TestSCons.match_re)
test.write('SConstruct', r"""
"BUILDING prog%s from prog%s with" % (_exe, _obj),
]
-missing_lines = filter(lambda l: string.find(test.stdout(), l) == -1,
- expected_lines)
-if missing_lines:
- print "Expected the following lines in STDOUT:"
- print "\t" + string.join(expected_lines, "\n\t")
- print "ACTUAL STDOUT =========="
- print test.stdout()
- test.fail_test(1)
+test.must_contain_all_lines(test.stdout(), expected_lines)
test.run(arguments = '-c .')
test.run(arguments = '-Q .')
test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: