<div dir="ltr">On 26 August 2013 11:43, Jacob Penner <span dir="ltr"><<a href="mailto:jkpenner91@gmail.com" target="_blank">jkpenner91@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Create new subdirectory:<br>
layered-rendering/<br>
<br>
Add Tests:<br>
layered-rendering/blit.c<br>
layered-rendering/clear-color.c<br>
layered-rendering/framebuffer-layer-complete.c<br>
layered-rendering/framebuffertexture.c<br>
layered-rendering/framebuffertexture-buffer-textures.c<br>
layered-rendering/get-framebuffer-attachment-parameter.c<br>
layered-rendering/readpixels.c<br>
---<br>
tests/spec/gl-3.2/CMakeLists.txt | 4 +++-<br>
tests/spec/gl-3.2/layered-rendering/CMakeLists.gl.txt | 19 +++++++++++++++++++<br>
tests/spec/gl-3.2/layered-rendering/CMakeLists.txt | 1 +<br>
3 files changed, 23 insertions(+), 1 deletion(-)<br>
create mode 100644 tests/spec/gl-3.2/layered-rendering/CMakeLists.gl.txt<br>
create mode 100644 tests/spec/gl-3.2/layered-rendering/CMakeLists.txt<br>
<br>
diff --git a/tests/spec/gl-3.2/CMakeLists.txt b/tests/spec/gl-3.2/CMakeLists.txt<br>
index 4a012b9..035dff5 100644<br>
--- a/tests/spec/gl-3.2/CMakeLists.txt<br>
+++ b/tests/spec/gl-3.2/CMakeLists.txt<br>
@@ -1 +1,3 @@<br>
-piglit_include_target_api()<br>
\ No newline at end of file<br>
+add_subdirectory (layered-rendering)<br>
+piglit_include_target_api()<br>
+<br>
diff --git a/tests/spec/gl-3.2/layered-rendering/CMakeLists.gl.txt b/tests/spec/gl-3.2/layered-rendering/CMakeLists.gl.txt<br>
new file mode 100644<br>
index 0000000..30406bc<br>
--- /dev/null<br>
+++ b/tests/spec/gl-3.2/layered-rendering/CMakeLists.gl.txt<br>
@@ -0,0 +1,19 @@<br>
+include_directories(<br>
+ ${GLEXT_INCLUDE_DIR}<br>
+ ${OPENGL_INCLUDE_PATH}<br>
+)<br>
+<br>
+link_libraries (<br>
+ piglitutil_${piglit_target_api}<br>
+ ${OPENGL_gl_LIBRARY}<br>
+ ${OPENGL_glu_LIBRARY}<br>
+)<br>
+<br>
+piglit_add_executable (gl-3.2-layered-rendering-blit blit.c)<br>
+piglit_add_executable (gl-3.2-layered-rendering-clear-color clear-color.c)<br>
+piglit_add_executable (gl-3.2-layered-rendering-framebuffer-layer-complete framebuffer-layer-complete.c)<br>
+piglit_add_executable (gl-3.2-layered-rendering-framebuffertexture framebuffertexture.c)<br>
+piglit_add_executable (gl-3.2-layered-rendering-framebuffertexture-buffer-textures framebuffertexture-buffer-textures.c)<br>
+piglit_add_executable (gl-3.2-layered-rendering-get-framebuffer-attachment-parameter get-framebuffer-attachment-parameter.c)<br>
+piglit_add_executable (gl-3.2-layered-rendering-readpixels readpixels.c)<br>
+# vim: ft=cmake:<br>
diff --git a/tests/spec/gl-3.2/layered-rendering/CMakeLists.txt b/tests/spec/gl-3.2/layered-rendering/CMakeLists.txt<br>
new file mode 100644<br>
index 0000000..144a306<br>
--- /dev/null<br>
+++ b/tests/spec/gl-3.2/layered-rendering/CMakeLists.txt<br>
@@ -0,0 +1 @@<br>
+piglit_include_target_api()<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.3.1<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">The additions to CMakeLists.gl.txt and all.tests can't be in their own patches like this. Patch 3 should add this new CMakeLists.txt file, containing the boilerplate code at the top, and just the piglit_add_executable line for blit.c. Patch 3 should also add just blit.c to all.tests. Patch 4 should add clear-color.c to CMakeLists.txt and to all.tests. And so on. That way each patch stands on its own, and piglit can be successfully built and run from any point in the middle of the patch series. <br>
</div></div>