diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-10 05:35:38 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-10 05:35:38 (GMT) |
commit | 2f8be7360679ad5e0260f4965ea5dd9506c7b033 (patch) | |
tree | 1379c046e82985011c5ab2d7604adf055e3140b9 /test/CPPFLAGS.py | |
parent | 81e5793a07783b29a13004f834b7579a0e1605bb (diff) | |
download | SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.zip SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.gz SCons-2f8be7360679ad5e0260f4965ea5dd9506c7b033.tar.bz2 |
Implement Tool refactoring. (Chad Austin + Steve Leblanc)
Diffstat (limited to 'test/CPPFLAGS.py')
-rw-r--r-- | test/CPPFLAGS.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/test/CPPFLAGS.py b/test/CPPFLAGS.py index da4ff13..352ed7d 100644 --- a/test/CPPFLAGS.py +++ b/test/CPPFLAGS.py @@ -34,9 +34,11 @@ python = TestSCons.python if sys.platform == 'win32': _exe = '.exe' _obj = '.obj' + _shobj = '.obj' else: _exe = '' _obj = '.o' + _shobj = '.os' test = TestSCons.TestSCons() @@ -107,8 +109,10 @@ sys.exit(0) test.write('SConstruct', """ env = Environment(CPPFLAGS = '-x', LINK = r'%s mylink.py', + LINKFLAGS = [], CC = r'%s mygcc.py cc', CXX = r'%s mygcc.py c++', + CXXFLAGS = [], F77 = r'%s mygcc.py g77') env.Program(target = 'foo', source = Split('test1.c test2.cpp test3.F')) """ % (python, python, python, python)) @@ -128,7 +132,7 @@ test.write('test3.F', r"""test3.F #link """) -test.run(arguments = '.', stderr = None) +test.run(arguments = '.', stderr=None) test.fail_test(test.read('test1' + _obj) != "test1.c\n#link\n") @@ -143,8 +147,10 @@ test.fail_test(test.read('mygcc.out') != "cc\nc++\ng77\n") test.write('SConstruct', """ env = Environment(CPPFLAGS = '-x', SHLINK = r'%s mylink.py', + SHLINKFLAGS = [], CC = r'%s mygcc.py cc', CXX = r'%s mygcc.py c++', + CXXFLAGS = [], F77 = r'%s mygcc.py g77') env.SharedLibrary(target = File('foo.bar'), source = Split('test1.c test2.cpp test3.F')) @@ -166,14 +172,17 @@ test.write('test3.F', r"""test3.F """) test.unlink('mygcc.out') +test.unlink('test1' + _obj) +test.unlink('test2' + _obj) +test.unlink('test3' + _obj) test.run(arguments = '.', stderr = None) -test.fail_test(test.read('test1' + _obj) != "test1.c\n#link\n") +test.fail_test(test.read('test1' + _shobj) != "test1.c\n#link\n") -test.fail_test(test.read('test2' + _obj) != "test2.cpp\n#link\n") +test.fail_test(test.read('test2' + _shobj) != "test2.cpp\n#link\n") -test.fail_test(test.read('test3' + _obj) != "test3.F\n#link\n") +test.fail_test(test.read('test3' + _shobj) != "test3.F\n#link\n") test.fail_test(test.read('foo.bar') != "test1.c\ntest2.cpp\ntest3.F\n") |