From 6158873697f91216675752ca789db3924c5d0fbc Mon Sep 17 00:00:00 2001 From: Michael Larabel Date: Sun, 28 Dec 2008 11:38:52 -0500 Subject: pts: Add build-mysql test profile for timed build of MySQL 5.1 --- CHANGE-LOG | 1 + pts/test-profiles/build-mysql.xml | 15 +++++++++++++++ pts/test-resources/build-mysql/downloads.xml | 9 +++++++++ pts/test-resources/build-mysql/install.sh | 13 +++++++++++++ pts/test-resources/build-mysql/post.sh | 4 ++++ pts/test-suites/compilation.xml | 3 +++ 6 files changed, 45 insertions(+) create mode 100644 pts/test-profiles/build-mysql.xml create mode 100644 pts/test-resources/build-mysql/downloads.xml create mode 100755 pts/test-resources/build-mysql/install.sh create mode 100755 pts/test-resources/build-mysql/post.sh 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 @@ + + + 1.0.0 + Michael Larabel + 180.4 + http://www.mysql.com/ + timed-build + Linux + + + Timed MySQL Compilation + 5.1.30 + This test times how long it takes to build MySQL 5.1. + + 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 @@ + + + + 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 + b658e58887a74dce65224ae0fc8ee06a + 29050568 + + + 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 @@ -9,6 +9,9 @@ build-apache + + build-mysql + build-php -- cgit