File: pytest

package info (click to toggle)
python-bytecode 0.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 780 kB
  • sloc: python: 8,300; makefile: 169; sh: 40
file content (25 lines) | stat: -rwxr-xr-x 472 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
#! /bin/sh

set -e

# armhf fails strangely; see https://bugs.debian.org/1056460
DEB_BUILD_ARCH=$(dpkg-architecture -q DEB_BUILD_ARCH)

if [ "$DEB_BUILD_ARCH" = armhf ]
then
   HOMEDIR=$(pwd)
   patch -p1 < debian/armhf.patch
fi

cp -a tests "$AUTOPKGTEST_TMP"
for py in $(py3versions -s) ; do
    cd "$AUTOPKGTEST_TMP"
    echo "Testing with $py:"
    $py -m pytest tests
done

if [ "$DEB_BUILD_ARCH" = armhf ]
then
   cd $HOMEDIR
   patch -p1 -R < debian/armhf.patch
fi