diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-05-21 06:06:27 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-05-21 06:06:27 (GMT) |
commit | 935e698566833e2c50898f39f565414404c68cbd (patch) | |
tree | 140962ae0b8ebef170e83e21092fec4f510e91d4 /test/Deprecated/TargetSignatures/content.py | |
parent | b040d94fad9024d5715d22cdc071384e827696b2 (diff) | |
download | SCons-935e698566833e2c50898f39f565414404c68cbd.zip SCons-935e698566833e2c50898f39f565414404c68cbd.tar.gz SCons-935e698566833e2c50898f39f565414404c68cbd.tar.bz2 |
Update deprecated features to the next life-cycle stage
Diffstat (limited to 'test/Deprecated/TargetSignatures/content.py')
-rw-r--r-- | test/Deprecated/TargetSignatures/content.py | 16 |
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: |