aboutsummaryrefslogtreecommitdiff
path: root/generated_tests/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'generated_tests/CMakeLists.txt')
-rw-r--r--generated_tests/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/generated_tests/CMakeLists.txt b/generated_tests/CMakeLists.txt
index db3734ff..58ff0af6 100644
--- a/generated_tests/CMakeLists.txt
+++ b/generated_tests/CMakeLists.txt
@@ -18,6 +18,16 @@ function(piglit_make_generated_tests file_list generator_script)
VERBATIM)
endfunction(piglit_make_generated_tests custom_target generator_script)
+function(piglit_make_sh_generated_tests file_list generator_sh_script version)
+ # Add a custom command which executes ${generator_script}
+ # during the build.
+ add_custom_command(
+ OUTPUT ${file_list}
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${generator_sh_script} ${version} > ${file_list}
+ DEPENDS ${generator_sh_script} ${ARGN}
+ VERBATIM)
+endfunction(piglit_make_sh_generated_tests custom_target generator_sh_script)
+
# Create custom commands and targets to build generated tests.
piglit_make_generated_tests(
builtin_packing_tests.list
@@ -54,6 +64,9 @@ piglit_make_generated_tests(
piglit_make_generated_tests(
builtin_cl_int_tests.list
generate-cl-int-builtins.py)
+piglit_make_sh_generated_tests(
+ outerProduct-invalid-parameters_tests.list
+ outerProduct-invalid-parameters.sh 3.00)
# Add a "gen-tests" target that can be used to generate all the
# tests without doing any other compilation.
@@ -64,5 +77,6 @@ add_custom_target(gen-tests ALL
builtin_cl_int_tests.list
interpolation_tests.list
non-lvalue_tests.list
+ outerProduct-invalid-parameters_tests.list
texture_query_lod_tests.list
uniform-initializer_tests.list)