File: python

package info (click to toggle)
orange-canvas-core 0.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,732 kB
  • sloc: python: 32,014; makefile: 11; sh: 11
file content (16 lines) | stat: -rwxr-xr-x 771 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -ex

export DISPLAY=:99.0

for py in $(py3versions --supported 2> /dev/null); do
    tmphome=$(mktemp -d)
    /sbin/start-stop-daemon --start --quiet --pidfile $tmphome/custom_xvfb.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99
    /sbin/start-stop-daemon --start --quiet --pidfile $tmphome/custom_herbstluftwm.pid --make-pidfile --background --exec /usr/bin/herbstluftwm -- --replace

    echo "Testing with $py: "
    HOME=$tmphome $py -m pytest --pyargs orangecanvas -k "not test_iconengine" --capture=no

    /sbin/start-stop-daemon --stop --quiet --pidfile $tmphome/custom_herbstluftwm.pid --remove-pidfile || true
    /sbin/start-stop-daemon --stop --quiet --pidfile $tmphome/custom_xvfb.pid --remove-pidfile || true
    rm -rf $tmphome
done