diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-28 15:18:15 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-28 15:18:15 -0400 |
commit | 670a9729fdd425c1b920f8af1c582dfeceb9e721 (patch) | |
tree | 2f86fc482e2f65718774add9477cf0c3b7ba8808 /tests/run.sh | |
parent | 45762bced35335cdb4d51f65cef6d405b88b252a (diff) |
Change run script to test all
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-x | tests/run.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/run.sh b/tests/run.sh index 136dac1..0fbb196 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -1,9 +1,13 @@ #!/bin/bash -mkdir -p ./out/artifact -filename=$1 -filename="${filename%.*}" -../ctc $1 out/artifact/$filename.asm -nasm -f elf64 -o ./out/artifact/$filename.o ./out/artifact/$filename.asm -gcc -o ./out/$filename ./out/artifact/$filename.o +make + +for i in out/*.out; do + ./$i + if [[ $? -ne 69 ]]; then + echo "[FAILED] $i" + else + echo "[ OK ] $i" + fi +done |