glx-multithread-texture: Avoid front-buffer rendering.
[piglit.git] / tests / CMakeLists.no_api.txt
blobb25ee32423ba70d0c606884361d4664beb296804
1 # Copyright © 2018 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
21 add_custom_target(
22         static-shader-tests
23         BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/shader.list
24         COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find_static_tests.py ${CMAKE_CURRENT_SOURCE_DIR} shader ${CMAKE_CURRENT_BINARY_DIR}/shader.list
25         VERBATIM
27 add_custom_target(
28         static-glslparser-tests
29         BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/glslparser.list
30         COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find_static_tests.py ${CMAKE_CURRENT_SOURCE_DIR} glslparser ${CMAKE_CURRENT_BINARY_DIR}/glslparser.list
31         VERBATIM
33 add_custom_target(
34         static-asmparser-tests
35         BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/asmparser.list
36         COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find_static_tests.py ${CMAKE_CURRENT_SOURCE_DIR} asmparser ${CMAKE_CURRENT_BINARY_DIR}/asmparser.list
37         VERBATIM
39 add_custom_target(
40         static-program-tests
41         BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/program.list
42         COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find_static_tests.py ${CMAKE_CURRENT_SOURCE_DIR} program ${CMAKE_CURRENT_BINARY_DIR}/program.list
43         VERBATIM
45 add_custom_target(
46         static-vkrunner-tests
47         BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/vkrunner.list
48         COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find_static_tests.py ${CMAKE_CURRENT_SOURCE_DIR} vkrunner ${CMAKE_CURRENT_BINARY_DIR}/vkrunner.list
49         VERBATIM
52 function(piglit_generate_xml name profile meta_target extra_args)
53         add_custom_command(
54                 OUTPUT ${CMAKE_BINARY_DIR}/tests/${name}.xml.gz
55                 COMMAND ${CMAKE_COMMAND} -E env PIGLIT_BUILD_TREE=${CMAKE_BINARY_DIR} ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/serializer.py ${name} ${CMAKE_CURRENT_SOURCE_DIR}/${profile}.py ${CMAKE_BINARY_DIR}/tests/${name}.xml.gz  ${extra_args}
56                 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${profile}.py ${CMAKE_CURRENT_SOURCE_DIR}/serializer.py ${ARGN}
57                 VERBATIM
58         )
59         add_custom_target(
60                 generate-${name}-xml
61                 DEPENDS ${CMAKE_BINARY_DIR}/tests/${name}.xml.gz
62         )
63         add_dependencies(${meta_target} generate-${name}-xml)
64 endfunction()
66 add_custom_target(gen-gl-xml)
67 piglit_generate_xml(opengl opengl gen-gl-xml "")
68 piglit_generate_xml(quick_gl quick_gl gen-gl-xml "")
69 piglit_generate_xml(llvmpipe_gl llvmpipe_gl gen-gl-xml "")
70 piglit_generate_xml(sanity sanity gen-gl-xml "" gen-gl-tests)
72 add_custom_target(gen-gl-gen-xml)
73 piglit_generate_xml(glslparser glslparser gen-gl-gen-xml "" gen-gl-tests static-glslparser-tests static-asmparser-tests)
74 piglit_generate_xml(glslparser_arb_compat glslparser gen-gl-gen-xml "--glsl-arb-compat" gen-gl-tests static-glslparser-tests static-asmparser-tests)
75 piglit_generate_xml(shader shader gen-gl-gen-xml "" gen-gl-tests static-shader-tests)
76 piglit_generate_xml(quick_shader quick_shader gen-gl-gen-xml "" gen-gl-tests static-shader-tests)
77 piglit_generate_xml(shader.no_isolation shader gen-gl-gen-xml "--no-process-isolation" gen-gl-tests static-shader-tests)
78 piglit_generate_xml(quick_shader.no_isolation quick_shader gen-gl-gen-xml "--no-process-isolation" gen-gl-tests static-shader-tests)
79 piglit_generate_xml(no_error no_error gen-gl-gen-xml "" gen-gl-tests static-shader-tests)
81 add_custom_target(gen-vulkan-xml)
82 piglit_generate_xml(vulkan vulkan gen-vulkan-xml "" static-vkrunner-tests)
84 add_custom_target(gen-cl-xml)
85 piglit_generate_xml(cl cl gen-cl-xml "" gen-cl-tests static-program-tests)
87 add_custom_target(gen-xml ALL)
89 if(${PIGLIT_BUILD_GL_TESTS} OR ${PIGLIT_BUILD_GLES2_TESTS} OR ${PIGLIT_BUILD_GLES3_TESTS})
90         add_dependencies(gen-xml gen-gl-xml)
91         add_dependencies(gen-xml gen-gl-gen-xml)
92 endif(${PIGLIT_BUILD_GL_TESTS} OR ${PIGLIT_BUILD_GLES2_TESTS} OR ${PIGLIT_BUILD_GLES3_TESTS})
94 if(${PIGLIT_BUILD_CL_TESTS})
95         add_dependencies(gen-xml gen-cl-xml)
96 endif(${PIGLIT_BUILD_CL_TESTS})
98 add_dependencies(gen-xml gen-vulkan-xml)
100 # vim: ft=cmake