[Piglit] [PATCH 4/5] util: Add function to get the set of subtests selected from the command-line

Chad Versace chad.versace at linux.intel.com
Tue Oct 22 01:56:58 CEST 2013


On 10/15/2013 05:32 PM, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: Chad Versace <chad.versace at linux.intel.com>
> ---
>   tests/util/piglit-framework-gl.c | 7 +++++++
>   tests/util/piglit-framework-gl.h | 3 +++
>   2 files changed, 10 insertions(+)
>
> diff --git a/tests/util/piglit-framework-gl.c b/tests/util/piglit-framework-gl.c
> index c297a6a..d1883c2 100644
> --- a/tests/util/piglit-framework-gl.c
> +++ b/tests/util/piglit-framework-gl.c
> @@ -326,3 +326,10 @@ piglit_run_selected_subtests(const struct piglit_gl_subtest *all_subtests,
>
>   	return result;
>   }
> +
> +size_t
> +piglit_get_selected_tests(const char ***selected_subtests)
> +{
> +	*selected_subtests = gl_fw->test_config->selected_subtests;
> +	return gl_fw->test_config->num_selected_subtests;
> +}
> diff --git a/tests/util/piglit-framework-gl.h b/tests/util/piglit-framework-gl.h
> index 0eb839e..120f2e8 100644
> --- a/tests/util/piglit-framework-gl.h
> +++ b/tests/util/piglit-framework-gl.h
> @@ -212,6 +212,9 @@ void
>   piglit_gl_process_args(int *argc, char *argv[],
>   		       struct piglit_gl_test_config *config);
>
> +size_t
> +piglit_get_selected_tests(const char ***selected_subtests);
> +
>   /**
>    * Run the OpenGL test described by @a config. Does not return.
>    */
>


Document what this function does, and this patch is
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>


More information about the Piglit mailing list