From bdba0426045204106863c3c92781e5fd1c71a487 Mon Sep 17 00:00:00 2001 From: Audric Date: Wed, 17 Jun 2026 16:48:37 +0200 Subject: [PATCH] test: wire test_routable.py into run_tests.sh The routable-prefix suite (added with the ROUTABLE_PREFIXES feature) had a test file and docker-compose.routable.yml but was never invoked by the runner, so it was silently skipped. Add a ROUTABLE phase after the TWIN tests (generate --topology routable, bring up the dedicated mesh, run test_routable.py, tear it down) and extend the cleanup trap to down the routable compose file on interrupt. Full suite now runs 89 tests: 52 trunk + 7 mqtt + 5 satellite-secrets + 6 logging + 17 twin + 2 routable. --- tests/run_tests.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index a4f76d3..b4a85a1 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -5,6 +5,7 @@ cd "$(dirname "$0")" cleanup() { echo "=== Tearing down test environment ===" docker compose -f docker-compose.test.yml down -v --remove-orphans 2>/dev/null + docker compose -f docker-compose.routable.yml down -v --remove-orphans 2>/dev/null } trap cleanup EXIT @@ -43,5 +44,25 @@ docker compose -f docker-compose.test.yml up -d --build --wait echo "=== Running TWIN integration tests ===" python3 test_twin.py +echo "" +echo "==================================" +echo "Running ROUTABLE prefix tests" +echo "==================================" + +echo "=== Generating ROUTABLE topology configs ===" +python3 generate_configs.py --topology routable + +echo "=== Tearing down TWIN mesh ===" +docker compose -f docker-compose.test.yml down -v --remove-orphans + +echo "=== Building and starting ROUTABLE mesh ===" +docker compose -f docker-compose.routable.yml up -d --build --wait + +echo "=== Running ROUTABLE integration tests ===" +python3 test_routable.py + +echo "=== Tearing down ROUTABLE mesh ===" +docker compose -f docker-compose.routable.yml down -v --remove-orphans + echo "=== Restoring default topology ===" python3 generate_configs.py