diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 14:18:54 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 14:36:08 +0100 |
commit | 377822b957c442b2ff0882b8325033487037be2b (patch) | |
tree | 9d71bc239e483b9c606dc9849fd890eab02b9a5b /run_tests.sh | |
parent | 21994864559386f1d11c001d6d27714cbf624a15 (diff) |
þ -> th
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/run_tests.sh b/run_tests.sh index 3c561a7..ffa1a22 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -3,14 +3,14 @@ pass=0 fail=0 -for testfile in tests/*.bþ; do - outfile=${testfile%.bþ}.out - output="$(./bþ <$testfile 2>&1)" +for testfile in tests/*.bth; do + outfile=${testfile%.bth}.out + output="$(./bth <$testfile 2>&1)" run_res=$? echo "$output" | diff $outfile - >/dev/null diff_res=$? testname=${testfile#tests/} - testname=${testname%.bþ} + testname=${testname%.bth} case $diff_res in 0) printf '\033[32m\033[1mPASS\033[0m %s\n' "$testname" pass=$((pass + 1)) ;; |