summaryrefslogtreecommitdiffstats
path: root/test/SConscript.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-02-10 12:58:31 (GMT)
committerSteven Knight <knight@baldmt.com>2002-02-10 12:58:31 (GMT)
commitfb0bf9a521b17a2cdcc0530cf443ebe12ccae1a4 (patch)
tree603c68523d5c9a324524c29c46a86a5de2853b10 /test/SConscript.py
parente61588a4fbb9ffb27d04b1215dc2558ee38612b9 (diff)
downloadSCons-fb0bf9a521b17a2cdcc0530cf443ebe12ccae1a4.zip
SCons-fb0bf9a521b17a2cdcc0530cf443ebe12ccae1a4.tar.gz
SCons-fb0bf9a521b17a2cdcc0530cf443ebe12ccae1a4.tar.bz2
Allow the exported variables in an SConscript() call to be a UserList, too.
Diffstat (limited to 'test/SConscript.py')
-rw-r--r--test/SConscript.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/SConscript.py b/test/SConscript.py
index b60037f..d9c7748 100644
--- a/test/SConscript.py
+++ b/test/SConscript.py
@@ -65,6 +65,12 @@ foo = SConscript(script)
assert foo == "subdir/SConscript foo"
SConscript('SConscript5')
+
+import UserList
+x7 = "SConstruct x7"
+x8 = "SConstruct x8"
+x9 = SConscript('SConscript6', UserList.UserList(["x7", "x8"]))
+assert x9 == "SConscript6 x9"
""")
test.write('SConscript', """
@@ -87,7 +93,6 @@ Return("x3 x4")
""")
-
test.write('SConscript2', """
Import("x1","x2")
assert x1 == "SConstruct x1"
@@ -149,6 +154,15 @@ S = Scanner(name = 'S', function = scan)
A = Action("A")
""")
+
+test.write('SConscript6', """
+Import("x7 x8")
+assert x7 == "SConstruct x7"
+assert x8 == "SConstruct x8"
+x9 = "SConscript6 x9"
+Return("x9")
+""")
+
wpath = test.workpath()
test.run(stdout = "SConstruct %s\nSConscript %s\n" % (wpath, wpath))