diff options
author | Steven Knight <knight@baldmt.com> | 2001-11-20 17:58:56 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-11-20 17:58:56 (GMT) |
commit | fa11b8d2fa2e3adc18588992ff869b1f1457c03f (patch) | |
tree | 569699b30c9de0106b55352d89b2d03ef8cfe086 /test/LIBPATH.py | |
parent | 76166c77f852377b6139a9414cc355fe2661a0e7 (diff) | |
download | SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.zip SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.tar.gz SCons-fa11b8d2fa2e3adc18588992ff869b1f1457c03f.tar.bz2 |
Crain: Finish LIBS, LIBPATH, CPPPATH
Diffstat (limited to 'test/LIBPATH.py')
-rw-r--r-- | test/LIBPATH.py | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/test/LIBPATH.py b/test/LIBPATH.py index dec523d..2efd236 100644 --- a/test/LIBPATH.py +++ b/test/LIBPATH.py @@ -28,11 +28,36 @@ import TestSCons test = TestSCons.TestSCons() -test.pass_test() #XXX Short-circuit until this is implemented. - test.write('SConstruct', """ +env = Environment(LIBS = [ 'foo1' ], + LIBPATH = [ './libs' ]) +env.Program(target = 'prog', source = 'prog.c') +env.Library(target = './libs/foo1', source = 'f1.c') +""") + +test.write('f1.c', """ +void +f1(void) +{ + printf("f1.c\n"); +} """) -test.run(arguments = '.') +test.write('prog.c', """ +void f1(void); +int +main(int argc, char *argv[]) +{ + argv[argc++] = "--"; + f1(); + printf("prog.c\n"); + return 0; +} +""") + +test.run(arguments = 'prog') + +test.run(program = test.workpath('prog'), + stdout = "f1.c\nprog.c\n") test.pass_test() |