[Piglit] [PATCH 2/4] piglt: Add support for subtests v2

Chad Versace chad.versace at linux.intel.com
Wed Dec 12 13:31:10 PST 2012

On 12/06/2012 04:14 PM, Tom Stellard wrote:
> From: Tom Stellard <thomas.stellard at amd.com>
> Subtests allow a test to produce more than one result.  This is useful
> for tests where it may be convenient to combine several somewhat
> unrelated tests into a single program.  For example, a cl test like:
> kernel void test(TYPE *out, TYPE *in) {
> 	out[0] = some_builtin_function(in[0], in[1]);
> }
> That uses only one kernel, but recompiles it several times with different
> definitions of the macro 'TYPE' in order to test the builtin with all
> the possible types.
> To take advantage of the subtest feature, programs should output one
> PIGLIT line per subtest as in the following example:
> PIGLIT:subtest {'testA' : 'pass'}
> PIGLIT:subtest {'testB' : 'fail'}
> Where testA and testB are the name of the subtests.
> In the result summary, this will be displayed as:
> TestName                            1/2
>       testA                         pass
>       testB                         fail
> v2:
>   - Print one line for each subtest rather than printing them all
>     together.

I'm unable to review Piglit's labyrinthine Python code, but I
really want this feature.

Patch 2 is:
Acked-by: Chad Versace <chad.versace at linux.intel.com>

More information about the Piglit mailing list