Exemplo n.º 1
0
 def test_isAutoToolsProject1(self):
     self.assertTrue(
         autoTools.isAutoToolsProject(
             "cases/simpleGraphAutoTools/TestCaseA"),
         "Failed to detect AutoTools project.")
     self.assertFalse(
         autoTools.isAutoToolsProject("cases/cmake/hello/main"),
         "False positive when given CMake project.")
Exemplo n.º 2
0
 def test_isAutoToolsProject4(self):
     try:
         tempDir = mdTestUtilities.makeTempDir()
         tempFile = os.path.join(tempDir, "configure.ac")
         mdTestUtilities.createBlankFile(tempFile)
         self.assertTrue(autoTools.isAutoToolsProject(tempDir), "Failed to detect AutoTools project.")
     finally:
         utilityFunctions.removeDir(tempDir)
Exemplo n.º 3
0
 def test_isAutoToolsProject4(self):
     try:
         tempDir = mdTestUtilities.makeTempDir()
         tempFile = os.path.join(tempDir, "configure.ac")
         mdTestUtilities.createBlankFile(tempFile)
         self.assertTrue(autoTools.isAutoToolsProject(tempDir),
                         "Failed to detect AutoTools project.")
     finally:
         utilityFunctions.removeDir(tempDir)
Exemplo n.º 4
0
 def test_isAutoToolsProject1(self):
     self.assertTrue(autoTools.isAutoToolsProject("cases/simpleGraphAutoTools/TestCaseA"), "Failed to detect AutoTools project.")
     self.assertFalse(autoTools.isAutoToolsProject("cases/cmake/hello/main"), "False positive when given CMake project.")