Debian Codegraph @

.ci/run_tests.sh

raw symbols SCIP
1 #!/bin/bash
2 #
3 # Run indexed_gzip unit tests. Assumes that
4 # python setup.py develop has been run.
5
6 set -e
7
8 envdir="$1"
9 thisdir=$(cd $(dirname "$0") && pwd)
10
11 source $thisdir/activate_env.sh "$envdir"
12
13 # NITERS=<number of iterations for some tests>
14 # (see conftest.py)
15 if [[ -n "$NITERS" ]]; then
16 NITERS="--niters $NITERS"
17 fi
18
19 # NELEMS=<number of elements/size of
20 # test file, for some tests>
21 # (see conftest.py)
22 if [[ -n "$NELEMS" ]]; then
23 NELEMS="--nelems $NELEMS"
24 fi
25
26 # Coverage reporting seems to be
27 # flaky and can result in test jobs
28 # failing, even if all tests passed.
29 EXTRA_ARGS="$EXTRA_ARGS --no-cov"
30
31 python -m indexed_gzip.tests \
32 -c pyproject.toml \
33 -v -s \
34 -m "$TEST_SUITE" \
35 -k "$TEST_PATTERN" \
36 $NELEMS \
37 $NITERS \
38 $EXTRA_ARGS