Beispiel #1
0
 def testGetThirdPartyLibrariesWithRegex(self):
     lib_regex_dict = {
         'libname2:c.*': ['path/to/LICENSE'],
     }
     builder = LicenseBuilder([], [], {}, lib_regex_dict)
     self.assertEqual(builder._GetThirdPartyLibraries('out/arm', 'target1'),
                      set(['libname1', 'libname2:c.*', 'libname3']))
Beispiel #2
0
 def testGetThirdPartyLibrariesWithoutRegex(self):
     builder = LicenseBuilder([], [], {}, {})
     self.assertEquals(
         builder._GetThirdPartyLibraries('out/arm', 'target1'),
         set(['libname1', 'libname2', 'libname3']))
 def testGetThirdPartyLibraries(self):
     self.assertEquals(
         LicenseBuilder._GetThirdPartyLibraries('out/arm', 'target1'),
         set(['libname1', 'libname2', 'libname3']))