From cf24f576891ece60bdf04928d3c39dd0bbb9b5f6 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 31 Aug 2026 01:11:54 +0200 Subject: feat: add logical_registers --- scripts/docker_test.sh | 7 ------- scripts/run_suite.sh | 5 ----- scripts/test_examples.sh | 11 +---------- 3 files changed, 1 insertion(+), 22 deletions(-) (limited to 'scripts') diff --git a/scripts/docker_test.sh b/scripts/docker_test.sh index 2ded903..5730e1d 100755 --- a/scripts/docker_test.sh +++ b/scripts/docker_test.sh @@ -1,9 +1,4 @@ #!/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. -# -# Colours are on by default; set NO_COLOR to disable them. set -euo pipefail root="$(cd "$(dirname "$0")/.." && pwd)" @@ -11,6 +6,4 @@ cd "$root" docker compose up -d >/dev/null -# 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 -# expected_stdout is compared after trailing newlines are stripped (as $() does). check() { local name="$1" desc="$2" source="$3" expected_exit="$4" expected_stdout="$5" @@ -90,6 +80,7 @@ check arithmetic "integer compound-assignment math" examples/arithmetic.hd check loop_sum "sums 1..5 with a countdown loop" examples/loop_sum.hdass 15 "" check branch "selects the larger of two values" examples/branch.hdass 8 "" check call "passes an argument through a proc" examples/call.hdass 21 "" +check logical "logical register names (r1..r14)" examples/logical.hdass 21 "" check fibonacci "prints the first ten Fibonacci numbers" examples/fibonacci.hdasm 0 "0 1 1 -- cgit v1.3