aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 4a20064..644d308 100755
--- a/build.sh
+++ b/build.sh
@@ -26,6 +26,21 @@ then
#exit 1
fi
fi
+if [[ $1 == "single_test" ]]
+then
+ #BUG in odin test, it makes the executable with the same name as a folder and gets confused.
+ cd tests
+
+ odin test ../tests -collection:shared=../src -test-name:$2
+
+ if ([ $? -ne 0 ])
+ then
+ echo "Test failed"
+ exit 1
+ fi
+
+ exit 0
+fi
if [[ $1 == "test" ]]
then
@@ -40,7 +55,13 @@ then
exit 1
fi
- cd ..
+ exit 0
+fi
+if [[ $1 == "debug" ]]
+then
+ odin build src/ -collection:shared=src -out:ols -debug
+ exit 0
fi
+
odin build src/ -collection:shared=src -out:ols -o:speed