summaryrefslogtreecommitdiff
path: root/test/Default.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-06-05 23:35:56 +0000
committerSteven Knight <knight@baldmt.com>2002-06-05 23:35:56 +0000
commit2f7d4f660fd048edc342a989d25c94d7b52ab13e (patch)
tree20def5c6f0f7b68ab7151cac4ada5c470a3b31e0 /test/Default.py
parent42717c855f7cbb73d3017ac243a34491d3cc0c53 (diff)
downloadscons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.tar.gz
Changes from Charles Crain.
Diffstat (limited to 'test/Default.py')
-rw-r--r--test/Default.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/Default.py b/test/Default.py
index 76ce5608..96d786ab 100644
--- a/test/Default.py
+++ b/test/Default.py
@@ -43,32 +43,32 @@ file.close()
""")
test.write(['one', 'SConstruct'], """
-B = Builder(name = 'B', action = r'%s ../build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s ../build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
env.B(target = 'bar.out', source = 'bar.in')
Default('foo.out')
""" % python)
test.write(['two', 'SConstruct'], """
-B = Builder(name = 'B', action = r'%s ../build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s ../build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
env.B(target = 'bar.out', source = 'bar.in')
Default('foo.out', 'bar.out')
""" % python)
test.write(['three', 'SConstruct'], """
-B = Builder(name = 'B', action = r'%s ../build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s ../build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'foo.out', source = 'foo.in')
env.B(target = 'bar.out', source = 'bar.in')
Default('foo.out bar.out')
""" % python)
test.write(['four', 'SConstruct'], """
-B = Builder(name = 'B', action = r'%s ../build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s ../build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = ['foo bar'], source = 'foo.in')
env.B(target = 'foo', source = 'foo.in')
env.B(target = 'bar', source = 'bar.in')
@@ -76,8 +76,8 @@ Default(['foo bar'])
""" % python)
test.write(['five', 'SConstruct'], """
-B = Builder(name = 'B', action = r'%s ../build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s ../build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
Default(env.B(target = 'foo.out', source = 'foo.in'))
Default(env.B(target = 'bar.out', source = 'bar.in'))
""" % python)
@@ -115,8 +115,8 @@ test.fail_test(test.read(test.workpath('five', 'bar.out')) != "five/bar.in\n")
test.subdir('sub1')
test.write('SConstruct', """
-B = Builder(name = 'B', action = r'%s build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'xxx.out', source = 'xxx.in')
SConscript('sub1/SConscript')
""" % python)
@@ -124,8 +124,8 @@ SConscript('sub1/SConscript')
test.write('xxx.in', "xxx.in\n")
test.write(['sub1', 'SConscript'], """
-B = Builder(name = 'B', action = r'%s build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'xxx.out', source = 'xxx.in')
Default('xxx.out')
""" % python)
@@ -143,8 +143,8 @@ test.subdir('sub2')
test.write('SConstruct', """
Default('sub2')
-B = Builder(name = 'B', action = r'%s build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'xxx.out', source = 'xxx.in')
SConscript('sub2/SConscript')
""" % python)
@@ -152,8 +152,8 @@ SConscript('sub2/SConscript')
test.write('xxx.in', "xxx.in\n")
test.write(['sub2', 'SConscript'], """
-B = Builder(name = 'B', action = r'%s build.py $TARGET $SOURCES')
-env = Environment(BUILDERS = [B])
+B = Builder(action = r'%s build.py $TARGET $SOURCES')
+env = Environment(BUILDERS = { 'B' : B })
env.B(target = 'xxx.out', source = 'xxx.in')
""" % python)