home · contact · privacy
7DRL: Some population balancing.
[plomrogue] / test_server.sh
index d16231798161bee39538d7b24480682eb9006395..389e39ec6dbd9f51cad37e7c1e48e93cf054c9e4 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/sh
 
+./redo
+cp ./roguelike-server ./testing/tested_server
+cp ./src/server/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
+python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test &
 
 echo "Waiting until ./server/in is ready for writing."
 while [ ! -e ./server/in ]
@@ -23,5 +27,6 @@ echo "Server has quit. Here's the diff of final '_test' to reference save file"
 echo "./testing/ref_end (TEST WENT WELL IF NO LINES FOLLOW):"
 mv _test testing/last_end
 diff testing/last_end testing/ref_end
+#echo 'NODIFF'
 
 rm record__test