File: spirv-tests.patch

package info (click to toggle)
pocl 6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 25,304 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 173; java: 72; xml: 49
file content (26 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Andreas Beckmann <anbe@debian.org>
Description: expect the spirv tests to fail on 32-bit architectures

--- a/examples/example1/CMakeLists.txt
+++ b/examples/example1/CMakeLists.txt
@@ -37,6 +37,9 @@ add_test(NAME "examples/example1_dot_pro
 if (ENABLE_SPIRV)
 	add_test(NAME "examples/example1_spirv" COMMAND "example1" "v")
   list(APPEND SPIREX "examples/example1_spirv")
+  if(HOST_DEVICE_ADDRESS_BITS EQUAL 32)
+    set_tests_properties("examples/example1_spirv" PROPERTIES WILL_FAIL 1)
+  endif()
 endif()
 
 set(PROPS)
--- a/tests/spirv/CMakeLists.txt
+++ b/tests/spirv/CMakeLists.txt
@@ -43,4 +43,8 @@ set_tests_properties( "spirv/printf"
     LABELS "internal;spirv"
     DEPENDS "pocl_version_check")
 
+if(HOST_DEVICE_ADDRESS_BITS EQUAL 32)
+  set_tests_properties("spirv/printf" PROPERTIES WILL_FAIL 1)
+endif()
+
 endif()