From 3ee7d8b0eb9324b56ea9386e3c1d2925eaaaa225 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 20 Apr 2016 23:10:00 +0100 Subject: [PATCH] anv: fold the tests' makefile 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 Acked-by: Jason Ekstrand --- 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 fd0bb67fe5f..0641b767ee6 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am index 40775ec3403..c7baf176fbb 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 = \ @@ -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 index ddff73c1707..00000000000 --- 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)