#!/bin/sh
set -e

# The Python unit tests: first a quick smoke check of the
# python3-pkgos module installed in the testbed, run from outside of
# the source tree so that the installed module is the one being
# imported, and not the one from the source tree. Then the full unit
# test suite through stestr, run from the source tree, with the test
# dependencies pulled in through @builddeps@.
SOURCEDIR=$(pwd)
cd /tmp
python3 -c 'import pkgos; print("python3-pkgos version:", pkgos.__version__)'
cd ${SOURCEDIR}
stestr run
