From 38329ebbb4971414d1e894a35a680ed81e0bae5d Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 6 Feb 2016 00:58:54 +0100 Subject: [PATCH] Update testing script. --- test_server.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 -- 2.30.2