home · contact · privacy
Server: Split in many files, reorganize code slightly to fit change.
[plomrogue] / test_server.sh
index 8d6d7b4edfddc5c2fb64251fecf6b53932496dc9..edaca0d5d87b57813905e6f63359152cf4fccace 100755 (executable)
@@ -1,14 +1,16 @@
 #!/bin/sh
 
-./redo
+set -e
+
+./build.sh
 echo "Copying tested server script to ./tested_server.py."
-cp ./plomrogue-server.py ./testing/tested_server.py
+cp ./roguelike-server ./testing/tested_server.py
 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 plomrogue-server.py -l _test &
+python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test &
 
 echo "Waiting until ./server/in is ready for writing."
 while [ ! -e ./server/in ]