arb_copy_image: test copying of different mipmap levels of a texture
[piglit.git] / tests / deqp_gles31.py
blobb39f78db65998f5ece5230df40a0155f8c2ffe7d
1 # coding=utf-8
2 # Copyright 2015, 2019 Intel Corporation
4 # Permission is hereby granted, free of charge, to any person obtaining a copy
5 # of this software and associated documentation files (the "Software"), to deal
6 # in the Software without restriction, including without limitation the rights
7 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 # copies of the Software, and to permit persons to whom the Software is
9 # furnished to do so, subject to the following conditions:
11 # The above copyright notice and this permission notice shall be included in
12 # all copies or substantial portions of the Software.
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20 # SOFTWARE.
22 """Piglit integrations for dEQP GLES31 tests."""
24 from framework import core
25 from framework.test import deqp
26 from framework.options import OPTIONS
28 __all__ = ['profile']
30 # Path to the deqp-gles3 executable.
31 _DEQP_GLES31_BIN = core.get_option('PIGLIT_DEQP_GLES31_BIN',
32 ('deqp-gles31', 'bin'),
33 required=True)
35 _DEQP_MUSTPASS = core.get_option('PIGLIT_DEQP31_MUSTPASS',
36 ('deqp-gles31', 'mustpasslist'),
37 required=OPTIONS.deqp_mustpass)
39 _EXTRA_ARGS = core.get_option('PIGLIT_DEQP_GLES31_EXTRA_ARGS',
40 ('deqp-gles31', 'extra_args'),
41 default='').split()
44 class DEQPGLES31Test(deqp.DEQPBaseTest):
45 deqp_bin = _DEQP_GLES31_BIN
47 @property
48 def extra_args(self):
49 return super(DEQPGLES31Test, self).extra_args + \
50 [x for x in _EXTRA_ARGS if not x.startswith('--deqp-case')]
53 profile = deqp.make_profile( # pylint: disable=invalid-name
54 deqp.select_source(_DEQP_GLES31_BIN, 'dEQP-GLES31-cases.txt',
55 _DEQP_MUSTPASS, _EXTRA_ARGS),
56 DEQPGLES31Test)