summaryrefslogtreecommitdiffstats
path: root/test/LIBS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-10-09 20:12:00 (GMT)
committerSteven Knight <knight@baldmt.com>2002-10-09 20:12:00 (GMT)
commit16883a48bcbed63c40382dfa94d352c0fecfe0de (patch)
tree0723139fb7516601af23d5229174e99a48e91816 /test/LIBS.py
parentbbdf3e20a90dabfe9944bfc58e6756cf799df7e9 (diff)
downloadSCons-16883a48bcbed63c40382dfa94d352c0fecfe0de.zip
SCons-16883a48bcbed63c40382dfa94d352c0fecfe0de.tar.gz
SCons-16883a48bcbed63c40382dfa94d352c0fecfe0de.tar.bz2
Fix dependency scanning when overriding LIBS (Anthony Roach)
Diffstat (limited to 'test/LIBS.py')
-rw-r--r--test/LIBS.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/LIBS.py b/test/LIBS.py
index b9fb275..22bf3f1 100644
--- a/test/LIBS.py
+++ b/test/LIBS.py
@@ -124,6 +124,31 @@ test.run(arguments = '.')
test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c\n')
+#
+test.write('SConstruct', """
+env = Environment()
+env.Program(target='foo', source='foo.c', LIBS=['bar', 'baz'], LIBPATH = '.')
+SConscript('sub1/SConscript', 'env')
+SConscript('sub2/SConscript', 'env')
+""")
+
+test.run(arguments = '.')
+
+test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c\n')
+
+test.write(['sub1', 'baz.c'], r"""
+#include <stdio.h>
+
+void baz()
+{
+ printf("sub1/baz.c 2\n");
+}
+""")
+
+test.run(arguments = '.')
+
+test.run(program=foo_exe, stdout='sub1/bar.c\nsub1/baz.c 2\n')
+
test.pass_test()