]> git.pld-linux.org Git - packages/vulkan-sdk.git/commitdiff
Make tests run when enabled
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 20 Feb 2016 13:47:56 +0000 (14:47 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 20 Feb 2016 13:47:56 +0000 (14:47 +0100)
they won't work anyway ;)

vulkan-loader.spec

index 51422515ee2144040906eb37b199215985dc6b12..18b8ce3e5c05d605b3cf67e1f70954c237051661 100644 (file)
@@ -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 \
This page took 0.046014 seconds and 4 git commands to generate.