Your message dated Thu, 28 Jan 2021 21:47:28 +0100
with message-id <d8bf4cc2-b3da-954c-6212-9ee1a4184...@debian.org>
and subject line build-time tests are now running
has caused the Debian Bug report #960436,
regarding pyopencl: test need unavailable module pygpu_ndarray
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
960436: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960436
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Version: 2020.3.1-1

Thanks @picca for making the tests run!

Andreas

--- End Message ---

Reply via email to