From 3e20038bbf7206e2270655418d7884ccfe91a4e4 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 00:19:10 +0200 Subject: add directives and directive based entry points --- scripts/docker_test.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'scripts/docker_test.sh') diff --git a/scripts/docker_test.sh b/scripts/docker_test.sh index 93f0bca..2ded903 100755 --- a/scripts/docker_test.sh +++ b/scripts/docker_test.sh @@ -2,17 +2,15 @@ # Convenience wrapper: build hdass and run the full test suite (unit tests plus # the end-to-end example tests) inside the amd64 Linux Docker environment. # Run this from the host; it brings the container up if it is not already. +# +# Colours are on by default; set NO_COLOR to disable them. set -euo pipefail root="$(cd "$(dirname "$0")/.." && pwd)" cd "$root" -docker compose up -d +docker compose up -d >/dev/null -docker compose exec -T hdass bash -c ' - set -e - premake5 gmake - make config=debug - ./bin/debug-linux/tests - ./scripts/test_examples.sh -' +# stdin is redirected from /dev/null so `docker compose exec -T` does not hang +# waiting on the stream after the suite finishes. +docker compose exec -T -e "NO_COLOR=${NO_COLOR:-}" hdass bash /hdass/scripts/run_suite.sh