File: python3-guizero

package info (click to toggle)
python-guizero 0.6.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,820 kB
  • sloc: python: 5,376; makefile: 28; sh: 17
file content (25 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download
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 -efu

export LANG=C.UTF-8
export LC_ALL=C.UTF-8

if [ -z "$AUTOPKGTEST_TMP" ]; then
    AUTOPKGTEST_TMP=tmp
    mkdir -p "$AUTOPKGTEST_TMP"
fi

SRCDIR=$(pwd)

# Copy the tests and required assets
cp -rv "$SRCDIR"/tests "$AUTOPKGTEST_TMP"
cp -v "$SRCDIR"/examples/guizero_flash.gif "$AUTOPKGTEST_TMP"/tests
cp -v "$SRCDIR"/examples/guizero.gif "$AUTOPKGTEST_TMP"/tests
cp -v "$SRCDIR"/examples/guizero.jpg "$AUTOPKGTEST_TMP"/tests
cp -v "$SRCDIR"/examples/guizero.png "$AUTOPKGTEST_TMP"/tests

cd "$AUTOPKGTEST_TMP"

for py in $(py3versions -i); do
    xvfb-run -a $py -m pytest
done