File: run-unit-test

package info (click to toggle)
busco 5.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,796 kB
  • sloc: python: 10,239; sh: 58; makefile: 6
file content (30 lines) | stat: -rw-r--r-- 594 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
23
24
25
26
27
28
29
30
#!/bin/bash
set -e

pkg='busco'
CUR_DIR=`pwd`

QUILT_PATCHES=debian/patches quilt push -a || true

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

cd $AUTOPKGTEST_TMP

cp -a ${CUR_DIR}/test*/ .
mkdir -p config
cp -a /usr/share/doc/${pkg}/examples/config.ini config/

for py in $(py3versions -s 2> /dev/null)
do
    echo "Testing with $py in $(pwd):"
    $py -m unittest tests/unittest_runner.py -v 
    
done

cd ${CUR_DIR}
QUILT_PATCHES=debian/patches quilt pop -a || true

echo "PASS"