Commit 4142fa3f authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Dylan Baker
Browse files

gen_equal_tests: Move to generated_tests directory.



Rename to gen_const_builtin_equal_tests.py to better match the name of
the tests it generates.  This patch doesn't modify the contents.

v2: - print name of test for CMake tracking (Dylan)
Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
Reviewed-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
parent bb3e527c
from __future__ import print_function
import re import re
...@@ -83,6 +84,9 @@ test_id = 2 ...@@ -83,6 +84,9 @@ test_id = 2
for x in test_vectors: for x in test_vectors:
name = "glsl-const-builtin-%s-%02d.shader_test" % ("equal", test_id) name = "glsl-const-builtin-%s-%02d.shader_test" % ("equal", test_id)
test_id = test_id + 1 test_id = test_id + 1
print(name)
f = open(name, "w") f = open(name, "w")
emit_test(f, "equal", x[0], x[1], x[2]) emit_test(f, "equal", x[0], x[1], x[2])
f.close() f.close()
...@@ -100,6 +104,8 @@ for x in test_vectors: ...@@ -100,6 +104,8 @@ for x in test_vectors:
expected = re.sub("false", "TRUE", expected) expected = re.sub("false", "TRUE", expected)
expected = expected.lower() expected = expected.lower()
print(name)
f = open(name, "w") f = open(name, "w")
emit_test(f, "notEqual", x[0], x[1], expected) emit_test(f, "notEqual", x[0], x[1], expected)
f.close() f.close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment