예제 #1
0
    def check_debugserver(self, log):
        """scan the debugserver packet log"""
        process_info = lldbutil.packetlog_get_process_info(log)
        self.assertIn('ostype', process_info)
        self.assertEquals(process_info['ostype'], 'maccatalyst')

        aout_info = None
        dylib_info = lldbutil.packetlog_get_dylib_info(log)
        for image in dylib_info['images']:
            if image['pathname'].endswith('a.out'):
                aout_info = image
        self.assertTrue(aout_info)
        self.assertEquals(aout_info['min_version_os_name'], 'maccatalyst')
예제 #2
0
 def check_debugserver(self, log, expected_platform, expected_version):
     """scan the debugserver packet log"""
     process_info = lldbutil.packetlog_get_process_info(log)
     self.assertIn('ostype', process_info)
     self.assertEquals(process_info['ostype'], expected_platform)
     dylib_info = lldbutil.packetlog_get_dylib_info(log)
     self.assertTrue(dylib_info)
     aout_info = None
     for image in dylib_info['images']:
         if image['pathname'].endswith('a.out'):
             aout_info = image
     self.assertTrue(aout_info)
     self.assertEquals(aout_info['min_version_os_name'], expected_platform)
     if expected_version:
         self.assertEquals(aout_info['min_version_os_sdk'], expected_version)