[Mesa-dev] [PATCH 10/25] anv: fold the tests' makefile

Emil Velikov emil.l.velikov at gmail.com
Thu Apr 21 13:16:10 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

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 at collabora.com>
---
 configure.ac                       |  1 -
 src/intel/vulkan/Makefile.am       | 17 ++++++++++++--
 src/intel/vulkan/tests/Makefile.am | 47 --------------------------------------
 3 files changed, 15 insertions(+), 50 deletions(-)
 delete mode 100644 src/intel/vulkan/tests/Makefile.am

diff --git a/configure.ac b/configure.ac
index 9226a0d..2407e54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2625,7 +2625,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
diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am
index 5fee6b5..86de1f2 100644
--- a/src/intel/vulkan/Makefile.am
+++ b/src/intel/vulkan/Makefile.am
@@ -21,8 +21,6 @@
 
 include Makefile.sources
 
-SUBDIRS = . tests
-
 vulkan_includedir = $(includedir)/vulkan
 
 vulkan_include_HEADERS =				\
@@ -151,3 +149,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
index ddff73c..0000000
--- a/src/intel/vulkan/tests/Makefile.am
+++ /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)
-- 
2.8.0



More information about the mesa-dev mailing list