summaryrefslogtreecommitdiffstats
path: root/test/scripts/cover
blob: 1ebe596d59933a02fc3310e2ef17695518f31d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# This script is used by sharness tests hosted in our `test`
# directory. We require a concrete script to make using this easily,
# because we often call `env` in those tests.
#
# The purpose of this script is to allow sharness tests to gather
# Python coverage when calling scripts within `aurweb`.
#
TOPLEVEL=$(dirname "$0")/../..

# Define a COVERAGE_FILE in our root directory.
COVERAGE_FILE="$TOPLEVEL/.coverage" \
coverage run -L --source="$TOPLEVEL/aurweb" --append "$@"