test.run(arguments = '.', stderr = None)
-print test.read('test1.pdf')
test.fail_test(test.read('test1.pdf') != " -x\nThis is a .ps test.\n")
test.run(arguments = "--profile=%s -v " % scons_prof)
test.fail_test(string.find(test.stdout(), 'SCons by ') == -1)
-test.fail_test(string.find(test.stdout(), 'Copyright') == -1)
+test.fail_test(string.find(test.stdout(), 'Copyright') == -1 and
+ string.find(test.stdout(), '__COPYRIGHT__') == -1)
stats = pstats.Stats(scons_prof)
stats.sort_stats('time')
test.run(arguments = "--profile %s -v " % scons_prof)
test.fail_test(string.find(test.stdout(), 'SCons by ') == -1)
-test.fail_test(string.find(test.stdout(), 'Copyright') == -1)
+test.fail_test(string.find(test.stdout(), 'Copyright') == -1 and
+ string.find(test.stdout(), '__COPYRIGHT__') == -1)
stats = pstats.Stats(scons_prof)
stats.sort_stats('time')
# depending on whether it's invoked through scons.py or scons.bat.
expect1 = r"""SCons by Steven Knight et al.:
\tengine: v\S+, [^,]*, by \S+ on \S+
-Copyright \(c\) 2001, 2002, 2003 Steven Knight
+(__COPYRIGHT__|Copyright \(c\) 2001, 2002, 2003 Steven Knight)
"""
expect2 = r"""SCons by Steven Knight et al.:
\tscript: v\S+, [^,]*, by \S+ on \S+
\tengine: v\S+, [^,]*, by \S+ on \S+
-Copyright \(c\) 2001, 2002, 2003 Steven Knight
+(__COPYRIGHT__|Copyright \(c\) 2001, 2002, 2003 Steven Knight)
"""
test.run(arguments = '-v')