Refine tests, CLI

This commit is contained in:
Javanaut
2026-04-09 13:34:38 +02:00
parent 60ae58500a
commit 01b5fdb289
11 changed files with 391 additions and 92 deletions

22
tools/test.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
PYTHON_BIN="${FFX_PYTHON:-${HOME}/.local/share/ffx.venv/bin/python}"
if [[ ! -x "${PYTHON_BIN}" ]]; then
echo "Missing Python interpreter: ${PYTHON_BIN}" >&2
echo "Set FFX_PYTHON to a suitable interpreter if needed." >&2
exit 1
fi
cd "${REPO_ROOT}"
exec "${PYTHON_BIN}" -m pytest \
--ignore=tests/legacy \
--ignore=tests/support \
tests \
"$@"