|
Packit |
5af8b3 |
# Copyright (c) 2013, NVIDIA CORPORATION.
|
|
Packit |
5af8b3 |
#
|
|
Packit |
5af8b3 |
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
Packit |
5af8b3 |
# copy of this software and/or associated documentation files (the
|
|
Packit |
5af8b3 |
# "Materials"), to deal in the Materials without restriction, including
|
|
Packit |
5af8b3 |
# without limitation the rights to use, copy, modify, merge, publish,
|
|
Packit |
5af8b3 |
# distribute, sublicense, and/or sell copies of the Materials, and to
|
|
Packit |
5af8b3 |
# permit persons to whom the Materials are furnished to do so, subject to
|
|
Packit |
5af8b3 |
# the following conditions:
|
|
Packit |
5af8b3 |
#
|
|
Packit |
5af8b3 |
# The above copyright notice and this permission notice shall be included
|
|
Packit |
5af8b3 |
# unaltered in all copies or substantial portions of the Materials.
|
|
Packit |
5af8b3 |
# Any additions, deletions, or changes to the original source files
|
|
Packit |
5af8b3 |
# must be clearly indicated in accompanying documentation.
|
|
Packit |
5af8b3 |
#
|
|
Packit |
5af8b3 |
# If only executable code is distributed, then the accompanying
|
|
Packit |
5af8b3 |
# documentation must state that "this software is based in part on the
|
|
Packit |
5af8b3 |
# work of the Khronos Group."
|
|
Packit |
5af8b3 |
#
|
|
Packit |
5af8b3 |
# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
Packit |
5af8b3 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit |
5af8b3 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
Packit |
5af8b3 |
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
Packit |
5af8b3 |
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
Packit |
5af8b3 |
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
Packit |
5af8b3 |
# MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
SUBDIRS = \
|
|
Packit |
5af8b3 |
dummy
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
noinst_HEADERS = \
|
|
Packit |
5af8b3 |
test_utils.h \
|
|
Packit |
5af8b3 |
egl_test_utils.h
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS_ENVIRONMENT = \
|
|
Packit |
5af8b3 |
TOP_SRCDIR=$(top_srcdir) \
|
|
Packit |
5af8b3 |
TOP_BUILDDIR=$(top_builddir) \
|
|
Packit |
5af8b3 |
ABS_TOP_BUILDDIR=$(abs_top_builddir)
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS =
|
|
Packit |
5af8b3 |
check_PROGRAMS =
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
EXTRA_DIST = $(TESTS) \
|
|
Packit |
5af8b3 |
glxenv.sh \
|
|
Packit |
5af8b3 |
eglenv.sh \
|
|
Packit |
5af8b3 |
json
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
CFLAGS_COMMON = \
|
|
Packit |
5af8b3 |
-I$(top_srcdir)/include \
|
|
Packit |
5af8b3 |
-I$(top_srcdir)/src/util \
|
|
Packit |
5af8b3 |
-I$(top_srcdir)/src/util/glvnd_pthread
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
AM_CFLAGS = $(CFLAGS_COMMON)
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS += testgldispatch_static.sh
|
|
Packit |
5af8b3 |
TESTS += testgldispatch_static_thr.sh
|
|
Packit |
5af8b3 |
TESTS += testgldispatch_generated.sh
|
|
Packit |
5af8b3 |
TESTS += testgldispatch_generated_thr.sh
|
|
Packit |
5af8b3 |
TESTS += testgldispatch_patched.sh
|
|
Packit |
5af8b3 |
TESTS += testgldispatch_patched_thr.sh
|
|
Packit |
5af8b3 |
check_PROGRAMS += testgldispatch
|
|
Packit |
5af8b3 |
testgldispatch_SOURCES = \
|
|
Packit |
5af8b3 |
testgldispatch.c
|
|
Packit |
5af8b3 |
testgldispatch_CFLAGS = \
|
|
Packit |
5af8b3 |
-I$(top_srcdir)/include \
|
|
Packit |
5af8b3 |
-I$(top_srcdir)/src/GLdispatch \
|
|
Packit |
5af8b3 |
$(PTHREAD_CFLAGS)
|
|
Packit |
5af8b3 |
testgldispatch_LDADD = $(top_builddir)/src/GLdispatch/libGLdispatch.la
|
|
Packit |
5af8b3 |
testgldispatch_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
testgldispatch_LDADD += dummy/libpatchentrypoints.la
|
|
Packit |
5af8b3 |
testgldispatch_LDADD += $(top_builddir)/src/util/libutils_misc.la
|
|
Packit |
5af8b3 |
testgldispatch_LDADD += $(PTHREAD_LIBS)
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
# Start of GLX-specific tests.
|
|
Packit |
5af8b3 |
# Notes that the TESTS_GLX variable must be defined outside the conditional, so
|
|
Packit |
5af8b3 |
# that we can include the test scripts in the EXTRA_DIST package. Otherwise,
|
|
Packit |
5af8b3 |
# the scripts would be missing when you run "make dist" or "make distcheck".
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS_GLX =
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxcreatecontext.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxmcbasic.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxmcloop.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxmcthreads.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxmclate.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxmcoldlink.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxgetprocaddress.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxgetprocaddress_genentry.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxgetclientstr.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testglxqueryversion.sh
|
|
Packit |
5af8b3 |
TESTS_GLX += testpatchentrypoints.sh
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
if ENABLE_GLX
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS += $(TESTS_GLX)
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testglxcreatecontext
|
|
Packit |
5af8b3 |
testglxcreatecontext_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testglxcreatecontext_LDADD = $(X11_LIBS)
|
|
Packit |
5af8b3 |
testglxcreatecontext_LDADD += $(top_builddir)/src/GLX/libGLX.la
|
|
Packit |
5af8b3 |
testglxcreatecontext_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
testglxcreatecontext_SOURCES = \
|
|
Packit |
5af8b3 |
testglxcreatecontext.c \
|
|
Packit |
5af8b3 |
test_utils.c
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTGLXMAKECURRENT_SOURCES_COMMON = \
|
|
Packit |
5af8b3 |
testglxmakecurrent.c \
|
|
Packit |
5af8b3 |
test_utils.c
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testglxmakecurrent
|
|
Packit |
5af8b3 |
testglxmakecurrent_SOURCES = $(TESTGLXMAKECURRENT_SOURCES_COMMON)
|
|
Packit |
5af8b3 |
testglxmakecurrent_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testglxmakecurrent_LDADD = $(X11_LIBS) @LIB_DL@
|
|
Packit |
5af8b3 |
testglxmakecurrent_LDADD += $(top_builddir)/src/GLX/libGLX.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_LDADD += $(top_builddir)/src/util/libglvnd_pthread.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_LDADD += $(top_builddir)/src/util/libtrace.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_LDADD += $(top_builddir)/src/util/libutils_misc.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testglxmakecurrent_oldlink
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_SOURCES = $(TESTGLXMAKECURRENT_SOURCES_COMMON)
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_LDADD = $(X11_LIBS) @LIB_DL@
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_LDADD += $(top_builddir)/src/GL/libGL.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_LDADD += $(top_builddir)/src/util/libglvnd_pthread.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_LDADD += $(top_builddir)/src/util/libtrace.la
|
|
Packit |
5af8b3 |
testglxmakecurrent_oldlink_LDADD += $(top_builddir)/src/util/libutils_misc.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testglxgetprocaddress
|
|
Packit |
5af8b3 |
testglxgetprocaddress_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testglxgetprocaddress_LDADD = $(X11_LIBS)
|
|
Packit |
5af8b3 |
testglxgetprocaddress_LDADD += $(top_builddir)/src/GLX/libGLX.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testglxgetclientstr
|
|
Packit |
5af8b3 |
testglxgetclientstr_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testglxgetclientstr_LDADD = $(X11_LIBS)
|
|
Packit |
5af8b3 |
testglxgetclientstr_LDADD += $(top_builddir)/src/GLX/libGLX.la
|
|
Packit |
5af8b3 |
testglxgetclientstr_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
testglxgetclientstr_LDADD += $(top_builddir)/src/util/libtrace.la
|
|
Packit |
5af8b3 |
testglxgetclientstr_LDADD += $(top_builddir)/src/util/libutils_misc.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testglxqueryversion
|
|
Packit |
5af8b3 |
testglxqueryversion_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testglxqueryversion_LDADD = $(X11_LIBS)
|
|
Packit |
5af8b3 |
testglxqueryversion_LDADD += $(top_builddir)/src/GLX/libGLX.la
|
|
Packit |
5af8b3 |
testglxqueryversion_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testpatchentrypoints
|
|
Packit |
5af8b3 |
testpatchentrypoints_SOURCES = \
|
|
Packit |
5af8b3 |
testpatchentrypoints.c \
|
|
Packit |
5af8b3 |
test_utils.c
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
testpatchentrypoints_CFLAGS = $(CFLAGS_COMMON) $(X11_CFLAGS)
|
|
Packit |
5af8b3 |
testpatchentrypoints_LDADD = $(X11_LIBS) @LIB_DL@
|
|
Packit |
5af8b3 |
testpatchentrypoints_LDADD += $(top_builddir)/src/GLX/libGLX.la
|
|
Packit |
5af8b3 |
testpatchentrypoints_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
testpatchentrypoints_LDADD += $(top_builddir)/src/util/libtrace.la
|
|
Packit |
5af8b3 |
testpatchentrypoints_LDADD += $(top_builddir)/src/util/libutils_misc.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
endif # ENABLE_GLX
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
# Start of EGL-specific tests.
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS_EGL =
|
|
Packit |
5af8b3 |
TESTS_EGL += testegldisplay.sh
|
|
Packit |
5af8b3 |
TESTS_EGL += testegldevice.sh
|
|
Packit |
5af8b3 |
TESTS_EGL += testeglgetprocaddress.sh
|
|
Packit |
5af8b3 |
TESTS_EGL += testeglmakecurrent.sh
|
|
Packit |
5af8b3 |
TESTS_EGL += testeglerror.sh
|
|
Packit |
5af8b3 |
TESTS_EGL += testegldebug.sh
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
if ENABLE_EGL
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
TESTS += $(TESTS_EGL)
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testegldisplay
|
|
Packit |
5af8b3 |
testegldisplay_SOURCES = \
|
|
Packit |
5af8b3 |
testegldisplay.c \
|
|
Packit |
5af8b3 |
egl_test_utils.c
|
|
Packit |
5af8b3 |
testegldisplay_LDADD = $(top_builddir)/src/EGL/libEGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testegldevice
|
|
Packit |
5af8b3 |
testegldevice_SOURCES = \
|
|
Packit |
5af8b3 |
testegldevice.c \
|
|
Packit |
5af8b3 |
egl_test_utils.c
|
|
Packit |
5af8b3 |
testegldevice_LDADD = $(top_builddir)/src/EGL/libEGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testeglgetprocaddress
|
|
Packit |
5af8b3 |
testeglgetprocaddress_SOURCES = \
|
|
Packit |
5af8b3 |
testeglgetprocaddress.c \
|
|
Packit |
5af8b3 |
egl_test_utils.c
|
|
Packit |
5af8b3 |
testeglgetprocaddress_LDADD = $(top_builddir)/src/EGL/libEGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testeglmakecurrent
|
|
Packit |
5af8b3 |
testeglmakecurrent_SOURCES = \
|
|
Packit |
5af8b3 |
testeglmakecurrent.c \
|
|
Packit |
5af8b3 |
egl_test_utils.c
|
|
Packit |
5af8b3 |
testeglmakecurrent_LDADD = $(top_builddir)/src/EGL/libEGL.la
|
|
Packit |
5af8b3 |
testeglmakecurrent_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testeglerror
|
|
Packit |
5af8b3 |
testeglerror_SOURCES = \
|
|
Packit |
5af8b3 |
testeglerror.c \
|
|
Packit |
5af8b3 |
egl_test_utils.c
|
|
Packit |
5af8b3 |
testeglerror_LDADD = $(top_builddir)/src/EGL/libEGL.la
|
|
Packit |
5af8b3 |
testeglerror_LDADD += $(top_builddir)/src/OpenGL/libOpenGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
check_PROGRAMS += testegldebug
|
|
Packit |
5af8b3 |
testegldebug_SOURCES = \
|
|
Packit |
5af8b3 |
testegldebug.c \
|
|
Packit |
5af8b3 |
egl_test_utils.c
|
|
Packit |
5af8b3 |
testegldebug_LDADD = $(top_builddir)/src/EGL/libEGL.la
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
endif # ENABLE_EGL
|
|
Packit |
5af8b3 |
|
|
Packit |
5af8b3 |
EXTRA_DIST += $(TESTS_GLX) $(TESTS_EGL)
|