This commit is contained in:
team3
2026-09-16 16:15:13 +02:00
parent b9d6b115c0
commit f1c78f66f4
17 changed files with 676 additions and 458 deletions

View File

@@ -24,12 +24,15 @@ starte logik 90
starte genau 90
starte nochmal 60
starte bots 90 2
rm -f "$TMP/code.txt"
rm -f "$TMP/code.txt" "$TMP/code2.txt"
starte mp_start:srv 200 server "$PORT"
sleep 2
# Zwei Räume auf demselben Server: die RPCs müssen je Raum getrennt bleiben.
PIRATE_DICE_SERVER="ws://127.0.0.1:$PORT" starte mp_start:host 190 host "$TMP/code.txt"
PIRATE_DICE_SERVER="ws://127.0.0.1:$PORT" starte mp_start:host2 190 host "$TMP/code2.txt"
sleep 1
PIRATE_DICE_SERVER="ws://127.0.0.1:$PORT" starte mp_start:join 190 join "$TMP/code.txt"
PIRATE_DICE_SERVER="ws://127.0.0.1:$PORT" starte mp_start:join2 190 join "$TMP/code2.txt"
# Warten, aber bei Skriptfehlern sofort abbrechen.
while :; do
@@ -49,7 +52,7 @@ done
wait 2>/dev/null
ergebnis=0
for name in logik genau nochmal bots mp_start:host mp_start:join mp_start:srv; do
for name in logik genau nochmal bots mp_start:host mp_start:join mp_start:host2 mp_start:join2 mp_start:srv; do
log="$TMP/$name.log"
echo "=== $name"
grep -E "^(OK |FEHL|SERVER:| |TEST:)" "$log"