[packages/vulkan-loader] Make tests run when enabled

jajcus jajcus at pld-linux.org
Sat Feb 20 14:54:54 CET 2016


commit b72602b00bd0d4f8bdec0f887b7fcc4670812229
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Feb 20 14:47:56 2016 +0100

    Make tests run when enabled
    
    they won't work anyway ;)

 vulkan-loader.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/vulkan-loader.spec b/vulkan-loader.spec
index 5142251..18b8ce3 100644
--- a/vulkan-loader.spec
+++ b/vulkan-loader.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-%bcond_with	tests		# build with tests (doesn't work)
+%bcond_with	tests		# build with tests (require a working Vulkan
+				# driver (ICD))
 #
 %define	tag	windows-rt-%{version}
 Summary:	Vulkan API loader
@@ -73,6 +74,12 @@ cd build
 		../
 %{__make}
 
+%if %{with tests}
+cd tests
+LC_ALL=C.utf-8 VK_LAYER_PATH=../layers LD_LIBRARY_PATH=../loader:../layers ./run_all_tests.sh
+cd ..
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/vulkan/icd.d \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vulkan-loader.git/commitdiff/f762e523252610052ba8d4878394a93e9a44d95a



More information about the pld-cvs-commit mailing list