diff options
| author | hachem <im@hachem.wtf> | 2026-08-30 21:21:53 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-30 21:21:53 +0200 |
| commit | 294777178f9203283364f3e672569becb4dd1e7c (patch) | |
| tree | b97447843d06f8f63a01505c85e6e9f9e804b797 /scripts/docker_test.sh | |
| parent | 13704a1df5c15af7163cc7764b0aeebc81ad2bdd (diff) | |
test: add automated docker testing for the whole test suite
Diffstat (limited to 'scripts/docker_test.sh')
| -rwxr-xr-x | scripts/docker_test.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/docker_test.sh b/scripts/docker_test.sh new file mode 100755 index 0000000..93f0bca --- /dev/null +++ b/scripts/docker_test.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# 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. +set -euo pipefail + +root="$(cd "$(dirname "$0")/.." && pwd)" +cd "$root" + +docker compose up -d + +docker compose exec -T hdass bash -c ' + set -e + premake5 gmake + make config=debug + ./bin/debug-linux/tests + ./scripts/test_examples.sh +' |
