Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: gpu/khronos_glcts_support/generate_khronos_glcts_tests.py

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/khronos_glcts_support/generate_khronos_glcts_tests.py
diff --git a/gpu/khronos_glcts_support/generate_khronos_glcts_tests.py b/gpu/khronos_glcts_support/generate_khronos_glcts_tests.py
index 31472865b116ad44665fdf9a38c7036ec37d18a2..2b4705bb822c0b917d4943113ff2f8abd3bbe73d 100755
--- a/gpu/khronos_glcts_support/generate_khronos_glcts_tests.py
+++ b/gpu/khronos_glcts_support/generate_khronos_glcts_tests.py
@@ -20,6 +20,18 @@ RUN_FILE_SUITE_PREFIX = {
"mustpass_es20.run" : "ES2-CTS.gtf",
}
+BUILT_IN_TESTS = {
+ "mustpass_es20.run" : [
+ "CTS-Configs.es2",
+ "ES2-CTS.info.vendor",
+ "ES2-CTS.info.renderer",
+ "ES2-CTS.info.version",
+ "ES2-CTS.info.shading_language_version",
+ "ES2-CTS.info.extensions",
+ "ES2-CTS.info.render_target",
+ ],
+}
+
def ReadFileAsLines(filename):
"""
Reads a file, yielding each non-blank line
@@ -64,6 +76,13 @@ def GenerateTests(run_files, output):
run_file_dir = os.path.dirname(run_file)
suite_prefix = RUN_FILE_SUITE_PREFIX[run_file_name]
output.write("// " + run_file_name + "\n")
+ builtin_tests = BUILT_IN_TESTS[run_file_name]
+ for test in builtin_tests:
+ output.write(TEST_DEF_TEMPLATE
+ % {
+ "gname": re.sub(r'[^A-Za-z0-9]', '_', test),
+ "cname": test,
+ })
for test in ReadRunFile(run_file):
rel_path = os.path.relpath(test, run_file_dir)
root, ext = os.path.splitext(rel_path)
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | net/base/directory_lister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698