File: spirv-tests.patch

package info (click to toggle)
pocl 7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 29,768 kB
  • sloc: lisp: 151,669; ansic: 135,425; cpp: 65,801; python: 1,846; sh: 1,084; ruby: 255; pascal: 231; tcl: 180; makefile: 174; asm: 81; java: 72; xml: 49
file content (30 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download
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
27
28
29
30
Author: Andreas Beckmann <anbe@debian.org>
Description: expect the spirv tests to fail on 32-bit architectures

Index: pocl/examples/example1/CMakeLists.txt
===================================================================
--- pocl.orig/examples/example1/CMakeLists.txt	2026-03-09 14:49:09.973070789 +0100
+++ pocl/examples/example1/CMakeLists.txt	2026-03-09 14:49:09.970444800 +0100
@@ -34,6 +34,9 @@
 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)
Index: pocl/tests/spirv/CMakeLists.txt
===================================================================
--- pocl.orig/tests/spirv/CMakeLists.txt	2026-03-09 14:49:09.973070789 +0100
+++ pocl/tests/spirv/CMakeLists.txt	2026-03-09 14:49:09.970624395 +0100
@@ -51,4 +51,8 @@
   set_property(TEST "spirv/printf" APPEND PROPERTY LABELS "cpu_fail")
 endif()
 
+if(HOST_DEVICE_ADDRESS_BITS EQUAL 32)
+  set_tests_properties("spirv/printf" PROPERTIES WILL_FAIL 1)
+endif()
+
 endif()