summaryrefslogtreecommitdiff
path: root/tests/run.sh
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-17 02:37:39 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-17 02:37:39 -0400
commitd618ab0fb5e083dd9880f22b7bdc43be4a3c0327 (patch)
tree59548909be587a96b02f023e16dbf56b288c082e /tests/run.sh
parent9385eaa149fae5d3c793f154611518342b7f3e9e (diff)
parentf80bb4fd79f27210b606966c421ff3104ad0c959 (diff)
Merge branch 'main' of git.cshift.net:CircleShift/ctc
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
+