glsl: Convert the tests directory to automake.
authorEric Anholt <eric@anholt.net>
Mon, 16 Apr 2012 16:53:29 +0000 (09:53 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Apr 2012 23:33:31 +0000 (16:33 -0700)
This runs optimization-test and produces the usual automake test
output, which may be interesting to automated build systems.

This doesn't convert the tests to be individually exposed to the
automake runner, because automake doesn't like wildcards (due to being
nonportable in make, not that we care).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Makefile
configure.ac
src/glsl/tests/.gitignore [new file with mode: 0644]
src/glsl/tests/Makefile.am [new file with mode: 0644]

index 1368b44..0f88071 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ doxygen:
        cd doxygen && $(MAKE)
 
 check:
-       cd src/glsl/tests/ && ./optimization-test
+       make -C src/glsl/tests check
        make -C tests check
 
 clean:
index 7e4991f..1b571b9 100644 (file)
@@ -2005,6 +2005,7 @@ AC_CONFIG_FILES([configs/autoconf
                src/egl/wayland/wayland-egl/Makefile
                src/egl/wayland/wayland-egl/wayland-egl.pc
                src/egl/wayland/wayland-drm/Makefile
+               src/glsl/tests/Makefile
                src/glx/Makefile
                src/mapi/shared-glapi/Makefile
                src/gtest/Makefile
diff --git a/src/glsl/tests/.gitignore b/src/glsl/tests/.gitignore
new file mode 100644 (file)
index 0000000..f3c7a7c
--- /dev/null
@@ -0,0 +1 @@
+Makefile
diff --git a/src/glsl/tests/Makefile.am b/src/glsl/tests/Makefile.am
new file mode 100644 (file)
index 0000000..bfd97b3
--- /dev/null
@@ -0,0 +1,2 @@
+TESTS = \
+       optimization-test