This is a trivial change that renames generated tests from 01, 02, 03... to names that express what is actually being tested. This information was already available to the function generating the tests, it just wasn't used.
Signed-off-by: Dylan Baker <[email protected]> --- generated_tests/gen_texture_lod_tests.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/generated_tests/gen_texture_lod_tests.py b/generated_tests/gen_texture_lod_tests.py index 2e8a40b..f6bc086 100644 --- a/generated_tests/gen_texture_lod_tests.py +++ b/generated_tests/gen_texture_lod_tests.py @@ -153,23 +153,25 @@ def main(): except OSError: pass - for count, params in enumerate(LOD_TESTS, start=1): + for params in LOD_TESTS: name = ("spec/arb_shader_texture_lod/compiler/" - "tex_lod-{0:02d}.frag".format(count)) + "tex_lod-{mode}-{dimensions}-{coord}.frag".format( + **params.__dict__)) print(name) gen_frag_lod_test(params, name) - for count, params in enumerate(GRAD_TESTS, start=1): + for params in GRAD_TESTS: + # Generate fragment shader test name = ("spec/arb_shader_texture_lod/compiler/" - "tex_grad-{0:02d}.frag".format(count)) + "tex_grad-{mode}-{dimensions}-{coord}.frag".format( + **params.__dict__)) print(name) gen_frag_grad_test(params, name) - # Start the count at len(GRAD_TESTS) + 1 so that the frag and vertex tests - # are sequentially numbered. - for count, params in enumerate(GRAD_TESTS, start=len(GRAD_TESTS) + 1): + # Generate vertex shader test name = ("spec/arb_shader_texture_lod/compiler/" - "tex_grad-{0:02d}.vert".format(count)) + "tex_grad-{mode}-{dimensions}-{coord}.vert".format( + **params.__dict__)) print(name) gen_vert_grad_test(params, name) -- 2.0.0.rc2 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
