2026-11-30 19:20:37 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -e
|
|
|
|
|
|
2026-11-30 22:46:50 +00:00
|
|
|
# Param: suite ($1) - the test folder to discover, tests/unit or tests/integration.
|
2026-11-30 19:20:37 +00:00
|
|
|
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"
|