File: test.sh

package info (click to toggle)
usagestats 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 164 kB
  • sloc: python: 570; php: 62; makefile: 18
file content (16 lines) | stat: -rwxr-xr-x 302 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -eux

case "$TEST_MODE"
in
    run_tests)
        python tests
        ;;
    coverage)
        coverage run --append --source=usagestats.py --branch tests/__main__.py
        ;;
    check_style)
        flake8 --ignore=E126 usagestats.py tests wsgi/usagestats_server.py
        ;;
esac