summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-28 11:38:52 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-28 11:38:52 -0500
commit6158873697f91216675752ca789db3924c5d0fbc (patch)
treebc7a4e38eeda5c857d88a66dd9e81556c7ccf412
parente73f1137c8cbaa38e2225b836d8b560c18fc9070 (diff)
downloadphoronix-test-suite-upstream-6158873697f91216675752ca789db3924c5d0fbc.zip
phoronix-test-suite-upstream-6158873697f91216675752ca789db3924c5d0fbc.tar.gz
phoronix-test-suite-upstream-6158873697f91216675752ca789db3924c5d0fbc.tar.xz
pts: Add build-mysql test profile for timed build of MySQL 5.1
-rw-r--r--CHANGE-LOG1
-rw-r--r--pts/test-profiles/build-mysql.xml15
-rw-r--r--pts/test-resources/build-mysql/downloads.xml9
-rwxr-xr-xpts/test-resources/build-mysql/install.sh13
-rwxr-xr-xpts/test-resources/build-mysql/post.sh4
-rw-r--r--pts/test-suites/compilation.xml3
6 files changed, 45 insertions, 0 deletions
diff --git a/CHANGE-LOG b/CHANGE-LOG
index 7e1c020..182856a 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -13,6 +13,7 @@ Phoronix Test Suite (Git)
- pts-core: Archive installation output of tests in the test's directory in file install.log
- pts: Add UXA acceleration check to GtkPerf test note reporting
- pts: Add 2d-test base profile that reports 2D acceleration mode using Cascading Test Profiles
+- pts: Add build-mysql test profile for timed build of MySQL 5.1
- pts_Graph: Tweak formatting of basic graph attributes
- bilde_renderer: Add and implement draw_polygon and draw_ellipse to drawing API
- bilde_renderer: Add support for dynamically resizing the image drawing buffer
diff --git a/pts/test-profiles/build-mysql.xml b/pts/test-profiles/build-mysql.xml
new file mode 100644
index 0000000..b4e10b3
--- /dev/null
+++ b/pts/test-profiles/build-mysql.xml
@@ -0,0 +1,15 @@
+<PhoronixTestSuite>
+ <TestProfile>
+ <Version>1.0.0</Version>
+ <Maintainer>Michael Larabel</Maintainer>
+ <EnvironmentSize>180.4</EnvironmentSize>
+ <ProjectURL>http://www.mysql.com/</ProjectURL>
+ <Extends>timed-build</Extends>
+ <SupportedPlatforms>Linux</SupportedPlatforms>
+ </TestProfile>
+ <TestInformation>
+ <Title>Timed MySQL Compilation</Title>
+ <Version>5.1.30</Version>
+ <Description>This test times how long it takes to build MySQL 5.1.</Description>
+ </TestInformation>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/build-mysql/downloads.xml b/pts/test-resources/build-mysql/downloads.xml
new file mode 100644
index 0000000..6f667a0
--- /dev/null
+++ b/pts/test-resources/build-mysql/downloads.xml
@@ -0,0 +1,9 @@
+<PhoronixTestSuite>
+ <Downloads>
+ <Package>
+ <URL>http://download.softagency.net/MySQL/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz, http://ftp.up.ac.za/pub/windows/MySQL/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz, http://lsd.linux.cz/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.30.tar.gz, http://distfiles.macports.org/mysql5/mysql-5.1.30.tar.gz</URL>
+ <MD5>b658e58887a74dce65224ae0fc8ee06a</MD5>
+ <FileSize>29050568</FileSize>
+ </Package>
+ </Downloads>
+</PhoronixTestSuite>
diff --git a/pts/test-resources/build-mysql/install.sh b/pts/test-resources/build-mysql/install.sh
new file mode 100755
index 0000000..4087965
--- /dev/null
+++ b/pts/test-resources/build-mysql/install.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+echo "#!/bin/sh
+
+rm -rf mysql-5.1.30/
+tar -xvf mysql-5.1.30.tar.gz
+cd mysql-5.1.30/
+./configure > /dev/null 2>&1
+\$TIMER_START
+make -s -j \$NUM_CPU_JOBS 2>&1
+\$TIMER_STOP" > build-mysql
+
+chmod +x build-mysql
diff --git a/pts/test-resources/build-mysql/post.sh b/pts/test-resources/build-mysql/post.sh
new file mode 100755
index 0000000..0240980
--- /dev/null
+++ b/pts/test-resources/build-mysql/post.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+cd $1
+rm -rf mysql-5.1.30/
diff --git a/pts/test-suites/compilation.xml b/pts/test-suites/compilation.xml
index bc7b93b..b314832 100644
--- a/pts/test-suites/compilation.xml
+++ b/pts/test-suites/compilation.xml
@@ -10,6 +10,9 @@
<Test>build-apache</Test>
</RunTest>
<RunTest>
+ <Test>build-mysql</Test>
+ </RunTest>
+ <RunTest>
<Test>build-php</Test>
</RunTest>
<RunTest>