gs_test/tests/build_tests.sh

22 lines
384 B
Bash
Raw Normal View History

2023-11-10 20:47:11 +00:00
#!/bin/bash
ROOT_DIR=$(dirname BASH_SOURCE[0])/../
IMPORT_DIR=$ROOT_DIR/../
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
JAI=jai-linux
elif [[ "$OSTYPE" == "darwin"* ]]; then
JAI=jai-macos
else
JAI=jai
fi
$JAI -import_dir "${IMPORT_DIR}" ./basic_build.jai
COMPILED=$?
if [ $COMPILED -ne 0 ]; then
echo "Building Tests Failed"
exit 1
fi
chmod +x ./tests_out/run_all_tests.sh