summaryrefslogtreecommitdiffstats
path: root/test/CXX/CXXCOM.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-11-21 00:41:12 (GMT)
committerSteven Knight <knight@baldmt.com>2004-11-21 00:41:12 (GMT)
commitffc625f8cf332399ba754bf2ebe9e700e5122eac (patch)
tree9c21395a4d49fd3aba7a22fe8e93b041445b00b3 /test/CXX/CXXCOM.py
parent376cfbfee0d52e867f2c6b955b6e218d788284ba (diff)
downloadSCons-ffc625f8cf332399ba754bf2ebe9e700e5122eac.zip
SCons-ffc625f8cf332399ba754bf2ebe9e700e5122eac.tar.gz
SCons-ffc625f8cf332399ba754bf2ebe9e700e5122eac.tar.bz2
Miscellaneous fixes: portability and version fixes, missing , better CXXCOM tests, ATL include directories, intelc Tool import.
Diffstat (limited to 'test/CXX/CXXCOM.py')
-rw-r--r--test/CXX/CXXCOM.py35
1 files changed, 20 insertions, 15 deletions
diff --git a/test/CXX/CXXCOM.py b/test/CXX/CXXCOM.py
index 4641473..c4c419d 100644
--- a/test/CXX/CXXCOM.py
+++ b/test/CXX/CXXCOM.py
@@ -50,31 +50,36 @@ sys.exit(0)
""")
if os.path.normcase('.c') == os.path.normcase('.C'):
- alt_cc_suffix = '.CC'
+ alt_cpp_suffix = '.cpp'
else:
- alt_cc_suffix = '.cc'
+ alt_cpp_suffix = '.C'
test.write('SConstruct', """
env = Environment(CXXCOM = r'%(python)s mycc.py $TARGET $SOURCE',
OBJSUFFIX='.obj')
-env.Object(target = 'test1', source = 'test1.cc')
-env.Object(target = 'test2', source = 'test2%(alt_cc_suffix)s')
+env.Object(target = 'test1', source = 'test1.cpp')
+env.Object(target = 'test2', source = 'test2.cc')
+env.Object(target = 'test3', source = 'test3.cxx')
+env.Object(target = 'test4', source = 'test4.c++')
+env.Object(target = 'test5', source = 'test5.C++')
+env.Object(target = 'test6', source = 'test6%(alt_cpp_suffix)s')
""" % locals())
-test.write('test1.cc', """\
-test1.cc
-/*c++*/
-""")
-
-test.write('test2'+alt_cc_suffix, """\
-test2.CC
-/*c++*/
-""")
+test.write('test1.cpp', "test1.cpp\n/*c++*/\n")
+test.write('test2.cc', "test2.cc\n/*c++*/\n")
+test.write('test3.cxx', "test3.cxx\n/*c++*/\n")
+test.write('test4.c++', "test4.c++\n/*c++*/\n")
+test.write('test5.C++', "test5.C++\n/*c++*/\n")
+test.write('test6'+alt_cpp_suffix, "test6.C\n/*c++*/\n")
test.run()
-test.must_match('test1.obj', "test1.cc\n")
-test.must_match('test2.obj', "test2.CC\n")
+test.must_match('test1.obj', "test1.cpp\n")
+test.must_match('test2.obj', "test2.cc\n")
+test.must_match('test3.obj', "test3.cxx\n")
+test.must_match('test4.obj', "test4.c++\n")
+test.must_match('test5.obj', "test5.C++\n")
+test.must_match('test6.obj', "test6.C\n")