示例#1
0
 def test_isCMakeProject1(self):
     self.assertTrue(cmake.isCMakeProject("cases/cmake/hello/hello1"),
                     "Failed to detect CMake project.")
     self.assertTrue(cmake.isCMakeProject("cases/cmake/hello/main"),
                     "Failed to detect CMake project.")
     self.assertFalse(
         cmake.isCMakeProject("cases/simpleGraphAutoTools/TestCaseA"),
         "False positive when given CMake project.")
示例#2
0
 def test_isCMakeProject2(self):
     try:
         tempDir = mdTestUtilities.makeTempDir()
         tempFile = os.path.join(tempDir, "CMakeLists.txt")
         mdTestUtilities.createBlankFile(tempFile)
         self.assertTrue(cmake.isCMakeProject(tempDir), "Failed to detect CMake project.")
     finally:
         utilityFunctions.removeDir(tempDir)
示例#3
0
 def test_isCMakeProject2(self):
     try:
         tempDir = mdTestUtilities.makeTempDir()
         tempFile = os.path.join(tempDir, "CMakeLists.txt")
         mdTestUtilities.createBlankFile(tempFile)
         self.assertTrue(cmake.isCMakeProject(tempDir),
                         "Failed to detect CMake project.")
     finally:
         utilityFunctions.removeDir(tempDir)
示例#4
0
 def test_isCMakeProject1(self):
     self.assertTrue(cmake.isCMakeProject("cases/cmake/hello/hello1"), "Failed to detect CMake project.")
     self.assertTrue(cmake.isCMakeProject("cases/cmake/hello/main"), "Failed to detect CMake project.")
     self.assertFalse(
         cmake.isCMakeProject("cases/simpleGraphAutoTools/TestCaseA"), "False positive when given CMake project."
     )