From f19bb65e08e05c1e211610e7884394267b0757f5 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 1 Feb 2015 18:58:11 +0100 Subject: [PATCH] Add a command ./all serverbench dedicated to quickly run serverbench. --- misc/tools/all/xonotic.subr | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ;; -- 2.39.2