[Debichem-devel] Bug#953630: openbabel autopkg tests fail on non-amd64 architectures

Paul Gevers elbrus at debian.org
Sun Nov 20 16:18:20 GMT 2022


Control: tags -1 pending

Hi,

On Wed, 11 Mar 2020 13:33:44 +0100 Matthias Klose <doko at debian.org> wrote:
> Attached is a patch which runs all tests, skips some problematic tests, and runs
> all tests before failing.

 From the BSP in Tilburg, I uploaded the attached NMU to DELAYED/5. 
Please let me know if I should delay more or cancel.

Paul
-------------- next part --------------
diff -Nru openbabel-3.1.1+dfsg/debian/changelog openbabel-3.1.1+dfsg/debian/changelog
--- openbabel-3.1.1+dfsg/debian/changelog	2022-09-08 14:29:09.000000000 +0200
+++ openbabel-3.1.1+dfsg/debian/changelog	2022-11-20 10:24:49.000000000 +0100
@@ -1,3 +1,20 @@
+openbabel (3.1.1+dfsg-7.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+
+  [ Matthias Klose ]
+  * Make the autopkg tests more verbose, don't fail on the first failing test.
+  * Re-enable the tests on arm64.
+  * Skip the test/testroundtrip.py test on all architectures, times out
+    (Closes: #953630)
+  * Skip the testbindings.py and testsym.py tests on non amd64 architectures.
+
+  [ Paul Gevers ]
+  * Run all tests that don't timeout, but ignore specific failures on
+    specific architectures
+
+ -- Paul Gevers <elbrus at debian.org>  Sun, 20 Nov 2022 10:24:49 +0100
+
 openbabel (3.1.1+dfsg-7) unstable; urgency=medium
 
   * Include <ctime> in obutil.h (Closes: #1016227)
diff -Nru openbabel-3.1.1+dfsg/debian/tests/python3 openbabel-3.1.1+dfsg/debian/tests/python3
--- openbabel-3.1.1+dfsg/debian/tests/python3	2022-09-08 14:29:09.000000000 +0200
+++ openbabel-3.1.1+dfsg/debian/tests/python3	2022-11-20 10:24:49.000000000 +0100
@@ -1,10 +1,50 @@
 #!/bin/bash
 
-test "$(dpkg --print-architecture)" = arm64 && exit 77
-
 sed -i 's/"\.\."/"\/usr"/' test/testbabel.py
 
+arch=$(dpkg --print-architecture)
+fails=
 for TEST in test/test*.py
 do
-    python3 ${TEST}
+    fail_on_failure=true
+    case $TEST in
+      test/testroundtrip.py)
+        # timesout?
+        echo "Skipping ${TEST} ..."
+        continue;;
+      test/testdistgeom.py)
+        case "$arch" in amd64)
+          # timesout on ci.d.n worker13
+	  echo "Skipping ${TEST} ..."
+	  continue;;
+	esac;;		      
+      test/testbindings.py)
+        case "$arch" in arm64)
+          fail_on_failure=false;;
+        esac;;
+      test/testsym.py)
+        case "$arch" in arm64|armel|armhf|i386|ppc64el|s390x)
+          fail_on_failure=false;;
+        esac;;
+      test/testobconv_writers.py)
+        case "$arch" in arm64|i386|ppc64el|s390x)
+          fail_on_failure=false;;
+        esac;;
+    esac
+    echo "Running ${TEST} ..."
+    if python3 ${TEST}; then
+	:
+    else
+       if [ $fail_on_failure = "false" ] ; then
+         echo "Ignoring ${TEST} on $arch ..."
+       else
+         fails="$fails $TEST"
+       fi
+    fi
 done
+
+if [ -n "$fails" ]; then
+    echo "Failing tests: $fails"
+    exit 1
+fi
+exit 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debichem-devel/attachments/20221120/232e137d/attachment.sig>


More information about the Debichem-devel mailing list