[Piglit] [PATCH 2/2] ARB_clear_buffer_object: Add infrastructure for initial tests
Pi Tabred
servuswiegehtz at yahoo.de
Tue Dec 10 06:10:10 PST 2013
From: abred <abred at home.de>
---
tests/all.tests | 14 ++++++++++++
tests/spec/CMakeLists.txt | 1 +
.../spec/arb_clear_buffer_object/CMakeLists.gl.txt | 25 ++++++++++++++++++++++
tests/spec/arb_clear_buffer_object/CMakeLists.txt | 1 +
4 files changed, 41 insertions(+)
create mode 100644 tests/spec/arb_clear_buffer_object/CMakeLists.gl.txt
create mode 100644 tests/spec/arb_clear_buffer_object/CMakeLists.txt
diff --git a/tests/all.tests b/tests/all.tests
index 1626217..37c86dd 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -2778,6 +2778,20 @@ import_glsl_parser_tests(spec['ARB_geometry_shader4'],
os.path.join(testsDir, 'spec', 'arb_geometry_shader4'),
['compiler'])
+arb_clear_buffer_object = Group()
+spec['ARB_clear_buffer_object'] = arb_clear_buffer_object
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-type')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-format')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-format-type')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-internalformat')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-internalformat-format')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-target')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-no-target')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-already-mapped')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-negative-bad-offset-size')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-clear-buffer')
+add_plain_test(arb_clear_buffer_object, 'arb_clear_buffer_object-clear-buffer-sub')
+
# group glslparsertest ------------------------------------------------------
glslparsertest = Group()
# Add all shader source files in the directories below.
diff --git a/tests/spec/CMakeLists.txt b/tests/spec/CMakeLists.txt
index 7f6bf47..983bb1c 100644
--- a/tests/spec/CMakeLists.txt
+++ b/tests/spec/CMakeLists.txt
@@ -1,5 +1,6 @@
add_subdirectory (amd_performance_monitor)
add_subdirectory (arb_base_instance)
+add_subdirectory (arb_clear_buffer_object)
add_subdirectory (arb_color_buffer_float)
add_subdirectory (arb_debug_output)
add_subdirectory (khr_debug)
diff --git a/tests/spec/arb_clear_buffer_object/CMakeLists.gl.txt b/tests/spec/arb_clear_buffer_object/CMakeLists.gl.txt
new file mode 100644
index 0000000..fbb7376
--- /dev/null
+++ b/tests/spec/arb_clear_buffer_object/CMakeLists.gl.txt
@@ -0,0 +1,25 @@
+include_directories(
+ ${GLEXT_INCLUDE_DIR}
+ ${OPENGL_INCLUDE_PATH}
+ ${piglit_SOURCE_DIR}/tests/spec/arb_clear_buffer_object
+)
+
+link_libraries (
+ piglitutil_${piglit_target_api}
+ ${OPENGL_gl_LIBRARY}
+ ${OPENGL_glu_LIBRARY}
+)
+
+piglit_add_executable (arb_clear_buffer_object-negative-bad-offset-size negative-bad-offset-size.c)
+piglit_add_executable (arb_clear_buffer_object-negative-already-mapped negative-already-mapped.c)
+piglit_add_executable (arb_clear_buffer_object-negative-bad-format negative-bad-format.c)
+piglit_add_executable (arb_clear_buffer_object-negative-bad-type negative-bad-type.c)
+piglit_add_executable (arb_clear_buffer_object-negative-no-target negative-no-target.c)
+piglit_add_executable (arb_clear_buffer_object-negative-bad-target negative-bad-target.c)
+piglit_add_executable (arb_clear_buffer_object-negative-bad-format-type negative-bad-format-type.c)
+piglit_add_executable (arb_clear_buffer_object-negative-bad-internalformat negative-bad-internalformat.c)
+piglit_add_executable (arb_clear_buffer_object-negative-bad-internalformat-format negative-bad-internalformat-format.c)
+piglit_add_executable (arb_clear_buffer_object-clear-buffer clear-buffer.c)
+piglit_add_executable (arb_clear_buffer_object-clear-buffer-sub clear-buffer-sub.c)
+
+# vim: ft=cmake:
diff --git a/tests/spec/arb_clear_buffer_object/CMakeLists.txt b/tests/spec/arb_clear_buffer_object/CMakeLists.txt
new file mode 100644
index 0000000..144a306
--- /dev/null
+++ b/tests/spec/arb_clear_buffer_object/CMakeLists.txt
@@ -0,0 +1 @@
+piglit_include_target_api()
--
1.8.3.1
More information about the Piglit
mailing list