Add autopkgtest.
Thomas Goirand
1 year, 8 months ago
0 | 0 |
python-tooz (3.0.0-1) experimental; urgency=medium
|
1 | 1 |
|
2 | 2 |
* New upstream release.
|
|
3 |
* Add autopkgtest.
|
3 | 4 |
|
4 | 5 |
-- Thomas Goirand <zigo@debian.org> Tue, 30 Aug 2022 11:05:40 +0200
|
5 | 6 |
|
|
0 |
Tests: unittests
|
|
1 |
Depends:
|
|
2 |
@,
|
|
3 |
@builddeps@,
|
|
4 |
Restrictions: allow-stderr needs-root
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
set -e
|
|
3 |
|
|
4 |
PYTHON3S=$(py3versions -vr 2>/dev/null)
|
|
5 |
CURDIR=$(pwd)
|
|
6 |
|
|
7 |
for i in ${PYTHON3S} ; do
|
|
8 |
python$i setup.py install -f --install-layout=deb --root=`pwd`/debian/tmp
|
|
9 |
chmod +x ${CURDIR}/debian/check-memcached-off ${CURDIR}/debian/check-memcached-runs
|
|
10 |
${CURDIR}/debian/check-memcached-runs
|
|
11 |
PYTHON=python$i PYTHONPATH=${CURDIR}/debian/tmp/usr/lib/python3/dist-packages TOOZ_TEST_URL="ipc://" pkgos-dh_auto_test --no-py2 'tooz\.tests\.(?!(.*test_coordination\.TestAPI\.test_get_lock_multiple_coords.*))'
|
|
12 |
${CURDIR}/debian/check-memcached-off
|
|
13 |
fi
|