File: runtests

package info (click to toggle)
gladtex 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 444 kB
  • sloc: python: 4,820; makefile: 11; sh: 7
file content (11 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (4)
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