aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin@Daniels-MacBook-Air.local>2023-06-18 12:39:21 +0200
committerDaniel Gavin <danielgavin@Daniels-MacBook-Air.local>2023-06-18 12:39:21 +0200
commitaa191c9a55cec48025dbc125be4bd51d5a7545b0 (patch)
treedaa71f05aab10d92a81588b4922a9fc8b60fa527 /build.sh
parentb36ed688de204602303f40bab29359d3e984c9ed (diff)
Make sure that sliced expressions return slices.
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