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