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.")
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)
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." )