Exemplo n.º 1
0
 def __init__(self):
     self._device = g_common_obj.get_device()
     self.tmp = tempfile.gettempdir()
     self.tmpdir = getTmpDir()
     self.inside_output = "/sdcard/TestResult.qpa"
     self.device = g_common_obj.get_test_device()
     self.env = EnvironmentUtils()
     self._mustpass_path = '/sdcard'
     self._mustpass_list = [
         'vk-master.txt', 'egl-master.txt', 'gles2-master.txt',
         'gles3-master.txt', 'gles31-master.txt'
     ]
     self._failure_log = os.path.join(
         g_common_obj.globalcontext.user_log_dir, 'deqp_failures.log')
     self._raw_deqp_result = os.path.join(
         g_common_obj.globalcontext.user_log_dir, 'deqp_test_result.log')
     self._extension_list = os.path.join(
         g_common_obj.globalcontext.user_log_dir, 'extension_list.log')
Exemplo n.º 2
0
    def _install_apk(self):

        if not pkgmgr._package_installed(pkgName=PACKAGE_NAME):
            android_version = EnvironmentUtils().get_android_version()
            selection = {
                'L': 'apk_l',
                'M': 'apk_m',
                'N': 'apk_n',
                'O-MR0': 'apk_omr0',
                'O-MR1': 'apk_omr1'
            }
            try:
                file_path = get_resource_from_atifactory(
                    'tests.tablet.artifactory.conf', 'content_colormode',
                    selection[android_version])
                pkgmgr.apk_install(file_path)
            except KeyError, e:
                print "ColorMode app version not match with android os: %s" % str(
                    e)
Exemplo n.º 3
0
 def __init__(self):
     self.device = g_common_obj.get_device()
     self.android_version = EnvironmentUtils().get_android_version()
     self.dut_binary_path = "/data/app"
     self.dut_lib_path = "/system/lib64"
     self.dut_vendor_lib_path = "/vendor/lib64"
     self.config = "tests.tablet.artifactory.conf"
     self.tag = "framebuffer_dependency_m" if self.android_version == "M" else "framebuffer_dependency_o"
     self.arti = Artifactory(
         TestConfig().read(section='artifactory').get('location'))
     self.remote_bin_path = TestConfig().read(self.config,
                                              self.tag).get("binary_kms")
     self.remote_libcairo_path = TestConfig().read(self.config,
                                                   self.tag).get("libcairo")
     self.remote_libft2_path = TestConfig().read(self.config,
                                                 self.tag).get("libft2")
     try:
         self.remote_libkmod_path = TestConfig().read(
             self.config, self.tag).get("libkmod")
         self.remote_libpciaccess_path = TestConfig().read(
             self.config, self.tag).get("libpciaccess")
     except:
         pass
Exemplo n.º 4
0
 def setUpClass(self):
     super(RunFBC, self).setUpClass()
     if g_common_obj.adb_cmd_capture_msg("ps | grep adbd")[0:4] != "root":
         g_common_obj.root_on_device()
     self.android_version = EnvironmentUtils().get_android_version()
Exemplo n.º 5
0
 def __init__(self):
     self.SET_TIMEOUT = 45
     self.ANDROID_VERSION = EnvironmentUtils().get_android_version()