summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-29 18:42:08 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-29 18:42:08 -0400
commit2dc2b9e65e4c9e4872642bb4224764b5ad1c9272 (patch)
tree7a1812bb60f8e801f6a44f995df21527f6328265
parent245ca4c5a1fb4c84fbe4ff6b4ec8ac6d2b4ff2db (diff)
downloadphoronix-test-suite-upstream-2dc2b9e65e4c9e4872642bb4224764b5ad1c9272.tar.gz
phoronix-test-suite-upstream-2dc2b9e65e4c9e4872642bb4224764b5ad1c9272.tar.xz
phoronix-test-suite-upstream-2dc2b9e65e4c9e4872642bb4224764b5ad1c9272.zip
pts: Add ppracer test profile for Planet Penguin Racer
-rw-r--r--pts/test-profiles/ppracer.xml35
-rw-r--r--pts/test-resources/ppracer/downloads.xml12
-rwxr-xr-xpts/test-resources/ppracer/install.sh81
-rw-r--r--pts/test-resources/ppracer/parse-results.php5
4 files changed, 133 insertions, 0 deletions
diff --git a/pts/test-profiles/ppracer.xml b/pts/test-profiles/ppracer.xml
new file mode 100644
index 0000000..c3afa63
--- /dev/null
+++ b/pts/test-profiles/ppracer.xml
@@ -0,0 +1,35 @@
+<PhoronixTestSuite>
+ <TestProfile>
+ <Version>1.0.0</Version>
+ <TestType>Graphics</TestType>
+ <SoftwareType>Utility</SoftwareType>
+ <License>FREE</License>
+ <Status>VERIFIED</Status>
+ <Maintainer>Michael Larabel</Maintainer>
+ <DownloadSize>15.0</DownloadSize>
+ <EnvironmentSize>23.3</EnvironmentSize>
+ <SupportedArchitectures>x86</SupportedArchitectures>
+ <ProjectURL>http://developer.berlios.de/projects/ppracer/</ProjectURL>
+ </TestProfile>
+ <TestInformation>
+ <Title>Planet Penguin Racer</Title>
+ <Version>0.5 Alpha</Version>
+ <ExternalDependencies>build-utilities, glut, sdl-development, libpng-development</ExternalDependencies>
+ <TimesToRun>3</TimesToRun>
+ <ResultScale>Average FPS</ResultScale>
+ <Proportion>HIB</Proportion>
+ <Description>This test runs the open-source Planet Penguin Racer game as an OpenGL benchmark.</Description>
+ </TestInformation>
+ <TestSettings>
+ <Option>
+ <DisplayName>Resolution</DisplayName>
+ <Identifier>auto-resolution</Identifier>
+ <Menu>
+ <Entry>
+ <Name>$VIDEO_WIDTH x $VIDEO_HEIGHT</Name>
+ <Value>$VIDEO_WIDTH $VIDEO_HEIGHT</Value>
+ </Entry>
+ </Menu>
+ </Option>
+ </TestSettings>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/ppracer/downloads.xml b/pts/test-resources/ppracer/downloads.xml
new file mode 100644
index 0000000..536a2b2
--- /dev/null
+++ b/pts/test-resources/ppracer/downloads.xml
@@ -0,0 +1,12 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://download.berlios.de/ppracer/ppracer-data-0.2.3.tar.bz2, http://download2.berlios.de/ppracer/ppracer-data-0.2.3.tar.bz2</URL>
+ <MD5>a0b3f40b2d875a5578a1605c6b6ecfed</MD5>
+ </Package>
+ <Package>
+ <URL>http://download.berlios.de/ppracer/ppracer-0.5alpha.tar.bz2, http://download2.berlios.de/ppracer/ppracer-0.5alpha.tar.bz2</URL>
+ <MD5>f1e2821676906cc827796558c7d45907</MD5>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/ppracer/install.sh b/pts/test-resources/ppracer/install.sh
new file mode 100755
index 0000000..c30e1b7
--- /dev/null
+++ b/pts/test-resources/ppracer/install.sh
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+THIS_DIR=$(pwd)
+mkdir $THIS_DIR/ppracer_
+
+tar -jxvf ppracer-data-0.2.3.tar.bz2
+tar -jxvf ppracer-0.5alpha.tar.bz2
+
+cd ppracer-0.5alpha/
+sed 's/RacingMode::RacingMode()/RacingMode()/' src/racingmode.h > racingmode.h
+mv -f racingmode.h src/racingmode.h
+
+./configure --prefix=$THIS_DIR/ppracer_
+make
+make install
+cd ..
+rm -rf ppracer-0.5alpha/
+
+cd ppracer-data-0.2.3/
+mv * ../ppracer_/share/ppracer/
+cd ..
+rm -rf ppracer-data-0.2.3/
+
+echo "#!/bin/sh
+THIS_DIR=\$(pwd)
+
+echo \"ppconfig <- {
+audio_format_mode = 1,
+display_course_percentage = true,
+ui_snow = true,
+disable_fog = false,
+write_diagnostic_log = false,
+terrain_error_scale = 0.20000000298023,
+joystick_paddle_button = 0,
+joystick_x_axis = 0,
+x_resolution_half_width = false,
+track_marks = true,
+bpp_mode = 0,
+texture_filter = 5,
+disable_collision_detection = false,
+tux_shadow_sphere_divisions = 3,
+jump_key = 101,
+ui_language = \\\"en_GB\\\",
+forward_clip_distance = 120,
+backward_clip_distance = 20,
+jump_key2 = 99,
+y_resolution = \$2,
+joystick_y_axis = 1,
+music_enabled = false,
+reset_key2 = 118,
+terrain_envmap = true,
+x_resolution = \$1,
+course_detail_level = 150,
+always_save_event_race_data = false,
+view_mode2 = 1,
+use_cva = true,
+stencil_buffer = true,
+do_intro_animation = true,
+audio_stereo = true,
+enable_fsaa = true,
+data_dir = \\\"\$THIS_DIR/ppracer_/share/ppracer\\\",
+terrain_blending = true,
+disable_videomode_autodetection = false,
+fullscreen = true,
+audio_freq_mode = 2,
+fov = 90,
+joystick_brake_button = 2,
+draw_particles = true,
+view_mode = 1,
+sound_enabled = false,
+no_audio = true,
+disable_joystick = false,
+draw_tux_shadow = true,
+multisamples = 2,
+display_fps = true,
+tux_sphere_divisions = 15,
+};\" > pts-config.nut
+
+cd ppracer_/bin/
+./ppracer -c $THIS_DIR/pts-config.nut -a -f events/herring_run/snow_valley 2>&1" > ppracer
+chmod +x ppracer
diff --git a/pts/test-resources/ppracer/parse-results.php b/pts/test-resources/ppracer/parse-results.php
new file mode 100644
index 0000000..00241a7
--- /dev/null
+++ b/pts/test-resources/ppracer/parse-results.php
@@ -0,0 +1,5 @@
+<?php
+
+$BENCHMARK_RESULTS = substr($argv[1], strrpos($argv[1], "Average FPS:") + 13);
+echo trim(substr($BENCHMARK_RESULTS, 0, strpos($BENCHMARK_RESULTS, "\n")));
+?>