Source: pyopencl Version: 2019.1.1-1 Severity: important Hi,
I tried enabling running the test suite at build time via pocl (see attached patch), but the tests require an unavailable module pygpu_ndarray: dh_auto_test -O--buildsystem=pybuild pybuild --test -i python{version} -p 3.8 D: pybuild pybuild:560: version: 4.20200315 D: pybuild pybuild:561: ['/usr/bin/pybuild', '--test', '-i', 'python{version}', '-p', '3.8'] D: pybuild pybuild:36: cfg: Namespace(after_build=None, after_clean=None, after_configure=None, after_install=None, after_test=None, before_build=None, before_clean=None, before_configure=None, before_install=None, before_test=None, build_args=None, build_only=False, clean_args=None, clean_only=False, configure_args=None, configure_only=False, custom_tests=False, destdir='debian/tmp', detect_only=False, dir='/build/pyopencl-2019.1.1', disable=None, ext_destdir=None, ext_pattern='\\.so(\\.[^/]*)?$', ext_sub_pattern=None, ext_sub_repl=None, install_args=None, install_dir=None, install_only=False, interpreter=['python{version}'], list_systems=False, name=None, print_args=None, quiet=False, really_quiet=False, system=None, test_args=None, test_nose=False, test_nose2=False, test_only=True, test_pytest=False, test_tox=False, verbose=True, versions=['3.8']) D: pybuild tools:232: invoking: /usr/bin/dpkg-architecture D: pybuild pybuild:131: detected build system: distutils (certainty: 61%) I: pybuild base:217: cd /build/pyopencl-2019.1.1/.pybuild/cpython3_3.8/build; python3.8 -m unittest discover -v D: pybuild tools:232: invoking: cd /build/pyopencl-2019.1.1/.pybuild/cpython3_3.8/build; python3.8 -m unittest discover -v pyopencl.compyte.ndarray.test_gpu_elemwise (unittest.loader._FailedTest) ... ERROR pyopencl.compyte.ndarray.test_gpu_ndarray (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: pyopencl.compyte.ndarray.test_gpu_elemwise (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: pyopencl.compyte.ndarray.test_gpu_elemwise Traceback (most recent call last): File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/build/pyopencl-2019.1.1/.pybuild/cpython3_3.8/build/pyopencl/compyte/ndarray/test_gpu_elemwise.py", line 6, in <module> import pygpu_ndarray as gpu_ndarray ModuleNotFoundError: No module named 'pygpu_ndarray' ====================================================================== ERROR: pyopencl.compyte.ndarray.test_gpu_ndarray (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: pyopencl.compyte.ndarray.test_gpu_ndarray Traceback (most recent call last): File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/build/pyopencl-2019.1.1/.pybuild/cpython3_3.8/build/pyopencl/compyte/ndarray/test_gpu_ndarray.py", line 7, in <module> import pygpu_ndarray as gpu_ndarray ModuleNotFoundError: No module named 'pygpu_ndarray' ---------------------------------------------------------------------- Ran 2 tests in 0.000s FAILED (errors=2) E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /build/pyopencl-2019.1.1/.pybuild/cpython3_3.8/build; python3.8 -m unittest discover -v Andreas
>From 0f38742a66c287556f14ecb074a435d1571416ea Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a...@debian.org> Date: Tue, 12 May 2020 15:49:02 +0200 Subject: [PATCH] run tests using pocl --- debian/changelog | 1 + debian/control | 3 +++ debian/rules | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9f910a6..598232b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,7 @@ pyopencl (2019.1.1-2) UNRELEASED; urgency=medium [ Andreas Beckmann ] * The bullseye toolchain defaults to linking with --as-needed. * Build for all architectures where pocl-opencl-icd is available. + * Add test dependencies to Build-Depends and run tests using pocl. -- Tomasz Rybak <serp...@debian.org> Wed, 15 Jan 2020 00:08:05 +0100 diff --git a/debian/control b/debian/control index ea20f42..989246b 100644 --- a/debian/control +++ b/debian/control @@ -21,6 +21,9 @@ Build-Depends: debhelper-compat (= 12), python3-mako, python3-pytools (>= 2017.6), pocl-opencl-icd, + cmake, + python3-theano, + python3-pygpu, Standards-Version: 4.4.1 Rules-Requires-Root: no Homepage: http://mathema.tician.de/software/pyopencl diff --git a/debian/rules b/debian/rules index 10640d5..ce6fe41 100755 --- a/debian/rules +++ b/debian/rules @@ -51,9 +51,6 @@ endif # Sphinx documentation is architecture-independent override_dh_sphinxdoc-arch: -# Do not run test automatically - they require OpenCL-capable hardware -override_dh_auto_test: - override_dh_compress: dh_compress --all -X.py -X.txt -X.js -X.rst -X.json -X.doctree -Xobjects.inv -- 2.20.1