From fca8388fcad12182bd0406d262c873bbce29fee5 Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Mon, 12 Jun 2023 23:14:25 +0300 Subject: Correctly set string pointer for non trivial sizes. Fixes #17. --- test/runtests.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'test/runtests.sh') diff --git a/test/runtests.sh b/test/runtests.sh index fe6b39d..600eee4 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -35,6 +35,7 @@ run_test() { machine_indented=$(printf '%-67s' "$test_name") machine_indented=${machine_indented// /.} printf "%s %s\n" "$machine_indented" "$status" + diff $answer_file $result_file done } @@ -53,6 +54,21 @@ echo "Passed / Failed: ${pass}/${fail}" total_pass=$(($total_pass + $pass)) total_fail=$(($total_fail + $fail)) +# Test cases from issues +pass=0 +fail=0 + +echo "" +echo "============================= FROM ISSUES ==============================" +for f in files/issues/*.bin; do + run_test $f +done +echo "========================================================================" +echo "Passed / Failed: ${pass}/${fail}" + +total_pass=$(($total_pass + $pass)) +total_fail=$(($total_fail + $fail)) + # Error cases tests pass=0 fail=0 @@ -90,4 +106,4 @@ echo "" echo "============================== FINAL REPORT ============================" echo "Total tests passed: $total_pass" echo "Total tests failed: $total_fail" -echo "========================================================================" \ No newline at end of file +echo "========================================================================" -- cgit v1.2.3