diff options
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 |