aboutsummaryrefslogtreecommitdiff
path: root/scripts/docker_test.sh
diff options
context:
space:
mode:
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