summaryrefslogtreecommitdiff
path: root/debian/tests/opencl
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/opencl')
-rwxr-xr-xdebian/tests/opencl18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/tests/opencl b/debian/tests/opencl
new file mode 100755
index 0000000..174bf4f
--- /dev/null
+++ b/debian/tests/opencl
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Check that OpenCL isn't totally broken (note that it isn't totally working either)
+# Uses device 0 platform 0, i.e. to use a real GPU manually install its opencl-icd before running this
+# Mark the test has flaky, the important part is the CPU computation.
+
+# display the OpenCL platform info
+
+clinfo
+
+# until we solved https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060318
+export POCL_WORK_GROUP_METHOD=cbs
+
+for py in $(py3versions -r 2>/dev/null)
+do cd "$AUTOPKGTEST_TMP"
+ echo "Testing with $py:"
+ HOME="$AUTOPKGTEST_TMP" WITH_QT_TEST=False SILX_TEST_LOW_MEM=False xvfb-run -a --server-args="-screen 0 1024x768x24" $py -c "import sys; import silx.test; sys.exit(silx.test.run_tests())" 2>&1
+done