[Piglit] [PATCH 1/9] generated tests: Make test generation happen in a deterministic order.
Paul Berry
stereotype441 at gmail.com
Mon Aug 15 11:45:22 PDT 2011
This patch makes gen_builtin_uniform_tests.py and
gen_constant_array_size_tests.py build tests in a deterministic order,
so that when diffing their outputs from one revision to the next, it
is easier to see what changed.
There is no change in the actual tests generated, just in the *.list
files that are created as a side effect.
---
generated_tests/gen_builtin_uniform_tests.py | 2 +-
generated_tests/gen_constant_array_size_tests.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py
index 752cfb7..d739ca1 100644
--- a/generated_tests/gen_builtin_uniform_tests.py
+++ b/generated_tests/gen_builtin_uniform_tests.py
@@ -416,7 +416,7 @@ class FragmentShaderTest(ShaderTest):
def all_tests():
- for signature, test_vectors in test_suite.items():
+ for signature, test_vectors in sorted(test_suite.items()):
yield VertexShaderTest(signature, test_vectors)
yield FragmentShaderTest(signature, test_vectors)
diff --git a/generated_tests/gen_constant_array_size_tests.py b/generated_tests/gen_constant_array_size_tests.py
index 5a54e00..70955df 100644
--- a/generated_tests/gen_constant_array_size_tests.py
+++ b/generated_tests/gen_constant_array_size_tests.py
@@ -205,7 +205,7 @@ class FragmentParserTest(ParserTest):
def all_tests():
- for signature, test_vectors in test_suite.items():
+ for signature, test_vectors in sorted(test_suite.items()):
yield VertexParserTest(signature, test_vectors)
yield FragmentParserTest(signature, test_vectors)
--
1.7.6
More information about the Piglit
mailing list