summaryrefslogtreecommitdiffstats
path: root/test/Deprecated/TargetSignatures/content.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Deprecated/TargetSignatures/content.py')
-rw-r--r--test/Deprecated/TargetSignatures/content.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/Deprecated/TargetSignatures/content.py b/test/Deprecated/TargetSignatures/content.py
index 3b2638f..5bd1a89 100644
--- a/test/Deprecated/TargetSignatures/content.py
+++ b/test/Deprecated/TargetSignatures/content.py
@@ -33,11 +33,18 @@ import TestSCons
test = TestSCons.TestSCons(match = TestSCons.match_re_dotall)
+expect = TestSCons.re_escape("""
+scons: warning: The env.SourceSignatures() method is deprecated;
+\tconvert your build to use the env.Decider() method instead.
+""") + TestSCons.file_expr + TestSCons.re_escape("""
+scons: warning: The env.TargetSignatures() method is deprecated;
+\tconvert your build to use the env.Decider() method instead.
+""") + TestSCons.file_expr + TestSCons.deprecated_python_expr
test.write('SConstruct', """\
-SetOption('warn', 'no-deprecated-source-signatures')
-SetOption('warn', 'no-deprecated-target-signatures')
+SetOption('warn', 'deprecated-source-signatures')
+SetOption('warn', 'deprecated-target-signatures')
env = Environment()
def copy(env, source, target):
@@ -67,19 +74,18 @@ test.write('foo.in', "foo.in\n")
test.write('bar.in', "bar.in\n")
test.write('extra.in', "extra.in 1\n")
-test.run(stderr = TestSCons.deprecated_python_expr)
+test.run(stderr = expect)
test.must_match('final', "foo.in\nbar.in\nextra.in 1\n")
test.sleep()
test.write('extra.in', "extra.in 2\n")
-test.run(stderr = TestSCons.deprecated_python_expr)
+test.run(stderr = expect)
test.must_match('final', "foo.in\nbar.in\nextra.in 1\n")
-
test.pass_test()
# Local Variables: