File: unit-tests

package info (click to toggle)
pyotherside 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 880 kB
  • sloc: cpp: 2,869; python: 475; makefile: 152; sh: 35
file content (15 lines) | stat: -rwxr-xr-x 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# autopkgtest check: run pyotherside unit tests and ensure everything passes
# (C) 2014 Canonical Ltd.
# Author: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

set -e
DHM="$(dpkg-architecture -qDEB_HOST_MULTIARCH)"

cd $AUTOPKGTEST_TMP
# Qt5
xvfb-run -a "/usr/lib/$DHM/pyotherside/tests/qt5tests" 2>&1
xvfb-run -a /usr/lib/qt5/bin/qmltestrunner -input "/usr/lib/$DHM/pyotherside/tests" 2>&1
# Qt6
xvfb-run -a "/usr/lib/$DHM/pyotherside/tests/qt6tests" 2>&1
xvfb-run -a /usr/lib/qt6/bin/qmltestrunner -input "/usr/lib/$DHM/pyotherside/tests" 2>&1