Skip to content

Commit

Permalink
uniform naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Jan 6, 2021
1 parent b286ea5 commit e4df1fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ _ok() {
}

_fail() {
echo "$(tput setaf 1) [FAIL] $(tput sgr0)"
echo "$1"
echo "$(tput setaf 1) [FAIL] $(tput sgr0)\n$1"
exit 1
}

Expand Down Expand Up @@ -59,13 +58,13 @@ _build_run() {
rm -f "$1.ws"
}

test_rebuild_run_single() {
_rebuild_run_single() {
_run_jit "$1"
_disasm "$1"
_build_run "$1.asm"
rm -f "$1.asm"
}

for f in tests/ws-run/*.ws; do _run_jit "$f"; done
for f in tests/ws-rebuild/*.ws; do test_rebuild_run_single "$f"; done
for f in tests/ws-rebuild/*.ws; do _rebuild_run_single "$f"; done
for f in tests/ws-build-run/*.asm; do _build_run "$f"; done

0 comments on commit e4df1fd

Please sign in to comment.