summaryrefslogtreecommitdiffstats
path: root/gpu/khronos_glcts_support
diff options
context:
space:
mode:
authorullysses.a.eoff <ullysses.a.eoff@intel.com>2014-12-04 14:45:09 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-04 22:45:38 +0000
commit6ec55ee6530ba8f62119d3bae37ea61790fd7fb3 (patch)
treeb2f842888d86e9bbec0b7936f5355270c3f92391 /gpu/khronos_glcts_support
parent6b61421f5b702f90617ffeff3ed83ab044c55ad9 (diff)
downloadchromium_src-6ec55ee6530ba8f62119d3bae37ea61790fd7fb3.zip
chromium_src-6ec55ee6530ba8f62119d3bae37ea61790fd7fb3.tar.gz
chromium_src-6ec55ee6530ba8f62119d3bae37ea61790fd7fb3.tar.bz2
gpu/khronos_glcts_support: add builtin tests to the suite
The GL-CTS TestPackageRegistry registers additional builtin test cases that are not included in any of the run files. Generate these additional tests to ensure they are executed. BUG=chromium:412865 R=kbr@chromium.org, piman@chromium.org TEST=Build and run khronos_glcts_test binary. Ensure the builtin tests are additionally executed. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Review URL: https://codereview.chromium.org/775893004 Cr-Commit-Position: refs/heads/master@{#306914}
Diffstat (limited to 'gpu/khronos_glcts_support')
-rwxr-xr-xgpu/khronos_glcts_support/generate_khronos_glcts_tests.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/gpu/khronos_glcts_support/generate_khronos_glcts_tests.py b/gpu/khronos_glcts_support/generate_khronos_glcts_tests.py
index 3147286..2b4705b 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)