From 5a383956c9ee27d50452aa237a9f34b7f75e8f7c Mon Sep 17 00:00:00 2001 From: taitep Date: Tue, 30 Dec 2025 20:18:23 +0100 Subject: Improve exception dumps and general debug info, make the emulator capable of running the riscv ISA tests, and perform some general fixes i found while making it pass the tests for RV64I --- run-riscv-tests.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 run-riscv-tests.sh (limited to 'run-riscv-tests.sh') diff --git a/run-riscv-tests.sh b/run-riscv-tests.sh new file mode 100755 index 0000000..c39c59d --- /dev/null +++ b/run-riscv-tests.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +for f in $(cat torun.txt); do + result=$(cargo run $f 2>&1 | tail -n 1 | awk '{print $NF}') + if [[ $result != 0 ]]; then + testnum=$(( result >> 1 )) + echo $f: test $testnum failed + exit 1 + fi +done + +echo all tests passed -- cgit v1.2.3