Add CheckSHCC and CheckSHCXX.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Sep 2008 08:30:46 +0000 (08:30 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Sep 2008 08:30:46 +0000 (08:30 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3332 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/SConfTests.py

index c9d59a155cc625a81a2694e59800abf8b8618655..cef38893cb3c0cdba5741fcc2794519cc2823ce3 100644 (file)
@@ -349,6 +349,18 @@ int main() {
         finally:
             sconf.Finish()
 
+    def test_CheckSHCC(self):
+        """Test SConf.CheckSHCC()
+        """
+        self._resetSConfState()
+        sconf = self.SConf.SConf(self.scons_env,
+                                 conf_dir=self.test.workpath('config.tests'),
+                                 log_file=self.test.workpath('config.log'))
+        try:
+            self._test_check_compilers('SHCC', sconf.CheckSHCC, 'CheckSHCC')
+        finally:
+            sconf.Finish()
+
     def test_CheckCXX(self):
         """Test SConf.CheckCXX()
         """
@@ -361,6 +373,18 @@ int main() {
         finally:
             sconf.Finish()
 
+    def test_CheckSHCXX(self):
+        """Test SConf.CheckSHCXX()
+        """
+        self._resetSConfState()
+        sconf = self.SConf.SConf(self.scons_env,
+                                 conf_dir=self.test.workpath('config.tests'),
+                                 log_file=self.test.workpath('config.log'))
+        try:
+            self._test_check_compilers('SHCXX', sconf.CheckSHCXX, 'CheckSHCXX')
+        finally:
+            sconf.Finish()
+
 
     def test_CheckHeader(self):
         """Test SConf.CheckHeader()