summaryrefslogtreecommitdiffstats
path: root/test/actions.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-06-05 23:35:56 (GMT)
committerSteven Knight <knight@baldmt.com>2002-06-05 23:35:56 (GMT)
commit2f7d4f660fd048edc342a989d25c94d7b52ab13e (patch)
tree20def5c6f0f7b68ab7151cac4ada5c470a3b31e0 /test/actions.py
parent42717c855f7cbb73d3017ac243a34491d3cc0c53 (diff)
downloadSCons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.zip
SCons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.tar.gz
SCons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.tar.bz2
Changes from Charles Crain.
Diffstat (limited to 'test/actions.py')
-rw-r--r--test/actions.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/actions.py b/test/actions.py
index 65fa01a..84b123e 100644
--- a/test/actions.py
+++ b/test/actions.py
@@ -41,8 +41,8 @@ sys.exit(0)
""")
test.write('SConstruct', """
-B = Builder(name = 'B', action = r'%s build.py $TARGET 1 $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s build.py $TARGET 1 $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
""" % python)
@@ -55,8 +55,8 @@ test.fail_test(test.read('foo.out') != "1\nfoo.in\n")
test.up_to_date(arguments = '.')
test.write('SConstruct', """
-B = Builder(name = 'B', action = r'%s build.py $TARGET 2 $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s build.py $TARGET 2 $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
""" % python)
@@ -74,8 +74,8 @@ def func(env, target, source):
string.join(map(str, source)))
print cmd
return os.system(cmd)
-B = Builder(name = 'B', action = func)
-env = Environment(BUILDERS = [B])
+B = Builder(action = func)
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
""" % python)
@@ -99,8 +99,8 @@ class bld:
def get_contents(self, env, target, source):
return self.cmd %% (string.join(map(str, target)),
string.join(map(str, source)))
-B = Builder(name = 'B', action = bld())
-env = Environment(BUILDERS = [B])
+B = Builder(action = bld())
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
""" % python)