run.sh 362 Bytes
Newer Older
Petr Špaček's avatar
Petr Špaček committed
1 2
#!/bin/bash
set -o errexit -o nounset
3

Petr Špaček's avatar
Petr Špaček committed
4 5 6 7
MAKEDIR="$(dirname "$0")"
rm -f "${MAKEDIR}/env.sh"
LDPRELOAD="$(make depend -C "${MAKEDIR}")"
source "${MAKEDIR}/env.sh"
8

9 10
# compatibility with old TESTS= env variable
# add --scenarios= only if the variable TESTS is non-empty
11
python3 -m pytest -c deckard_pytest.ini ${DECKARDFLAGS:-} ${TESTS:+"--scenarios=${TESTS}"} "$@"