File: runtests

package info (click to toggle)
gladtex 2.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 440 kB
  • sloc: python: 4,531; sh: 7; makefile: 3
file content (11 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# change above to python, if your system doesn't have the 3 suffix for python 3
set -e
PYTHON=python
#  check whether a program called "python3" exists, else use "python"
if command -v python3 >/dev/null 2>&1
then
    PYTHON=python3
fi

$PYTHON -m unittest discover tests