12 lines
326 B
Bash
12 lines
326 B
Bash
#!/usr/bin/env bash
|
|||
|
|
set -e
|
||
|
|
|
||
|
|
# Param: $1 the test folder to discover, tests/unit or tests/integration.
|
||
|
|
suite="$1"
|
||
|
|
|
||
|
|
git config --global --add safe.directory /opt/src/pkgmgr || true
|
||
|
|
nix develop .#default --no-write-lock-file -c \
|
||
|
|
python3 -m unittest discover \
|
||
|
|
-s "$suite" \
|
||
|
|
-t /opt/src/pkgmgr \
|
||
|
|
-p "$TEST_PATTERN"
|