File: run-unit-test

package info (click to toggle)
python-amply 0.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: python: 1,005; sh: 46; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -e

pkg=amply
CUR_DIR=`pwd`

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cp -a ${CUR_DIR}/tests $AUTOPKGTEST_TMP

cd $AUTOPKGTEST_TMP

for py in $(py3versions -s 2> /dev/null)
do
    echo "Testing with $py in $(pwd):"
    pytest-3
done