diff options
| author | Daniel Gavin <danielgavin@Daniels-MacBook-Air.local> | 2023-06-18 12:39:21 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin@Daniels-MacBook-Air.local> | 2023-06-18 12:39:21 +0200 |
| commit | aa191c9a55cec48025dbc125be4bd51d5a7545b0 (patch) | |
| tree | daa71f05aab10d92a81588b4922a9fc8b60fa527 /build.sh | |
| parent | b36ed688de204602303f40bab29359d3e984c9ed (diff) | |
Make sure that sliced expressions return slices.
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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 |