summaryrefslogtreecommitdiff
path: root/tests/run.sh
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-15 17:27:21 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-15 17:27:21 -0400
commit7b009880ad7a4182d3fa8d84468526d0d30d8844 (patch)
tree97b28d976e8486d60d0b5c3b7447891dde709309 /tests/run.sh
parente25b738656928b38781458ed85880e8ae7bdd5a6 (diff)
Slightly better function call
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh
new file mode 100755
index 0000000..136dac1
--- /dev/null
+++ b/tests/run.sh
@@ -0,0 +1,9 @@
+#!/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
+