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