Files
GeuReflector/tests/run_tests.sh
T
Audric db16676c16 test: integration coverage for peer-client liveness deltas
Adds tests for satellite-axis and twin-axis per-client deltas,
retained rx bootstrap on subscribe, 500ms debounce invariant,
SATELLITE_FILTER respect, trunk-peer absence of peer/+/client/+/*
topics, and MQTT_NAME twin-mode validation.

Snapshot-housekeeping coverage is deferred together with Task 11.
2026-04-29 17:26:22 +02:00

45 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
cleanup() {
echo "=== Tearing down test environment ==="
docker compose -f docker-compose.test.yml down -v --remove-orphans 2>/dev/null
}
trap cleanup EXIT
echo "=== Generating configs from topology.py ==="
python3 generate_configs.py
echo "=== Building and starting reflector mesh ==="
docker compose -f docker-compose.test.yml up -d --build --wait
echo "=== Running integration tests ==="
python3 test_trunk.py
echo "=== Running MQTT-deltas integration tests ==="
python3 test_mqtt_deltas.py
echo "=== Logging tests ==="
python3 test_logging.py -v || exit 1
echo ""
echo "=================================="
echo "Running TWIN protocol tests"
echo "=================================="
echo "=== Generating TWIN topology configs ==="
python3 generate_configs.py --topology twin
echo "=== Tearing down default mesh ==="
docker compose -f docker-compose.test.yml down -v --remove-orphans
echo "=== Building and starting TWIN mesh ==="
docker compose -f docker-compose.test.yml up -d --build --wait
echo "=== Running TWIN integration tests ==="
python3 test_twin.py
echo "=== Restoring default topology ==="
python3 generate_configs.py