| 1 |
#!/bin/bash |
| 2 |
set -e |
| 3 |
|
| 4 |
pkg=python3-neo |
| 5 |
|
| 6 |
export LC_ALL=C.UTF-8 |
| 7 |
if [ "$AUTOPKGTEST_TMP" = "" ] ; then |
| 8 |
AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) |
| 9 |
trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM |
| 10 |
fi |
| 11 |
|
| 12 |
# Note that as of neo 0.11.1, example scripts have not been ported to the newer |
| 13 |
# neo API, hence testing with the source code unit test for now. |
| 14 |
export NOSETESTS_NO_NETWORK=1 |
| 15 |
export HOME="$AUTOPKGTEST_TMP/home" |
| 16 |
|
| 17 |
mkdir -v "$HOME" |
| 18 |
cp -rv neo/ "$AUTOPKGTEST_TMP" |
| 19 |
for PYTHON3 in $(py3versions --supported) |
| 20 |
do |
| 21 |
echo "I: Running Neo unittests using $PYTHON3" |
| 22 |
NOSETESTS_NO_NETWORK=1 "$PYTHON3" -m pytest -v neo |
| 23 |
done |