From: Christian Heller Date: Fri, 5 Feb 2016 23:58:54 +0000 (+0100) Subject: Update testing script. X-Git-Tag: tce~206 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/day?a=commitdiff_plain;h=38329ebbb4971414d1e894a35a680ed81e0bae5d;p=plomrogue Update testing script. --- diff --git a/test_server.sh b/test_server.sh index edaca0d..5a5b77e 100755 --- a/test_server.sh +++ b/test_server.sh @@ -3,26 +3,27 @@ set -e ./build.sh -echo "Copying tested server script to ./tested_server.py." +echo "Copying tested server to ./testing/tested_server.py and ./testing/server." cp ./roguelike-server ./testing/tested_server.py +cp -R ./server ./testing/ echo "Copying tested C library source to ./tested_server_lib.c." -cp .libplomrogue.c ./testing/tested_server_lib.c +cp ./libplomrogue.c ./testing/tested_server_lib.c cp ./testing/start _test echo "Starting server on save file '_test' copied from ./testing/start." python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test & echo "Waiting until ./server/in is ready for writing." -while [ ! -e ./server/in ] +while [ ! -e ./server_run/in ] do sleep 0.1 done echo "Catting ./testing/run into ./server/in." -cat ./testing/run >> server/in +cat ./testing/run >> server_run/in echo "Waiting until server has quit (i.e. ./server/in has disappeared)." -while [ -e ./server/in ] +while [ -e ./server_run/in ] do sleep 1 done