#!/bin/sh

set -e

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)

pkgos-dh_auto_install --no-py2 --in-tmp
pkgos-dh_auto_test --no-py2 'futurist\.tests\.(?!.*test_executors\.TestRejection\.test_rejection.*)'
