[Piglit] [PATCH 1/2] sanity: Turn shader_test list into a string

Dylan Baker dylan at pnwbakers.com
Fri Sep 21 23:02:40 UTC 2018


Quoting Jordan Justen (2018-09-21 15:53:46)
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  tests/sanity.py | 13 +++++++++----
>  1 file changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/sanity.py b/tests/sanity.py
> index 88bf27457..566d63218 100644
> --- a/tests/sanity.py
> +++ b/tests/sanity.py
> @@ -66,10 +66,15 @@ def add_shader_test(shader):
>  
>  profile = TestProfile()
>  
> -add_shader_test('tests/shaders/glsl-algebraic-add-zero.shader_test')
> -add_shader_test('tests/spec/glsl-1.50/execution/geometry-basic.shader_test')
> -add_shader_test('tests/spec/arb_tessellation_shader/execution/sanity.shader_test')
> -add_shader_test('tests/spec/arb_compute_shader/execution/basic-ssbo.shader_test')
> +shader_tests = '''
> +tests/shaders/glsl-algebraic-add-zero.shader_test
> +tests/spec/arb_compute_shader/execution/basic-ssbo.shader_test
> +tests/spec/arb_tessellation_shader/execution/sanity.shader_test
> +tests/spec/glsl-1.50/execution/geometry-basic.shader_test
> +'''

How about a list of strings?

for that you could have:
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>

> +
> +for line in shader_tests.split():
> +    add_shader_test(line)
>  
>  with profile.test_list.group_manager(
>          PiglitGLTest,
> -- 
> 2.18.0
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20180921/54684617/attachment.sig>


More information about the Piglit mailing list