diff --git a/debian/README.source b/debian/README.source deleted file mode 100644 index 1ccee93..0000000 --- a/debian/README.source +++ /dev/null @@ -1,3 +0,0 @@ -We're not running the complete upstream testsuite (neither at build nor in the -autopkgtest) since it seems it needs a working systemd at run to work properly. -That's kinda ugly, so we're sadly skipping those tests. diff --git a/debian/changelog b/debian/changelog index f5a3925..7f32df8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,11 @@ +monitoring-plugins-systemd (2.3.0+ds-2) UNRELEASED; urgency=medium + + * Run the complete upstream testsuite, at build and in the autopkgtest. + + -- Louis-Philippe Véronneau Sat, 20 Feb 2021 00:54:57 -0500 + monitoring-plugins-systemd (2.3.0+ds-1) unstable; urgency=medium * Initial release. (Closes: #982667, #895278) -- Louis-Philippe Véronneau Fri, 19 Feb 2021 23:18:00 -0500 diff --git a/debian/rules b/debian/rules index 9888271..eb55995 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,8 @@ #!/usr/bin/make -f export PYBUILD_BEFORE_TEST=cp {dir}/check_systemd.py {dir}/README-template.md {build_dir} -export PYBUILD_TEST_ARGS=--ignore test/test_subprocess.py +export PYBUILD_TEST_ARGS=-k-test_entry_point export PYBUILD_DISABLE=install %: dh $@ --with python3 --buildsystem=pybuild diff --git a/debian/tests/unittests b/debian/tests/unittests index 084282f..d2d9e58 100644 --- a/debian/tests/unittests +++ b/debian/tests/unittests @@ -1,13 +1,13 @@ #!/bin/sh set -efu pys="$(py3versions -s 2> /dev/null)" cp -a README-template.md test "$AUTOPKGTEST_TMP" ln -s /usr/lib/nagios/plugins/check_systemd "$AUTOPKGTEST_TMP/check_systemd.py" cd "$AUTOPKGTEST_TMP" for py in $pys; do echo "=== $py ===" - PYTHONPATH=. $py -m pytest --ignore test/test_subprocess.py test 2>&1 + PYTHONPATH=. $py -m pytest -k-test_entry_point test 2>&1 done