diff options
author | Steven Knight <knight@baldmt.com> | 2002-10-09 20:12:00 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-10-09 20:12:00 (GMT) |
commit | 16883a48bcbed63c40382dfa94d352c0fecfe0de (patch) | |
tree | 0723139fb7516601af23d5229174e99a48e91816 /test/LIBS.py | |
parent | bbdf3e20a90dabfe9944bfc58e6756cf799df7e9 (diff) | |
download | SCons-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.py | 25 |
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() |