예제 #1
0
class TestZEDGE(UIATestBase):
    def setUp(self):
        super(TestZEDGE, self).setUp()
        self.logcat = Logcat()
        ZEDGEImpl().install_zedge()

    def defaultTestResult(self):
        """
        """
        super(TestZEDGE, self).tearDown()
        ApkInstallUninstallImpl().apk_uninstall("Zedge")

    def test_zedge_wallpapper(self):
        """
        test_3rdParty_Apk:Zedge
        """
        for x in range(3):
            mark_time = self.logcat.get_device_time_mark()
            ZEDGEImpl().init_zedge()
            ZEDGEImpl().set_static_wallpapper()
            ZEDGEImpl().set_live_wallpaper()
            ZEDGEImpl().set_ringtone()
            dut_log = self.logcat.get_device_log(mark_time, filters="*:F |grep net.zedge.android")
            # fatal_log = re.findall(
            #     '.+FATAL EXCEPTION.+', dut_log)
            print '=======================\n'
            print dut_log+'\n'
            print '-' * 60 + '\n'
            # print fatal_log
            print '-' * 60 + '\n'
            assert not dut_log, "there is been FATAL EXCEPTION in 3rdParty apk:'Zedge'"
예제 #2
0
 def setUp(self):
     super(NotificationAndQuickSettings, self).setUp()
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self.systemui = SystemUiExtendImpl()
     self.notifi_quick_settings = NotificationAndQuickSettingsImpl()
     self.systemui.unlock_screen()
     self._log = Logcat()
예제 #3
0
class NotificationAndQuickSettings(UIATestBase):
    def setUp(self):
        super(NotificationAndQuickSettings, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.systemui = SystemUiExtendImpl()
        self.notifi_quick_settings = NotificationAndQuickSettingsImpl()
        self.systemui.unlock_screen()
        self._log = Logcat()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(NotificationAndQuickSettings, self).tearDown()

    def test_HW_Composition_2PlanesPerOutput(self):
        """
        1.Enter into Home screen.
        2. Drag the areas corresponding to the Notification Panel.
        3. Drag the areas corresponding to the  Quick Settings Panel.
        4. Each Panel, Notification and Quick Settings, is properly displayed on top of the Home Screen.
        """
        try:
            self.notifi_quick_settings.drag_notification_panel()
            self.notifi_quick_settings.drag_quick_settings_panel()
        except:
            pass
        layer_num = self._log.get_layer_number()
        assert any(i in layer_num
                   for i in [0, 1]) is False, "Layer number is less than 2"
예제 #4
0
class SplashImpl(object):
    def __init__(self):
        self.fs = FileSystem()
        self.log = Logcat()
        self.adbExt = AdbExtension()

    def check_static_splashfile(self):
        filelist = self.fs.get_file_list(folder=StaticSplashFolder)
        if StaticSplashFileName not in str(filelist):
            filelist = self.fs.get_file_list(folder=StaticSplashFolder_M)
        assert len(filelist) > 0, "Did not find static splash file."
        assert StaticSplashFileName in str(
            filelist), "Got wrong splash file name."

    def check_animation_splashfile(self):
        filelist = self.fs.get_file_list(folder=AnimationFolder)
        assert len(filelist) > 0, "Did not find animation splash file."

    def check_earlyEvs_init(self):
        self.adbExt._adb_reboot()
        assert self.log.check_dmesg_info(keyword="\'earlyEvs|rvc\'", assertword='boot completed')\
               or self.log.check_dmesg_info(keyword="\'earlyEvs|rvc\'", assertword='exited with status 0'),\
            "earlyEvs(rvc) initiation failed."

    def get_bootanimation_time(self):
        timestamp = self.log.get_timestamp_dmesg(keyword="\'earlyEvs|rvc\'")
        boottime = int(float(timestamp[-1]) - float(timestamp[0]))
        print "Boot animation time is: < %d > sec" % boottime
        return boottime

    def earlyaudio_check(self):
        self.adbExt._adb_reboot()
        timestamp = self.log.get_timestamp_dmesg(keyword="earlyaudioalsa")
        if timestamp == []:
            return 0
        if float(timestamp[-1]) > 7:
            return self.log.check_dmesg_info(keyword="earlyaudioalsa",
                                             assertword="exited with status 0")
        else:
            return 0
예제 #5
0
class RundEQP(UIATestBase):

    @classmethod
    def setUpClass(self):
        """
        install conformance test tool
        """
        super(RundEQP, self).setUpClass()
        if g_common_obj.adb_cmd_capture_msg("ps | grep adbd")[0:4] != "root":
            g_common_obj.root_on_device()

    @classmethod
    def tearDownClass(self):
        """
        uninstall conformance test tool
        """
        super(RundEQP, self).tearDownClass()
        clearTmpDir()

    def setUp(self):
        super(RundEQP, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self._deqp = dEQPImpl()
        self.log = Logcat()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(RundEQP, self).tearDown()
        self._oglcnform = None

    def test_EGL_extension_EGL_ANDROID_image_native_buffer(self):
        print "[RunTest]: %s" % self.__str__()
        self._deqp.run_case("dEQP-EGL.info.extensions*", True, "EGL_ANDROID_image_native_buffer")

    def test_EGL_extension_EGL_ANDROID_framebuffer_target(self):
        print "[RunTest]: %s" % self.__str__()
        self._deqp.run_case("dEQP-EGL.info.extensions*", True, "EGL_ANDROID_framebuffer_target")

    def test_Dumpsys_SurfaceFlinger_EGL_ANDROID_framebuffer_target(self):
        print "[RunTest]: %s" % self.__str__()
        assert self.log.check_dumpsys_SurfaceFlinger_info(keyword="EGL_ANDROID_framebuffer_target", \
                                                          assertword="EGL_ANDROID_framebuffer_target"), \
            "EGL_ANDROID_framebuffer_target extension not found."

    def test_GLES31_extension_GL_EXT_texture_format_BGRA8888_color_display(self):
        print "[RunTest]: %s" % self.__str__()
        self._deqp.run_case("dEQP-GLES31.info.extensions*", True, "GL_EXT_texture_format_BGRA8888")

    def test_GLES31_extension_GL_OES_depth24_color_display(self):
        print "[RunTest]: %s" % self.__str__()
        self._deqp.run_case("dEQP-GLES31.info.extensions*", True, "GL_OES_depth24")
예제 #6
0
    def setUp(self):
        print "[Setup]:%s" % self.__class__.__name__
        super(CameraFrontbackCameraPictureCapturingTest, self).setUp()

        cmd = 'date +"%m-%d %H:%M:%S"'
        self.test_time_mark = g_common_obj.adb_cmd_capture_msg(repr(cmd))

        self.logcat = Logcat(g_common_obj)
        self.chrome_cast = self.IChromeCastImpl(self.cast_model)
        self.camera = CameraExtendImpl()
        self.systemui = SystemUiExtendImpl()

        self.camera.clean()

        self.systemui.unlock_screen()
        self.d.screen.on()
        self.d.orientation = 'natural'

        self.chrome_cast.setup()
        self.camera.startApp()
예제 #7
0
 def setUp(self):
     super(RundEQP, self).setUp()
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self._deqp = dEQPImpl()
     self.log = Logcat()
예제 #8
0
 def setUp(self):
     super(RundEQP, self).setUp()
     self._test_name = __name__
     print "[Setup]: %s" % self._test_name
     self.executor = GLCTSImpl()
     self.log = Logcat()
예제 #9
0
class RundEQP(UIATestBase):
    @classmethod
    def setUpClass(self):
        super(RundEQP, self).setUpClass()
        g_common_obj.root_on_device()

    @classmethod
    def tearDownClass(self):
        super(RundEQP, self).tearDownClass()

    def setUp(self):
        super(RundEQP, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.executor = GLCTSImpl()
        self.log = Logcat()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(RundEQP, self).tearDown()

    def test_ES32_CTS_blend_equation_advanced_blend_all(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.blend_equation_advanced.blend_all")

    def test_ES32_CTS_blend_equation_advanced_BlendEquationSeparate(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.BlendEquationSeparate")

    def test_ES32_CTS_texture_cube_map_array_tex3D_validation(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.tex3D_validation")

    def test_ES32_CTS_blend_equation_advanced_blend_specific(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.blend_specific")

    def test_ES32_CTS_blend_equation_advanced_coherentEnableDisable(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.coherentEnableDisable")

    def test_ES32_CTS_blend_equation_advanced_extension_directive_enable(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.extension_directive_enable")

    def test_ES32_CTS_texture_cube_map_array_subimage3D(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.texture_cube_map_array.subimage3D")

    def test_ES32_CTS_blend_equation_advanced_extension_directive_warn(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.extension_directive_warn")

    def test_ES32_CTS_texture_cube_map_array_stencil_attachments_mutable_nonlayered(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.stencil_attachments_mutable_nonlayered"
        )

    def test_ES32_CTS_blend_equation_advanced_mismatching_qualifier(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.mismatching_qualifier")

    def test_ES32_CTS_blend_equation_advanced_missing_qualifier(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.missing_qualifier")

    def test_ES32_CTS_blend_equation_advanced_MRT_array(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.blend_equation_advanced.MRT_array")

    def test_ES32_CTS_texture_cube_map_array_stencil_attachments_mutable_layered(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.stencil_attachments_mutable_layered"
        )

    def test_ES32_CTS_blend_equation_advanced_MRT_separate(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.blend_equation_advanced.MRT_separate")

    def test_ES32_CTS_blend_equation_advanced_test_coherency(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.blend_equation_advanced.test_coherency")

    def test_ES32_CTS_draw_buffers_indexed_blending(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.draw_buffers_indexed.blending")

    def test_ES32_CTS_texture_cube_map_array_stencil_attachments_immutable_nonlayered(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.stencil_attachments_immutable_nonlayered"
        )

    def test_ES32_CTS_texture_cube_map_array_sampling(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.texture_cube_map_array.sampling")

    def test_ES32_CTS_texture_cube_map_array_stencil_attachments_immutable_layered(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.stencil_attachments_immutable_layered"
        )

    def test_ES32_CTS_texture_cube_map_array_image_texture_size(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_texture_size")

    def test_ES32_CTS_draw_buffers_indexed_color_masks(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.draw_buffers_indexed.color_masks")

    def test_ES32_CTS_texture_cube_map_array_image_op_vertex_sh(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_op_vertex_sh")

    def test_ES32_CTS_draw_buffers_indexed_coverage(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.draw_buffers_indexed.coverage")

    def test_ES32_CTS_draw_buffers_indexed_default_state(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.draw_buffers_indexed.default_state")

    def test_ES32_CTS_draw_buffers_indexed_negative(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.draw_buffers_indexed.negative")

    def test_ES32_CTS_draw_buffers_indexed_set_get(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.draw_buffers_indexed.set_get")

    def test_ES32_CTS_texture_cube_map_array_image_op_tessellation_evaluation_sh(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_op_tessellation_evaluation_sh"
        )

    def test_ES32_CTS_geometry_shader_adjacency(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.adjacency")

    def test_ES32_CTS_texture_cube_map_array_image_op_tessellation_control_sh(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_op_tessellation_control_sh")

    def test_ES32_CTS_geometry_shader_api(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.api")

    def test_ES32_CTS_geometry_shader_blitting(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.blitting")

    def test_ES32_CTS_texture_cube_map_array_image_op_geometry_sh(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_op_geometry_sh")

    def test_ES32_CTS_geometry_shader_clipping(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.clipping")

    def test_ES32_CTS_texture_cube_map_array_image_op_fragment_sh(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_op_fragment_sh")

    def test_ES32_CTS_geometry_shader_constant_variables(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.constant_variables")

    def test_ES32_CTS_geometry_shader_input(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.input")

    def test_ES32_CTS_texture_cube_map_array_image_op_compute_sh(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.image_op_compute_sh")

    def test_ES32_CTS_geometry_shader_layered_framebuffer(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.layered_framebuffer")

    def test_ES32_CTS_texture_cube_map_array_getter_calls(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.texture_cube_map_array.getter_calls")

    def test_ES32_CTS_geometry_shader_layered_rendering(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.layered_rendering")

    def test_ES32_CTS_texture_cube_map_array_generate_mip_map_non_filterable_mutable_storage(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.generate_mip_map_non_filterable_mutable_storage"
        )

    def test_ES32_CTS_texture_cube_map_array_generate_mip_map_non_filterable_immutable_storage(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.generate_mip_map_non_filterable_immutable_storage"
        )

    def test_ES32_CTS_texture_cube_map_array_generate_mip_map_filterable_internalformat_mutable(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.generate_mip_map_filterable_internalformat_mutable"
        )

    def test_ES32_CTS_texture_cube_map_array_generate_mip_map_filterable_internalformat_immutable(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.generate_mip_map_filterable_internalformat_immutable"
        )

    def test_ES32_CTS_geometry_shader_layered_rendering_boundary_condition(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.geometry_shader.layered_rendering_boundary_condition")

    def test_ES32_CTS_texture_cube_map_array_fbo_incompleteness(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.fbo_incompleteness")

    def test_ES32_CTS_geometry_shader_layered_rendering_fbo_no_attachment(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.geometry_shader.layered_rendering_fbo_no_attachment")

    def test_ES32_CTS_texture_cube_map_array_color_depth_attachments(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_cube_map_array.color_depth_attachments")

    def test_ES32_CTS_texture_buffer_texture_buffer_texture_buffer_range(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_texture_buffer_range")

    def test_ES32_CTS_sample_shading_render(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.sample_shading.render")

    def test_ES32_CTS_geometry_shader_limits(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.limits")

    def test_ES32_CTS_geometry_shader_linking(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.linking")

    def test_ES32_CTS_geometry_shader_nonarray_input(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.nonarray_input")

    def test_ES32_CTS_texture_buffer_texture_buffer_precision(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_precision")

    def test_ES32_CTS_geometry_shader_output(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.output")

    def test_ES32_CTS_texture_buffer_texture_buffer_parameters(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_parameters")

    def test_ES32_CTS_sample_variables_mask(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.sample_variables.mask")

    def test_ES32_CTS_texture_buffer_texture_buffer_operations_transform_feedback(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_operations_transform_feedback"
        )

    def test_ES32_CTS_geometry_shader_primitive_counter(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.primitive_counter")

    def test_ES32_CTS_geometry_shader_primitive_queries(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.primitive_queries")

    def test_ES32_CTS_texture_buffer_texture_buffer_operations_ssbo_writes(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_operations_ssbo_writes")

    def test_ES32_CTS_geometry_shader_program_resource(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.program_resource")

    def test_ES32_CTS_texture_buffer_texture_buffer_operations_framebuffer_readback(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_operations_framebuffer_readback"
        )

    def test_ES32_CTS_geometry_shader_qualifiers(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.qualifiers")

    def test_ES32_CTS_geometry_shader_rendering(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.geometry_shader.rendering")

    def test_ES32_CTS_gpu_shader5_atomic_counters_array_indexing(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.atomic_counters_array_indexing")

    def test_ES32_CTS_gpu_shader5_fma_accuracy(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.fma_accuracy")

    def test_ES32_CTS_texture_buffer_texture_buffer_operations_image_store(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_operations_image_store")

    def test_ES32_CTS_gpu_shader5_fma_precision_float(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.fma_precision_float")

    def test_ES32_CTS_gpu_shader5_fma_precision_vec2(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.fma_precision_vec2")

    def test_ES32_CTS_texture_buffer_texture_buffer_operations_cpu_writes(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_operations_cpu_writes")

    def test_ES32_CTS_sample_variables_position(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.sample_variables.position")

    def test_ES32_CTS_gpu_shader5_fma_precision_vec3(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.fma_precision_vec3")

    def test_ES32_CTS_gpu_shader5_fma_precision_vec4(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.fma_precision_vec4")

    def test_ES32_CTS_texture_buffer_texture_buffer_operations_buffer_load(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_operations_buffer_load")

    def test_ES32_CTS_gpu_shader5_images_array_indexing(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.images_array_indexing")

    def test_ES32_CTS_texture_buffer_texture_buffer_max_size(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_max_size")

    def test_ES32_CTS_gpu_shader5_precise_qualifier(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.precise_qualifier")

    def test_ES32_CTS_texture_buffer_texture_buffer_errors(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.texture_buffer.texture_buffer_errors")

    def test_ES32_CTS_gpu_shader5_sampler_array_indexing(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.gpu_shader5.sampler_array_indexing")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_color_array(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_color_array")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_color_clamp_to_border(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_color_clamp_to_border")

    def test_ES32_CTS_texture_buffer_texture_buffer_conv_int_to_float(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_conv_int_to_float")

    def test_ES32_CTS_shader_multisample_interpolation_api(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.shader_multisample_interpolation.api")

    def test_ES32_CTS_texture_buffer_texture_buffer_buffer_parameters(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_buffer_parameters")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_color_clamp_to_edge(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_color_clamp_to_edge")

    def test_ES32_CTS_texture_buffer_texture_buffer_atomic_functions(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_atomic_functions")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_color_repeat(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_color_repeat")

    def test_ES32_CTS_texture_buffer_texture_buffer_active_uniform_validation_fragment_shader(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_active_uniform_validation_fragment_shader"
        )

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_depth_array(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_depth_array")

    def test_ES32_CTS_texture_buffer_texture_buffer_active_uniform_validation_compute_shader(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_buffer.texture_buffer_active_uniform_validation_compute_shader"
        )

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_depth_clamp_border(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_depth_clamp_border")

    def test_ES32_CTS_texture_border_clamp_texparameteri_errors(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.texparameteri_errors")

    def test_ES32_CTS_texture_border_clamp_sampling_texture(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.sampling_texture")

    def test_ES32_CTS_shader_multisample_interpolation_render(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.shader_multisample_interpolation.render")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_depth_clamp_edge(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_depth_clamp_edge")

    def test_ES32_CTS_texture_border_clamp_samplerparameteri_with_wrong_pname(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.samplerparameteri_with_wrong_pname")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_depth_repeat(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_depth_repeat")

    def test_ES32_CTS_gpu_shader5_texture_gather_offset_depth_repeat_y(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offset_depth_repeat_y")

    def test_ES32_CTS_tessellation_shader_compilation_and_linking_errors(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.compilation_and_linking_errors")

    def test_ES32_CTS_texture_border_clamp_samplerparameteri_non_gen_sampler_error(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.samplerparameteri_non_gen_sampler_error"
        )

    def test_ES32_CTS_gpu_shader5_texture_gather_offsets_color(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offsets_color")

    def test_ES32_CTS_gpu_shader5_texture_gather_offsets_depth(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.texture_gather_offsets_depth")

    def test_ES32_CTS_texture_border_clamp_samplerparameteri_border_color(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.samplerparameteri_border_color")

    def test_ES32_CTS_tessellation_shader_default_values_of_context_wide_properties(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.default_values_of_context_wide_properties"
        )

    def test_ES32_CTS_gpu_shader5_uniform_blocks_array_indexing(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.gpu_shader5.uniform_blocks_array_indexing")

    def test_ES32_CTS_texture_border_clamp_gettexparameteri_errors(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.gettexparameteri_errors")

    def test_ES32_CTS_tessellation_shader_ext_program_interface_query_dependency(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.ext_program_interface_query_dependency"
        )

    def test_ES32_CTS_tessellation_shader_isolines_tessellation(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.isolines_tessellation")

    def test_ES32_CTS_info(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.info")

    def test_ES32_CTS_tessellation_shader_max_patch_vertices(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.max_patch_vertices")

    def test_ES32_CTS_texture_border_clamp_border_color_errors(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.texture_border_clamp.border_color_errors")

    def test_ES32_CTS_tessellation_shader_primitive_coverage(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.primitive_coverage")

    def test_ES32_CTS_sample_shading_api(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.sample_shading.api")

    def test_ES32_CTS_tessellation_shader_xfb_captures_data_from_correct_stage(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.xfb_captures_data_from_correct_stage"
        )

    def test_ES32_CTS_tessellation_shader_vertex_spacing(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.tessellation_shader.vertex_spacing")

    def test_ES32_CTS_tessellation_shader_program_object_properties(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.program_object_properties")

    def test_ES32_CTS_tessellation_shader_vertex_ordering(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case("ES32-CTS.tessellation_shader.vertex_ordering")

    def test_ES32_CTS_tessellation_shader_tessellation_control_to_tessellation_evaluation(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_control_to_tessellation_evaluation"
        )

    def test_ES32_CTS_tessellation_shader_tessellation_invariance(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_invariance")

    def test_ES32_CTS_tessellation_shader_tessellation_shader_triangles_tessellation(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_shader_triangles_tessellation"
        )

    def test_ES32_CTS_tessellation_shader_tessellation_shader_tessellation(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_shader_tessellation")

    def test_ES32_CTS_tessellation_shader_tessellation_shader_point_mode(self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_shader_point_mode")

    def test_ES32_CTS_tessellation_shader_tessellation_shader_tc_barriers(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_shader_tc_barriers")

    def test_ES32_CTS_tessellation_shader_tessellation_shader_quads_tessellation(
            self):
        print "[RunTest]: %s" % self.__str__()
        self.executor.run_case(
            "ES32-CTS.tessellation_shader.tessellation_shader_quads_tessellation"
        )

    def test_OpenGLES_32_Support_dumpsys_SurfaceFlinger(self):
        print "[RunTest]: %s" % self.__str__()
        assert self.log.check_dumpsys_SurfaceFlinger_info(keyword="gles", assertword="OpenGL ES 3.2"),\
            "OpenGL ES version is not 3.2!"

    def test_OpenGLES_32_Support_Grafika(self):
        "Same step as above test since it's separated with different case in HPALM"
        print "[RunTest]: %s" % self.__str__()
        assert self.log.check_dumpsys_SurfaceFlinger_info(keyword="gles", assertword="OpenGL ES 3.2"),\
            "OpenGL ES version is not 3.2!"

    def test_OpenGLES_32_Support_OpenGL_Extensions_Viewer(self):
        "Same step as above test since it's separated with different case in HPALM"
        print "[RunTest]: %s" % self.__str__()
        assert self.log.check_dumpsys_SurfaceFlinger_info(keyword="gles", assertword="OpenGL ES 3.2"),\
            "OpenGL ES version is not 3.2!"

    def test_EGL_get_proc_address_core_32(self):
        print "[RunTest]: %s" % self.__str__()
        deqp_impl.run_case("dEQP-EGL.functional.get_proc_address.core.*")

    def test_GLES31_android_extension_pack_extensions_32(self):
        print "[RunTest]: %s" % self.__str__()
        deqp_impl.run_case(
            "dEQP-GLES31.functional.android_extension_pack.extensions*")

    def test_GLES31_android_extension_pack_limits_32(self):
        print "[RunTest]: %s" % self.__str__()
        deqp_impl.run_case(
            "dEQP-GLES31.functional.android_extension_pack.limits*")

    def test_GLES31_android_extension_pack_shaders_32(self):
        print "[RunTest]: %s" % self.__str__()
        deqp_impl.run_case(
            "dEQP-GLES31.functional.android_extension_pack.shaders*")

    def test_GLES31_info_extensions_32(self):
        print "[RunTest]: %s" % self.__str__()
        sub_case_list = [
            'KHR_debug', 'KHR_texture_compression_astc_ldr',
            'KHR_blend_equation_advanced', 'OES_sample_shading',
            'OES_sample_variables', 'OES_shader_image_atomic',
            'OES_shader_multisample_interpolation', 'OES_texture_stencil8',
            'OES_texture_storage_multisample_2d_array', 'EXT_copy_image',
            'OES_copy_image', 'EXT_draw_buffers_indexed',
            'OES_draw_buffers_indexed', 'EXT_geometry_shader',
            'OES_geometry_shader', 'EXT_gpu_shader5', 'OES_gpu_shader5',
            'EXT_primitive_bounding_box', 'OES_primitive_bounding_box',
            'EXT_shader_io_blocks', 'OES_shader_io_blocks',
            'EXT_tessellation_shader', 'OES_tessellation_shader',
            'EXT_texture_border_clamp', 'OES_texture_border_clamp',
            'EXT_texture_buffer', 'OES_texture_buffer',
            'EXT_texture_cube_map_array', 'OES_texture_cube_map_array',
            'OES_draw_elements_base_vertex', 'EXT_color_buffer_float',
            'KHR_robustness'
        ]
        deqp_impl.run_case("dEQP-GLES31.info.extensions*")
        output = g_common_obj.adb_cmd_capture_msg("cat %s" %
                                                  deqp_impl.inside_output)
        for sub_c in sub_case_list:
            sub_case_name = "GL_" + sub_c
            assert sub_case_name in output, "%s is not in extension list" % sub_case_name
예제 #10
0
 def __init__(self):
     self.fs = FileSystem()
     self.log = Logcat()
     self.adbExt = AdbExtension()
예제 #11
0
 def setUp(self):
     super(TestZEDGE, self).setUp()
     self.logcat = Logcat()
     ZEDGEImpl().install_zedge()