Esempio n. 1
0
 def test_parser_complete_cmake_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_text)
     obtained = [include.name for include in cmake.includes]
     expected = [
         'src/Macros.cmake', 'src2/Macros2.cmake', 'src3/Macros3.cmake',
         'include/CMakeLists.txt', 'config/Config'
     ]
     self.assertItemsEqual(expected, obtained)
Esempio n. 2
0
 def test_parser_icnlude_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_includes_text)
     obtained = [include.name for include in cmake.includes]
     expected = [
         'src/Macros.cmake', 'src2/Macros2.cmake',
         'Module/cmake/Macro.cmake'
     ]
     self.assertItemsEqual(expected, obtained)
 def test_parser_complete_cmake_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_text)
     obtained = [include.name for include in cmake.includes]
     expected = ['src/Macros.cmake',
                 'src2/Macros2.cmake',
                 'src3/Macros3.cmake',
                 'include/CMakeLists.txt',
                 'config/Config']
     self.assertItemsEqual(expected, obtained)
Esempio n. 4
0
 def test_parser_configure_file_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_configure_file_text)
     obtained = [include.name for include in cmake.includes]
     expected = ['src/Macros.cmake', 'config.h.in', 'config']
     self.assertItemsEqual(expected, obtained)
Esempio n. 5
0
 def test_parser_add_subdirectory_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_add_subdirectory_text)
     obtained = [include.name for include in cmake.includes]
     expected = ['cmake/CMakeLists.txt', 'src4/CMakeLists.txt']
     self.assertItemsEqual(expected, obtained)
 def test_parser_configure_file_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_configure_file_text)
     obtained = [include.name for include in cmake.includes]
     expected = ['src/Macros.cmake', 'config.h.in', 'config']
     self.assertItemsEqual(expected, obtained)
 def test_parser_add_subdirectory_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_add_subdirectory_text)
     obtained = [include.name for include in cmake.includes]
     expected = ['cmake/CMakeLists.txt', 'src4/CMakeLists.txt']
     self.assertItemsEqual(expected, obtained)
 def test_parser_icnlude_test(self):
     cmake = CMakeParser()
     cmake.parse(cmake_includes_text)
     obtained = [include.name for include in cmake.includes]
     expected = ['src/Macros.cmake', 'src2/Macros2.cmake', 'Module/cmake/Macro.cmake']
     self.assertItemsEqual(expected, obtained)