Add a command ./all serverbench dedicated to quickly run serverbench.
authorRudolf Polzer <divVerent@xonotic.org>
Sun, 1 Feb 2015 17:58:11 +0000 (18:58 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 1 Feb 2015 17:58:11 +0000 (18:58 +0100)
misc/tools/all/xonotic.subr

index 3aa15837fcee39af4d5baeff43e78d056d7a249a..6f66d62e76048a755f8ca3afe7e8e4ac1e08311f 100644 (file)
@@ -356,6 +356,15 @@ case "$cmd" in
                $ECHO "  $SELF compile-map mapname1 mapname2... (e.g. \"./all compile-map dance drain fuse\")"
                handled=false
                ;;
+       serverbench)
+               # TODO(rpolzer): Why does :anticheat: output differ? Total game time differs? Why?
+               verbose "$SELF" run "$@" -noconfig -nohome +exec serverbench.cfg |\
+                       tee /dev/stderr |\
+                       grep '^:' |\
+                       grep -v '^:gamestart:' |\
+                       grep -v '^:anticheat:' |\
+                       md5sum
+               ;;
        *)
                handled=false
                ;;