X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=test_server.sh;h=389e39ec6dbd9f51cad37e7c1e48e93cf054c9e4;hb=4e0fcab70de9aa066b0ea0d8ff9968c13564f962;hp=01e354a8dbb56db5a7e8a34a4ca47251fd8d218d;hpb=af8892db6de03733360f8ae7a3a7eb18ff6952e5;p=plomrogue
diff --git a/test_server.sh b/test_server.sh
index 01e354a..389e39e 100755
--- a/test_server.sh
+++ b/test_server.sh
@@ -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 > ./testing/log 2>&1 &
+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