diff options
author | Steven Knight <knight@baldmt.com> | 2001-10-11 23:13:20 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-10-11 23:13:20 (GMT) |
commit | 6f4f6e4639a3a4a796b28322ba07b9b81f2c354f (patch) | |
tree | bf1be1f8cebc4b016b9856f27d1cf84879b547be /test/builderrors.py | |
parent | 580b07ed247ab0de0ea96093fc2c4baa28c35c65 (diff) | |
download | SCons-6f4f6e4639a3a4a796b28322ba07b9b81f2c354f.zip SCons-6f4f6e4639a3a4a796b28322ba07b9b81f2c354f.tar.gz SCons-6f4f6e4639a3a4a796b28322ba07b9b81f2c354f.tar.bz2 |
Implement special variable substitution.
Diffstat (limited to 'test/builderrors.py')
-rw-r--r-- | test/builderrors.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/builderrors.py b/test/builderrors.py index ab8da71..fad003a 100644 --- a/test/builderrors.py +++ b/test/builderrors.py @@ -43,8 +43,8 @@ sys.exit(exitval) """) test.write(['one', 'SConstruct'], """ -B0 = Builder(name = 'B0', action = "python ../build.py 0 %(target)s %(source)s") -B1 = Builder(name = 'B1', action = "python ../build.py 1 %(target)s %(source)s") +B0 = Builder(name = 'B0', action = "python ../build.py 0 $target $sources") +B1 = Builder(name = 'B1', action = "python ../build.py 1 $target $sources") env = Environment(BUILDERS = [B0, B1]) env.B1(target = 'f1.out', source = 'f1.in') env.B0(target = 'f2.out', source = 'f2.in') @@ -63,8 +63,8 @@ test.fail_test(os.path.exists(test.workpath('f2.out'))) test.fail_test(os.path.exists(test.workpath('f3.out'))) test.write(['two', 'SConstruct'], """ -B0 = Builder(name = 'B0', action = "python ../build.py 0 %(target)s %(source)s") -B1 = Builder(name = 'B1', action = "python ../build.py 1 %(target)s %(source)s") +B0 = Builder(name = 'B0', action = "python ../build.py 0 $target $sources") +B1 = Builder(name = 'B1', action = "python ../build.py 1 $target $sources") env = Environment(BUILDERS = [B0, B1]) env.B0(target = 'f1.out', source = 'f1.in') env.B1(target = 'f2.out', source = 'f2.in') @@ -83,8 +83,8 @@ test.fail_test(os.path.exists(test.workpath('f2.out'))) test.fail_test(os.path.exists(test.workpath('f3.out'))) test.write(['three', 'SConstruct'], """ -B0 = Builder(name = 'B0', action = "python ../build.py 0 %(target)s %(source)s") -B1 = Builder(name = 'B1', action = "python ../build.py 1 %(target)s %(source)s") +B0 = Builder(name = 'B0', action = "python ../build.py 0 $target $sources") +B1 = Builder(name = 'B1', action = "python ../build.py 1 $target $sources") env = Environment(BUILDERS = [B0, B1]) env.B0(target = 'f1.out', source = 'f1.in') env.B0(target = 'f2.out', source = 'f2.in') |