File: test.sh

package info (click to toggle)
usagestats 0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 160 kB
  • sloc: python: 560; makefile: 17
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