Files
pkgmgr/scripts/test/container/unittest.sh
T

12 lines
326 B
Bash
Raw Normal View History

#!/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"