All checks were successful
Zapret source guards / validate (push) Successful in 8s
* tests/test_platform_contract.py: for every interface of Platform and every backend (Windows, Linux, stub) the methods exist and take the arguments the callers pass; harmless questions never raise; a new Platform field forces this list (and all three backends) to follow. Mutations caught: renamed method, extra required parameter. * tests/linux_lane.txt + scripts/linux_test_lane.sh: the explicit list of tests that must pass on Linux (offscreen Qt) plus the architecture checks; a test makes sure every platform/linux test file is on the list. * qt_tray.tray_available(): without a QApplication it answers "no tray" instead of crashing the process (found by the contract test). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
10 lines
544 B
Shell
10 lines
544 B
Shell
#!/bin/bash
|
|
# Runs the Linux test lane (tests/linux_lane.txt) with offscreen Qt, plus the architecture checks.
|
|
# scripts/linux_test_lane.sh [extra pytest arguments]
|
|
# The real-system smoke test (root, nftables, nfqws2) is separate: scripts/linux_helper_smoke.sh
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
export QT_QPA_PLATFORM=offscreen PYTHONPATH=src
|
|
python3 -m app.architecture_checks
|
|
mapfile -t files < <(grep -vE '^\s*(#|$)' tests/linux_lane.txt)
|
|
exec python3 -m pytest -n "${PYTEST_WORKERS:-6}" -q -p no:cacheprovider "$@" "${files[@]}"
|