OSDN Git Service

glx: Move tests from tests/glx to src/glx/tests
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 23 May 2012 22:23:22 +0000 (15:23 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Jun 2012 18:50:24 +0000 (11:50 -0700)
This matches the organization of other unit tests in Mesa.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
12 files changed:
Makefile.am
configure.ac
src/glx/Makefile.am
src/glx/tests/.gitignore [moved from tests/glx/.gitignore with 100% similarity]
src/glx/tests/Makefile.am [moved from tests/glx/Makefile.am with 86% similarity]
src/glx/tests/clientinfo_unittest.cpp [moved from tests/glx/clientinfo_unittest.cpp with 100% similarity]
src/glx/tests/create_context_unittest.cpp [moved from tests/glx/create_context_unittest.cpp with 100% similarity]
src/glx/tests/fake_glx_screen.cpp [moved from tests/glx/fake_glx_screen.cpp with 100% similarity]
src/glx/tests/fake_glx_screen.h [moved from tests/glx/fake_glx_screen.h with 100% similarity]
src/glx/tests/mock_xdisplay.h [moved from tests/glx/mock_xdisplay.h with 100% similarity]
tests/.gitignore [deleted file]
tests/Makefile.am [deleted file]

index 59fd9b5..008ac71 100644 (file)
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 # IN THE SOFTWARE.
 
-SUBDIRS = src tests
+SUBDIRS = src
 
 doxygen:
        cd doxygen && $(MAKE)
 
 check-local:
        $(MAKE) -C src/glsl/tests check
+       $(MAKE) -C src/glx/tests check
 
 clean-local:
        -@touch $(top_builddir)/configs/current
@@ -56,8 +57,6 @@ PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION)
 EXTRA_FILES = \
        aclocal.m4                                      \
        configure                                       \
-       tests/Makefile.in                               \
-       tests/glx/Makefile.in                           \
        src/glsl/glsl_parser.cpp                        \
        src/glsl/glsl_parser.h                          \
        src/glsl/glsl_lexer.cpp                         \
index 29ee87b..867d6f6 100644 (file)
@@ -2166,6 +2166,7 @@ AC_CONFIG_FILES([configs/autoconf
                src/egl/wayland/wayland-drm/Makefile
                src/glsl/tests/Makefile
                src/glx/Makefile
+               src/glx/tests/Makefile
                src/mapi/shared-glapi/Makefile
                src/gtest/Makefile
                src/mesa/libdricore/Makefile
@@ -2177,9 +2178,7 @@ AC_CONFIG_FILES([configs/autoconf
                src/mesa/drivers/dri/nouveau/Makefile
                src/mesa/drivers/dri/r200/Makefile
                src/mesa/drivers/dri/radeon/Makefile
-               src/mesa/drivers/dri/swrast/Makefile
-               tests/Makefile
-               tests/glx/Makefile])
+               src/mesa/drivers/dri/swrast/Makefile])
 
 dnl Replace the configs/current symlink
 AC_CONFIG_COMMANDS([configs],[
index 30fbd63..37a938d 100644 (file)
@@ -24,6 +24,8 @@ SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI
 SHARED_GLAPI_LIBS = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
 endif
 
+SUBDIRS=tests
+
 GLAPI_LIB = ../mapi/glapi/libglapi.a
 
 if HAVE_XF86VIDMODE
similarity index 86%
rename from tests/glx/Makefile.am
rename to src/glx/tests/Makefile.am
index 7413d3b..e7e2697 100644 (file)
@@ -11,8 +11,8 @@ check_PROGRAMS = glx_unittest
 
 glx_unittest_SOURCES =                 \
        clientinfo_unittest.cpp         \
-        create_context_unittest.cpp    \
-        fake_glx_screen.cpp
+       create_context_unittest.cpp     \
+       fake_glx_screen.cpp
 
 glx_unittest_LDADD = \
        $(top_builddir)/src/glx/libglx.la \
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644 (file)
index f3c7a7c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Makefile
diff --git a/tests/Makefile.am b/tests/Makefile.am
deleted file mode 100644 (file)
index 4079bb9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS=glx