Source: lxml
Version: 4.6.1-1
Severity: normal
Tags: patch

Hi,

The attached patch runs the test suite for each supported python
version. It'd be good to do that to ensure lxml's funcionality.
The patch needs to do an in-tree build so that etree.so can be found.
I couldn't find a workaround for that but if that's a blocker I could
investigate further to avoid that in-tree build.

We could further enable autopkgtests to detect if a dep introduces a
regression, I could look into writing a patch for that if that'd be
desired.

Thanks,
Emilio
diff -Nru lxml-4.6.1/debian/changelog lxml-4.6.1/debian/changelog
--- lxml-4.6.1/debian/changelog 2020-10-22 18:02:16.000000000 +0200
+++ lxml-4.6.1/debian/changelog 2020-11-30 13:56:20.000000000 +0100
@@ -1,3 +1,9 @@
+lxml (4.6.1-2) UNRELEASED; urgency=medium
+
+  * Run the test suite during the build.
+
+ -- Emilio Pozuelo Monfort <po...@debian.org>  Mon, 30 Nov 2020 13:56:20 +0100
+
 lxml (4.6.1-1) unstable; urgency=medium
 
   * New upstream version.
diff -Nru lxml-4.6.1/debian/rules lxml-4.6.1/debian/rules
--- lxml-4.6.1/debian/rules     2020-07-17 11:16:59.000000000 +0200
+++ lxml-4.6.1/debian/rules     2020-11-30 13:56:20.000000000 +0100
@@ -20,7 +20,7 @@
 build-indep: build
 build: build3-stamp
 
-build3-stamp: $(PY3VERS:%=build3-python%) $(PY3VERS:%=dbg-build3-python%)
+build3-stamp: $(PY3VERS:%=build3-python%) $(PY3VERS:%=dbg-build3-python%) 
$(PY3VERS:%=check-python%)
        touch $@
 build3-python%: prebuild
        python$* setup.py build
@@ -28,6 +28,12 @@
 dbg-build3-python%: prebuild
        python$*-dbg setup.py build
        touch $@
+check-python%:
+       python$* setup.py build_ext -i
+       python$* test.py -vv
+       #python$*-dbg setup.py build_ext -i
+       #python$*-dbg test.py -vv
+       touch $@
 
 clean:
        dh_testdir

Reply via email to