aboutsummaryrefslogtreecommitdiff
path: root/scripts/docker_test.sh
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-31 00:19:10 +0200
committerhachem <im@hachem.wtf>2026-08-31 00:19:10 +0200
commit3e20038bbf7206e2270655418d7884ccfe91a4e4 (patch)
treedfc7bf806a00c1dbec6c889351c108702a0e9d40 /scripts/docker_test.sh
parent8eac30c13cfa4f47a8a0aa0772b96f0813fe33a5 (diff)
add directives and directive based entry points
Diffstat (limited to 'scripts/docker_test.sh')
-rwxr-xr-xscripts/docker_test.sh14
1 files changed, 6 insertions, 8 deletions
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 </dev/null