[PATCH 52/90] vulkan: label tests that work with vulkan driver
authorMichal Babej <michal.babej@tuni.fi>
Wed, 1 Dec 2021 13:16:26 +0000 (15:16 +0200)
committerAndreas Beckmann <anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
Gbp-Pq: Name 0052-vulkan-label-tests-that-work-with-vulkan-driver.patch

tests/CMakeLists.txt

index 9612b24e3349296f9578b3542cf7ae01854de139..ae3f9f26232823bfc279a96aaa2289ab6c60789f 100644 (file)
@@ -37,7 +37,7 @@ if(ENABLE_HOST_CPU_DEVICES)
 endif()
 
 #######################################################################
-if (UNIX)
+if (UNIX AND ENABLE_LOADABLE_DRIVERS)
 
 add_test(NAME pocl_test_dlopen_libpocl COMMAND test_dlopen)
 set_property(TEST "pocl_version_check" APPEND PROPERTY DEPENDS "pocl_test_dlopen_libpocl")
@@ -72,6 +72,12 @@ if(ENABLE_CUDA)
   set_property(TEST "pocl_version_check" APPEND PROPERTY DEPENDS "pocl_test_dlopen_device_cuda")
 endif()
 
+if(ENABLE_VULKAN)
+  add_test(NAME pocl_test_dlopen_device_vulkan COMMAND test_dlopen vulkan)
+  set_property(TEST "pocl_version_check" APPEND PROPERTY DEPENDS "pocl_test_dlopen_device_vulkan")
+  set_property(TEST "pocl_version_check" "pocl_test_dlopen_libpocl" "pocl_test_dlopen_device_vulkan" APPEND PROPERTY LABELS "vulkan")
+endif()
+
 endif ()
 #######################################################################