mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
7b6d732a77
* goalc: cleanup goalc's main method and add nrepl listener socket * deps: add standalone ASIO for sockets * lint: formatting * common: make a common interface for creating a server socket * goalc: setup new repl server * deps: remove asio * goalc: debug issues, nrepl is working again * git: rename files * attempt to fix linux function call * test * scripts: make the error message even more obvious.... * goalc: make suggested changes, still can't reconnect properly * game: pull out single-client logic from XSocketServer * nrepl: supports multiple clients and disconnection/reconnects * goalc: some minor fixes for tests * goalc: save repl history when the compiler reloads * common: add include for linux networking * a few small changes to fix tests * is it the assert? * change thread start order and add a print to an assert Co-authored-by: water <awaterford111445@gmail.com>
60 lines
1.3 KiB
Bash
Executable file
60 lines
1.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "======================================="
|
|
echo "= Jak Project Offline Test ="
|
|
echo "======================================="
|
|
echo ""
|
|
echo " ================= Cloning..."
|
|
|
|
ISO_DATA_PATH=${1}
|
|
BRANCH_NAME=${2:-master}
|
|
# Provide a default location to bind the ISO_DATA_PATH
|
|
ISO_DATA_SYM_LINK_DIR=${3:-iso_data}
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "Must supply path to iso data folder!"
|
|
exit 1
|
|
fi
|
|
|
|
echo " Branch: ${BRANCH_NAME}"
|
|
mkdir project
|
|
cd project
|
|
git clone https://github.com/water111/jak-project.git
|
|
cd jak-project
|
|
git checkout $BRANCH_NAME
|
|
git submodule update --init --recursive
|
|
|
|
# create symlink to the iso_data folder.
|
|
rm -r iso_data
|
|
ln -s $ISO_DATA_PATH $ISO_DATA_SYM_LINK_DIR
|
|
|
|
|
|
mkdir build
|
|
cd build
|
|
echo " =============== Building..."
|
|
cmake ..
|
|
make -j
|
|
|
|
echo " ================ Running unit tests..."
|
|
../test.sh
|
|
|
|
echo " ================ Running offline decompiler tests..."
|
|
./offline-test
|
|
|
|
echo " ================ Decompiling..."
|
|
../scripts/shell/decomp.sh
|
|
|
|
echo " ================ Building project..."
|
|
../scripts/shell/gc.sh --cmd \(make-group\ \"iso\"\)
|
|
|
|
echo " ================ Checking assets..."
|
|
../scripts/shell/check.sh
|
|
|
|
echo " ================ Booting game..."
|
|
../scripts/shell/boot_game.sh
|
|
|
|
echo "Offline test has completed successfully!"
|