[Piglit] [PATCH v2 2/2] nv_fill_rectangle: add tests

Ilia Mirkin imirkin at alum.mit.edu
Thu Mar 30 21:51:12 UTC 2017


On Thu, Mar 30, 2017 at 5:38 PM, Lyude <lyude at redhat.com> wrote:
> diff --git a/tests/spec/CMakeLists.txt b/tests/spec/CMakeLists.txt
> index 01a7935..31a57ed 100644
> --- a/tests/spec/CMakeLists.txt
> +++ b/tests/spec/CMakeLists.txt
> @@ -89,6 +89,7 @@ add_subdirectory (ext_texture_swizzle)
>  add_subdirectory (ext_timer_query)
>  add_subdirectory (ext_transform_feedback)
>  add_subdirectory (nv_conditional_render)
> +add_subdirectory (nv_fill_rectangle)
>  add_subdirectory (nv_image_formats)
>  add_subdirectory (nv_texture_barrier)
>  add_subdirectory (oes_compressed_etc1_rgb8_texture)
> diff --git a/tests/spec/nv_fill_rectangle/CMakeLists.gl.txt b/tests/spec/nv_fill_rectangle/CMakeLists.gl.txt
> new file mode 100644
> index 0000000..f9219f5
> --- /dev/null
> +++ b/tests/spec/nv_fill_rectangle/CMakeLists.gl.txt
> @@ -0,0 +1,13 @@
> +include_directories(
> +       ${GLEXT_INCLUDE_DIR}
> +       ${OPENGL_INCLUDE_PATH}
> +)
> +
> +link_libraries(
> +       piglitutil_${piglit_target_api}
> +       ${OPENGL_gl_LIBRARY}
> +)
> +
> +piglit_add_executable(nv_fill_rectangle-invalid-draw-mode invalid-draw-mode.c)

You also need to add this to all.py, otherwise it won't get run. (The
shader_test files are auto-picked-up though.)


More information about the Piglit mailing list