Skip to content
Commits on Source (3)
Notes on how this package can be tested.
────────────────────────────────────────
This package can be tested by running the provided test:
sh run-unit-test
in order to confirm its integrity.
python-dendropy (4.4.0-2) UNRELEASED; urgency=medium
python-dendropy (4.4.0-2) unstable; urgency=medium
* Drop Python2 support
targeting bug #937698
......@@ -7,8 +7,10 @@ python-dendropy (4.4.0-2) UNRELEASED; urgency=medium
* Secure URI in copyright format
* Respect DEB_BUILD_OPTIONS in override_dh_auto_test target
* Use secure URI in Homepage field.
* Do not try running non-existing testsuite
* Add autopkgtest
-- Andreas Tille <tille@debian.org> Tue, 08 Oct 2019 09:01:44 +0200
-- Andreas Tille <tille@debian.org> Tue, 08 Oct 2019 13:24:14 +0200
python-dendropy (4.4.0-1) unstable; urgency=medium
......
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 08 Oct 2019 09:01:44 +0200
Description: There is no test suite to run - just data
see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937698#17
--- a/setup.py
+++ b/setup.py
@@ -95,7 +95,7 @@ else:
EXTRA_KWARGS = dict(
install_requires = ['setuptools'],
include_package_data = True,
- test_suite = "tests",
+# test_suite = "tests",
zip_safe = True,
)
do_not_try_running_non-existing_testsuite.patch
......@@ -9,15 +9,6 @@ export PYBUILD_NAME=dendropy
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
LC_ALL=en_US.utf-8 dh_auto_test || true
# FIXME
# need to add true since for Python 3.4 5 tests are failing due some
# strange encoding problem. upstream is unable to verify this and
# there is no better idea for the moment
endif
override_dh_install:
dh_install
mkdir -p debian/$(SUMTREES)/usr/bin
......
debian/README.test
debian/tests/run-unit-test
tests/data/trees/*.tre
Tests: run-unit-test
Depends: @
Restrictions: allow-stderr
#!/bin/bash
set -e
pkg=sumtrees
export LC_ALL=C.UTF-8
if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi
cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
gunzip -r *
# Obtained from `sumtrees --usage-examples`
sumtrees --summary-target consensus \
--min-clade-freq=0.95 \
--edges mean-length \
--burnin=200 \
--support-as-labels \
--output=pythonidae_result.tre \
pythonidae.mlboots.newick.tre pythonidae.random.bd0301.midpoint-rooted.tre pythonidae.random.bd0301.tre