diff options
Diffstat (limited to 'tests.d/mesa/xonotic.test')
-rw-r--r-- | tests.d/mesa/xonotic.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests.d/mesa/xonotic.test b/tests.d/mesa/xonotic.test new file mode 100644 index 0000000..8069463 --- /dev/null +++ b/tests.d/mesa/xonotic.test @@ -0,0 +1,24 @@ +test -e "$XONOTIC_FOLDER/xonotic-sdl" || return 1 + +# 1 argument: $rounds +__xonotic__() { + # 10510 frames 24.7782191 seconds 424.1628480 fps, one-second fps min/avg/max: 57 1352 7027 (336 seconds) + local unbuf="stdbuf -oL" + local extract_fps="egrep -e '[0-9]+ frames' | cut -d ' ' -f 5 2> /dev/null" + + for (( c=0; c<$1; c++ )) + do + vblank_mode=0 $unbuf taskset 1 \ + $XONOTIC_FOLDER/xonotic-sdl -benchmark demos/the-big-keybench | eval $extract_fps + done +} + +# 3 arguments: $rounds $fps_logs_file $runID +test_name="$test_name xonotic" +eval "xonotic_run() { __xonotic__ \$1; }" + +# 3 arguments: $rounds $fps_logs_file $runID +test_name="$test_name xonotic:cpu" +eval "xonotic:cpu_run() { INTEL_NO_HW=1 __xonotic__ \$1; }" + +test_exec_time=80
\ No newline at end of file |