From: Rudolf Polzer Date: Sun, 1 Feb 2015 17:58:11 +0000 (+0100) Subject: Add a command ./all serverbench dedicated to quickly run serverbench. X-Git-Tag: xonotic-v0.8.1~24 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=f19bb65e08e05c1e211610e7884394267b0757f5;hp=12046baede79e34cb2554bed9f09a9e768c11cf0 Add a command ./all serverbench dedicated to quickly run serverbench. --- diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 3aa15837..6f66d62e 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -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 ;;