File: unittests

package info (click to toggle)
python-tooz 6.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 840 kB
  • sloc: python: 5,530; sh: 158; makefile: 27
file content (16 lines) | stat: -rw-r--r-- 942 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

PYTHON3S=$(py3versions -vr 2>/dev/null)
CURDIR=$(pwd)

export OSLO_PACKAGE_VERSION=$(dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~git.*//' -e 's/~/.0/' -e 's/+dfsg1//' -e 's/+ds1//' | head -n 1)

for i in ${PYTHON3S} ; do
	python$i setup.py install -f --install-layout=deb --root=`pwd`/debian/tmp 
	chmod +x ${CURDIR}/debian/check-memcached-off ${CURDIR}/debian/check-memcached-runs
	${CURDIR}/debian/check-memcached-runs
	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.*|drivers\.test_mysql\.TestMySQLDriver\.test_parsing_blocking_settings|drivers\.test_mysql\.TestMySQLDriver\.test_parsing_timeout_settings|test_coordination\.TestAPI\.test_lock_context_manager_acquire_argument))'
	${CURDIR}/debian/check-memcached-off
done