diff options
-rw-r--r-- | test_options.sh.sample | 3 | ||||
-rw-r--r-- | tests.d/mesa/xonotic.test | 24 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test_options.sh.sample b/test_options.sh.sample index d219214..315122d 100644 --- a/test_options.sh.sample +++ b/test_options.sh.sample @@ -84,3 +84,6 @@ CAIRO_DEMOS=/opt/benchmarks/cairo-demos # xf86-video-intel setting XF86_VIDEO_INTEL=/opt/benchmarks/xf86-video-intel + +# Xonotic +XONOTIC_FOLDER=/usr/bin
\ No newline at end of file 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 |