From: Rudolf Polzer Date: Fri, 27 Jan 2012 15:48:52 +0000 (+0100) Subject: detect a fully aborted benchmark X-Git-Tag: xonotic-v0.6.0~30^2~13 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=4efd758c59524124562c73512d02941e72de05c2;p=xonotic%2Fxonotic.git detect a fully aborted benchmark --- diff --git a/misc/tools/the-big-benchmark/the-big-benchmark.bat b/misc/tools/the-big-benchmark/the-big-benchmark.bat index d69e5c19..be832302 100644 --- a/misc/tools/the-big-benchmark/the-big-benchmark.bat +++ b/misc/tools/the-big-benchmark/the-big-benchmark.bat @@ -88,6 +88,13 @@ type data\benchmark.log >> data\the-big-benchmark.log del data\benchmark.log del data\engine.log + +if exist data\the-big-benchmark.log goto logisgood +echo. +echo The benchmark has been aborted. No log file has been written. +goto end + +:logisgood echo. echo Please provide the the following info to the Xonotic developers: echo - CPU speed diff --git a/misc/tools/the-big-benchmark/the-big-benchmark.sh b/misc/tools/the-big-benchmark/the-big-benchmark.sh index 362ad8b7..d7503fcb 100755 --- a/misc/tools/the-big-benchmark/the-big-benchmark.sh +++ b/misc/tools/the-big-benchmark/the-big-benchmark.sh @@ -69,12 +69,18 @@ for e in omg low med normal high ultra ultimate; do cat data/engine.log >> data/the-big-benchmark.log cat benchmark.log >> data/the-big-benchmark.log done -rm -f data/benchmark.log -rm -f data/engine.log if [ -f ./all ]; then ./all clean -r -f -u fi +rm -f data/benchmark.log +rm -f data/engine.log +if ! [ -f data/the-big-benchmark.log ]; then + echo + echo "The benchmark has been aborted. No log file has been written." + exit +fi + echo echo "Please provide the the following info to the Xonotic developers:" echo " - CPU speed"