diff options
Diffstat (limited to 'test/runtests.sh')
| -rwxr-xr-x | test/runtests.sh | 18 |
1 files changed, 17 insertions, 1 deletions
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 "========================================================================" |
