[Piglit] [PATCH 2/2] Plug the built-in test generator to the CL test list [v2]
Aaron Watry
awatry at gmail.com
Mon Mar 11 16:29:20 PDT 2013
v2:
- Generate tests in the generated_tests directory tree at compile time
---
generated_tests/CMakeLists.txt | 4 ++++
tests/all_cl.tests | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/generated_tests/CMakeLists.txt b/generated_tests/CMakeLists.txt
index 694a213..70ef017 100644
--- a/generated_tests/CMakeLists.txt
+++ b/generated_tests/CMakeLists.txt
@@ -48,6 +48,9 @@ piglit_make_generated_tests(
uniform-initializer-templates/fs-initializer-set-by-other-stage.template
uniform-initializer-templates/vs-initializer-set-by-other-stage.template
)
+piglit_make_generated_tests(
+ builtin_cl_int_tests.list
+ generate-cl-int-builtins.py)
# Add a "gen-tests" target that can be used to generate all the
# tests without doing any other compilation.
@@ -55,6 +58,7 @@ add_custom_target(gen-tests ALL
DEPENDS builtin_packing_tests.list
builtin_uniform_tests.list
constant_array_size_tests.list
+ builtin_cl_int_tests.list
interpolation_tests.list
non-lvalue_tests.list
uniform-initializer_tests.list)
diff --git a/tests/all_cl.tests b/tests/all_cl.tests
index 267f969..8cefa43 100644
--- a/tests/all_cl.tests
+++ b/tests/all_cl.tests
@@ -104,3 +104,8 @@ program["Execute"] = program_execute
add_program_test_dir(program_build, 'tests/cl/program/build')
add_program_test_dir(program_build_fail, 'tests/cl/program/build/fail')
add_program_test_dir(program_execute, 'tests/cl/program/execute')
+
+#Run generated built-in tests
+program_execute_builtin = Group()
+program["Execute"]["Builtin"] = program_execute_builtin
+add_program_test_dir(program_execute_builtin, 'generated_tests/cl/builtin/int')
\ No newline at end of file
--
1.7.4.4
More information about the Piglit
mailing list