anv: fold the tests' makefile
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 20 Apr 2016 22:10:00 +0000 (23:10 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 1 May 2016 07:38:04 +0000 (08:38 +0100)
Recent commit removed the winsys defines from anv_private.h thus
breaking the tests. To fix that and avoid it in the future, merge the
tests makefile in the libvulkan one.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
configure.ac
src/intel/vulkan/Makefile.am
src/intel/vulkan/tests/Makefile.am [deleted file]

index fd0bb67fe5f65e4aea99d86ce47e5eca8b803ac9..0641b767ee6524f406fd0ce8e4bc8ff347e213b5 100644 (file)
@@ -2637,7 +2637,6 @@ AC_CONFIG_FILES([Makefile
                src/intel/genxml/Makefile
                src/intel/isl/Makefile
                src/intel/vulkan/Makefile
-               src/intel/vulkan/tests/Makefile
                src/loader/Makefile
                src/mapi/Makefile
                src/mapi/es1api/glesv1_cm.pc
index 40775ec3403a10884ececd3b61d8b77f9a77e55a..c7baf176fbbf8ad213b24efe6da2b449a415d480 100644 (file)
@@ -21,8 +21,6 @@
 
 include Makefile.sources
 
-SUBDIRS = . tests
-
 vulkan_includedir = $(includedir)/vulkan
 
 vulkan_include_HEADERS =                               \
@@ -158,3 +156,18 @@ libvulkan_test_la_SOURCES = $(VULKAN_GEM_STUB_FILES)
 libvulkan_test_la_LIBADD = $(libvulkan_intel_la_LIBADD)
 
 include $(top_srcdir)/install-lib-links.mk
+
+noinst_HEADERS = \
+       tests/state_pool_test_helper.h
+
+LDADD = \
+       libvulkan-test.la \
+       $(PTHREAD_LIBS) -lm -lstdc++
+
+check_PROGRAMS = \
+       tests/block_pool_no_free \
+       tests/state_pool_no_free \
+       tests/state_pool_free_list_only \
+       tests/state_pool
+
+TESTS = $(check_PROGRAMS)
diff --git a/src/intel/vulkan/tests/Makefile.am b/src/intel/vulkan/tests/Makefile.am
deleted file mode 100644 (file)
index ddff73c..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright © 2009 Intel Corporation
-#
-#  Permission is hereby granted, free of charge, to any person obtaining a
-#  copy of this software and associated documentation files (the "Software"),
-#  to deal in the Software without restriction, including without limitation
-#  on the rights to use, copy, modify, merge, publish, distribute, sub
-#  license, and/or sell copies of the Software, and to permit persons to whom
-#  the Software is furnished to do so, subject to the following conditions:
-#
-#  The above copyright notice and this permission notice (including the next
-#  paragraph) shall be included in all copies or substantial portions of the
-#  Software.
-#
-#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
-#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-AM_CPPFLAGS = \
-       $(INTEL_CFLAGS) \
-       $(VALGRIND_CFLAGS) \
-       $(DEFINES) \
-       -I$(top_srcdir)/include \
-       -I$(top_srcdir)/src \
-       -I$(top_srcdir)/src/mapi \
-       -I$(top_srcdir)/src/mesa \
-       -I$(top_srcdir)/src/mesa/drivers/dri/common \
-       -I$(top_srcdir)/src/mesa/drivers/dri/i965 \
-       -I$(top_srcdir)/src/gallium/auxiliary \
-       -I$(top_srcdir)/src/gallium/include \
-       -I$(top_srcdir)/src/intel \
-       -I$(top_srcdir)/src/intel/vulkan \
-       -I$(top_builddir)/src/intel/vulkan
-
-LDADD = \
-       $(top_builddir)/src/intel/vulkan/libvulkan-test.la \
-       $(PTHREAD_LIBS) -lm -lstdc++
-
-check_PROGRAMS = \
-       block_pool_no_free \
-       state_pool_no_free \
-       state_pool_free_list_only \
-       state_pool
-
-TESTS = $(check_PROGRAMS)