plugin: shell
name: piglit/fbo
requires:
 package.name == 'piglit'
command: piglit_test -t ^spec/EXT_framebuffer_object -n fbo
description:
 Runs piglit tests for checking support for framebuffer object operations, depth buffer and stencil buffer

plugin: shell
name: piglit/gl-2.1
requires:
 package.name == 'piglit'
command: piglit_test -t spec/'!OpenGL 2.1'/ -n gl-2.1
description:
 Runs piglit tests for checking OpenGL 2.1 support

plugin: shell
name: piglit/vbo
requires:
 package.name == 'piglit'
command: piglit_test -t spec/ARB_vertex_buffer_object/ -n vbo
description:
 Runs piglit tests for checking support for vertex buffer object operations

plugin: shell
name: piglit/glsl-fragment-shader
requires:
 package.name == 'piglit'
command: piglit_test -t ^shaders/glsl-arb-fragment -n glsl-fragment-shader
description:
 Runs piglit tests for checking support for GLSL fragment shader operations

plugin: shell
name: piglit/glsl-vertex-shader
requires:
 package.name == 'piglit'
command: piglit_test -t ^shaders/glsl-clamp-vertex-color -t ^shaders/glsl-max-vertex-attrib -t ^shaders/glsl-novertexdata -n glsl-vertex-shader
description:
 Runs piglit tests for checking support for GLSL vertex shader operations

plugin: shell
name: piglit/glx-tfp
requires:
 package.name == 'piglit'
command: piglit_test -t glx-tfp -n glx-tfp
description:
 Runs piglit tests for checking support for texture from pixmap

plugin: shell
name: piglit/stencil_buffer
requires:
 package.name == 'piglit'
command: piglit_test -t glx-visuals-stencil -t readpixels-24_8 -n stencil_buffer
description:
 Runs piglit_tests for checking support for stencil buffer operations

plugin: shell
name: piglit/summarize_results
requires:
 package.name == 'piglit'
command: [ -e $CHECKBOX_DATA/piglit-results ] && piglit-summary-html.py $CHECKBOX_DATA/piglit-summary/ `find $CHECKBOX_DATA/piglit-results/ -name main` && echo "Successfully summarized piglit results. They are available in $CHECKBOX_DATA/piglit-sumary/"
description:
 Runs the piglit results summarizing tool

plugin: shell
name: piglit/tarball
requires:
 package.name == 'piglit'
depends: piglit/summarize_results
command: [ -e $CHECKBOX_DATA/piglit-summary ] && tar cvfz $CHECKBOX_DATA/piglit-results.tar.gz $CHECKBOX_DATA/piglit-summary/
description:
 Archives the piglit-summary directory into the piglit-results.tar.gz.
