[Piglit] [PATCH 07/11] all.tests: Work around upcoming capitalization issues before they begin.
Jose Fonseca
jfonseca at vmware.com
Thu Feb 2 05:35:34 PST 2012
I think it is hard to accommodate this sort of mismtach on long term -- it will likely end up with bandaid after bandaid.
I'd recommend just choosing one kind one capitalization, and enforce it everywhere, i.e, make the test hierarchy to match the spec directory.
The idea I get from your patch series is that we'll just want to slim down all.tests and automatically derive more and more from the directory structure anyway.
Jose
----- Original Message -----
> In the spec directory, Piglit uses lower case names, such as:
>
> spec/arb_shader_texture_lod
>
> However, in the test hierarchy, it uses upper case names:
>
> spec 6491/6545
> ARB_shader_texture_lod 60/61
>
> The new test_list structure will be populated with names based on the
> file structure, which would make them lowercase. For compatibility,
> we should fix them to remain uppercase. It's easiest to do that
> once,
> at the end, rather than requiring workarounds in every place that
> adds
> tests.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> tests/all.tests | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/tests/all.tests b/tests/all.tests
> index dac1394..3211016 100644
> --- a/tests/all.tests
> +++ b/tests/all.tests
> @@ -2143,3 +2143,12 @@ for groupname, group in
> sorted(profile.tests.iteritems()):
> valgrind[groupname+"/"+testname+"/"+subtestname] =
> ValgrindExecTest(subtest)
>
> profile.tests['valgrind'] = valgrind
> +
> +# Fix up the capitalization mismatch between the spec directory
> structure
> +# and the piglit test categorization, for compatibility.
> +for name in profile.test_list.keys():
> + orig_name = name
> + for x in ['arb', 'ext', 'oes']:
> + name = name.replace('spec/' + x, 'spec/' + x.upper())
> + if name != orig_name:
> + profile.test_list[name] = profile.test_list.pop(orig_name)
> --
> 1.7.7.6
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
More information about the Piglit
mailing list