The full legacy suite mixes repo tests with deployment-target tests
(PAM packages, target resolv.conf, Proxmox repo reachability) that can
only pass on a provisioned server. The workstation gate now runs the
unit suite; validation/security stay invocable for sectestbed runs.
💘 Generated with Crush
Assisted-by: Crush:glm-5.2
20 lines
581 B
Bash
Executable File
20 lines
581 B
Bash
Executable File
#!/usr/bin/bash
|
|
#
|
|
# test.sh — project test runner (framework entry point).
|
|
#
|
|
# LOCAL GATE: runs the unit suite, which applies to the repo itself and
|
|
# must pass on any workstation ("shift left").
|
|
#
|
|
# The validation/security suites in tests/ are deployment-target tests
|
|
# (PAM/2FA packages, target resolv.conf, external repo reachability) —
|
|
# run them ON a sectestbed/target system, not here:
|
|
# bash tests/run-tests.sh validation | security
|
|
#
|
|
set -uo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit 1
|
|
|
|
status=0
|
|
bash tests/run-tests.sh unit || status=1
|
|
|
|
exit "$status"
|