Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 216656 - ebuild request: Phoronix Test Suite - a benchmarking tool with xml based benchmark definitions
Summary: ebuild request: Phoronix Test Suite - a benchmarking tool with xml based benc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.phoronix-test-suite.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 07:39 UTC by Arne Babenhauserheide
Modified: 2009-11-21 13:38 UTC (History)
16 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
quick & dirty ebuild for the phoronix-text-suite (phoronix-test-suite-0.3.1.ebuild,556 bytes, text/plain)
2008-04-21 16:44 UTC, Helmut Eberharter
Details
updated ebuild (phoronix-test-suite-0.3.1-r1.ebuild,883 bytes, text/plain)
2008-04-23 18:52 UTC, Helmut Eberharter
Details
cleaned up -r1 (phoronix-test-suite-0.3.1-r2.ebuild,778 bytes, text/plain)
2008-04-23 18:55 UTC, Helmut Eberharter
Details
New version + ebuild enhancements (phoronix-test-suite-0.4.0.ebuild,719 bytes, text/plain)
2008-04-25 12:34 UTC, Bernard Cafarelli
Details
Saner install locations (phoronix-test-suite-0.4.0.ebuild,908 bytes, text/plain)
2008-04-25 14:54 UTC, Kai Huuhko
Details
new and updated ebuild (phoronix-test-suite-0.9.0.ebuild,1.08 KB, text/plain)
2008-06-01 14:05 UTC, Nils Kneuper
Details
new version of 0.9.0 ebuild (phoronix-test-suite-0.9.0.ebuild,1.19 KB, text/plain)
2008-06-01 14:50 UTC, Nils Kneuper
Details
git ebuild of phoronix-test-suite (phoronix-test-suite-999.ebuild,976 bytes, text/plain)
2008-06-01 14:52 UTC, Nils Kneuper
Details
new version of ebuild to fix location of launch-browser.sh (phoronix-test-suite-999.ebuild,989 bytes, text/plain)
2008-06-01 21:13 UTC, Nils Kneuper
Details
updated git ebuild (phoronix-test-suite-999.ebuild,2.50 KB, text/plain)
2008-06-06 16:22 UTC, Nils Kneuper
Details
1.0.0 release of PTS (phoronix-test-suite-1.0.0.ebuild,2.73 KB, text/plain)
2008-06-06 16:24 UTC, Nils Kneuper
Details
1.0.1 release of PTS (phoronix-test-suite-1.0.1.ebuild,3.23 KB, text/plain)
2008-06-28 15:15 UTC, Nils Kneuper
Details
updated git ebuild (phoronix-test-suite-999.ebuild,3.00 KB, text/plain)
2008-06-28 15:17 UTC, Nils Kneuper
Details
updated git ebuild for trondheim-12 series (phoronix-test-suite-999.ebuild,3.90 KB, text/plain)
2008-08-06 15:30 UTC, Nils Kneuper
Details
1.2.2 release of PTS (phoronix-test-suite-1.2.2.ebuild,4.18 KB, text/plain)
2008-09-21 17:05 UTC, Nils Kneuper
Details
updated git ebuild for post 1.2.2 git master (phoronix-test-suite-999.ebuild,4.01 KB, text/plain)
2008-09-21 17:09 UTC, Nils Kneuper
Details
app-benchmarks/phoronix-test-suite-1.4.2.ebuild (phoronix-test-suite-1.4.2.ebuild,3.53 KB, text/plain)
2009-01-09 16:02 UTC, juantxorena@gmail.com
Details
phoronix-test-suite-1.4.2-dl.patch (phoronix-test-suite-1.4.2-dl.patch,20.37 KB, patch)
2009-01-09 16:04 UTC, juantxorena@gmail.com
Details | Diff
phoronix-test-suite-1.4.2-libs.patch (phoronix-test-suite-1.4.2-libs.patch,2.04 KB, patch)
2009-01-09 16:06 UTC, juantxorena@gmail.com
Details | Diff
git ebuild for pts master as of 2009-01-09 (phoronix-test-suite-999.ebuild,3.28 KB, text/plain)
2009-01-09 16:21 UTC, Nils Kneuper
Details
phoronix-test-suite-1.8.1.ebuild w/ support for paludis and pkgcore (via useflags) (phoronix-test-suite-1.8.1.ebuild,1.51 KB, text/plain)
2009-07-19 12:34 UTC, Nico R. Wohlgemuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2008-04-07 07:39:12 UTC
The phoronix test suite is a testing environment for linux based systems. 

According to the developers, it only requires php cli. 

It offers a cli interface and benchmark definitions in xml, which can be easily shared in a global database and compared to other results. 

Reproducible: Always




- Downloads: http://www.phoronix-test-suite.com/?k=downloads
- Article describing the PTS: http://www.phoronix.com/scan.php?page=article&item=phoronix_pts
Comment 1 Helmut Eberharter 2008-04-21 16:44:43 UTC
Created attachment 150511 [details]
quick & dirty ebuild for the phoronix-text-suite

Hacked together this ebuild, I think it needs improvement to become a mature ebuild (did this the hmm.. 3rd? time), but it works. Installs the suite unter /usr/local.
Comment 2 Helmut Eberharter 2008-04-21 16:47:42 UTC
(In reply to comment #1)
> ...needs improvement to become a mature

almost fogot that: the src_install isn't very straight forward, if anybody who knows how to write ebuild get on this: is there any simpler way to install some files to (e.g.) /usr/local/?
Comment 3 Bernd Steinhauser 2008-04-23 11:35:07 UTC
(In reply to comment #1)
> Created an attachment (id=150511) [edit]
> quick & dirty ebuild for the phoronix-text-suite
> 
> Hacked together this ebuild, I think it needs improvement to become a mature
> ebuild (did this the hmm.. 3rd? time), but it works. Installs the suite unter
> /usr/local.
> 
I won't provide a corrected ebuild, just a few comments.
- You should do a check, if php has been compiled with the use flag "posix".
- Don't add unneeded functions (remove the src_unpack)
- Don't install to /usr/local, this directory is for stuff the user wants to install by hand, the package manager should install to /usr, or, in the case of binary or proprietary stuff, to /opt.
- Use insinto and doins -r

Comment 4 Helmut Eberharter 2008-04-23 18:52:10 UTC
Created attachment 150733 [details]
updated ebuild

honored the suggestions by bernd-steinhauser
new install-dir: /usr/share/phoronix-test-suite
Comment 5 Helmut Eberharter 2008-04-23 18:55:24 UTC
Created attachment 150735 [details]
cleaned up -r1

forgot to uncomment some lines. removed them.
Comment 6 Bernard Cafarelli gentoo-dev 2008-04-25 12:34:18 UTC
Created attachment 150947 [details]
New version  + ebuild enhancements

Some cleanups in the ebuild:
* PHP deps are checked with the help of depend.php eclass
* this needs PHP with bcmath USE flag, and sys-process/time
* added a wrapper in /usr/bin

I'm still not happy with the doins/fperms part though... If I find time, I may work on this one more, but for now attaching it to this bug

ps: anyone motivated in adding Gentoo to their "PTS External Dependencies" systems list?
Comment 7 Kai Huuhko 2008-04-25 14:54:43 UTC
Created attachment 150956 [details]
Saner install locations

Here's my version of it, the main script is installed into /usr/bin.
Comment 8 konrad okurowski 2008-05-02 09:20:37 UTC
The latest version of the Phoronix Test Suite is v0.5.0 (May 1, 2008). 
Changing ebuild version is just enough :)
Comment 9 Nils Kneuper 2008-06-01 14:05:12 UTC
Created attachment 155101 [details]
new and updated ebuild

Okay, updated the ebuild a little to accomodate the stuff needed with more recent versions. These are the changes:

* useflag gd is now required for php
* since 0.4.0 useflag bcmath is not required for php
* since 0.5.0 useflag posix is not required for php
* add arch ~amd64, other archs should be possible, too, but need a test first
* add a FIXME for a new download url which would utilize existing mirrors, the new url is not in use, if someone knows the portage magic, please fix this

This build is mean for the latest 0.9.0 release but should also work for the upcoming 1.0 release (planned for "very soon").
Comment 10 Nils Kneuper 2008-06-01 14:50:51 UTC
Created attachment 155103 [details]
new version of 0.9.0 ebuild

* added some more comment
* removed dodoc for files that don't exist in newer versions

Would be great if someone knowing portage could have a look at the TODO items.
Comment 11 Nils Kneuper 2008-06-01 14:52:59 UTC
Created attachment 155105 [details]
git ebuild of phoronix-test-suite

This ebuild is for the git version of PTS. It currently shares the TODO about documentation with the 0.9.0 ebuild but beside this should be completely usable.
Comment 12 Nils Kneuper 2008-06-01 21:13:09 UTC
Created attachment 155161 [details]
new version of ebuild to fix location of launch-browser.sh

pts/launch-browser.sh was just moved to pts-core/scripts/launch-browser.sh in git master. This change will have to be done to the 0.9.0 ebuild, too, once 1.0 is released.
Comment 13 Harrison Metzger 2008-06-04 21:43:07 UTC
I have used the 0.9.0 ebuild to build PTS 0.9. The build went fine, pulled in all the deps. In addition, I ran some tests which all ran fine on my AMD64 platform. I noticed that some tests require libraries which may not be installed. In the ubuntu version, it spawns an apt-get session to pull them in. I'm wondering if it would be possible for it to in gentoo spawn an su -c 'emerge $the_deps_it_needs' or something similar to pull them in.

None the less, what does it take to add an ebuild to the main portage collection and unmask it from the ~amd64 (and I guess ~x86) keywords. This is a pretty popular program and I'm sure many gentoo users would love to benchmark their platform to show off their speed to their friends ;)
Comment 14 Nils Kneuper 2008-06-06 16:22:03 UTC
Created attachment 155733 [details]
updated git ebuild

* Added a useflag ("get-all-deps") which will ensure that all deps that are required for some of the tests get installed.
* Added a log message at the end showing all other deps that might be needed for some tests. If the useflag "get-all-deps" is active, this log message will not be shown.

The solution is probably one of the more hacky ones, but it should work...
Comment 15 Nils Kneuper 2008-06-06 16:24:01 UTC
Created attachment 155735 [details]
1.0.0 release of PTS

* Version bump to 1.0.0.
* Correct path for launch-browser.sh to have it marked executable.
* Added a useflag ("get-all-deps") which will ensure that all deps that are required for some of the tests get installed.
* Added a log message at the end showing all other deps that might be needed for some tests. If the useflag "get-all-deps" is active, this log message will not be shown.

The solution for dependencies is one of the more hacky ones, but it should work...
Comment 16 Nils Kneuper 2008-06-28 15:15:15 UTC
Created attachment 158751 [details]
1.0.1 release of PTS 

* Version bump to 1.0.1.
* Correct path for launch-browser.sh to have it marked executable.
* Extended the info at the end installing PTS to mention that PTS can now automatically install packages for gentoo.
Comment 17 Nils Kneuper 2008-06-28 15:17:07 UTC
Created attachment 158753 [details]
updated git ebuild 

* Extended the info at the end installing PTS to mention that PTS can now
automatically install packages for gentoo.
* added the new dependency check for the upcoming 1.2 release of PTS (useflag 'pcntl' for php)
* all install*.sh are now executable
Comment 18 Nils Kneuper 2008-08-06 15:30:37 UTC
Created attachment 162366 [details]
updated git ebuild for trondheim-12 series

Changes in this version:
* explicitly use master branch (trondheim-12 is merged into it now)
* add all latest dependencies
* add the amd64 marker since this arch works

For get-all-deps you will currently need to unmask media-libs/freeimage. A good solution for this is getting the ebuild from bug #213969 and simply use this version since it seems to be fine. Just unmask it in /etc/portage/package.unmask and that's it.
Comment 19 steffen stramm 2008-08-15 15:34:24 UTC
the 1.0.1 ebuild can be bumped to 1.0.5... works fine here
Comment 20 Nils Kneuper 2008-09-21 17:05:59 UTC
Created attachment 166002 [details]
1.2.2 release of PTS

updated ebuild to match the latest PTS release
Comment 21 Nils Kneuper 2008-09-21 17:09:36 UTC
Created attachment 166004 [details]
updated git ebuild for post 1.2.2 git master
Comment 22 JTRiley 2008-10-05 20:53:51 UTC
(In reply to comment #20)
> Created an attachment (id=166002) [edit]
> 1.2.2 release of PTS
> 
> updated ebuild to match the latest PTS release
> 

This ebuild works for me on ~amd64 w/ 2007.0 profile.  I must say, this is an extremely impressive benchmark suite...definitely belongs in app-benchmark imo.

~jtriley
Comment 23 Nils Kneuper 2008-11-08 13:55:22 UTC
To update to PTS 1.4, just rename the ebuild "phoronix-test-suite-1.2.2.ebuild" to "phoronix-test-suite-1.4.0.ebuild" and that's it.
Comment 24 juantxorena@gmail.com 2009-01-09 16:02:53 UTC
Created attachment 177885 [details]
app-benchmarks/phoronix-test-suite-1.4.2.ebuild

Ebuild for 1.4.2. Updated dependencies using EAPI=1, fix a permision problem with some test and use a couple of patches.
Comment 25 juantxorena@gmail.com 2009-01-09 16:04:25 UTC
Created attachment 177887 [details, diff]
phoronix-test-suite-1.4.2-dl.patch

This patch fixes some URLs that didn't work because they are dead or changed. Is a big patch, >20kb.
Comment 26 juantxorena@gmail.com 2009-01-09 16:06:21 UTC
Created attachment 177888 [details, diff]
phoronix-test-suite-1.4.2-libs.patch

Another patch, this one fixes some hardcoded paths for some libs that caused things like trying to re-emerge openal.
Comment 27 Nils Kneuper 2009-01-09 16:21:09 UTC
Created attachment 177892 [details]
git ebuild for pts master as of 2009-01-09

Thanks Juan Aguado for your changes. I also applied those to the git ebuild.
Comment 28 Bernard Cafarelli gentoo-dev 2009-04-20 08:51:29 UTC
*phoronix-test-suite-1.8.0 (19 Apr 2009)

  19 Apr 2009; Doug Goldstein <cardoe@gentoo.org>
  +phoronix-test-suite-1.8.0.ebuild:
  add developmental ebuild

Enjoy!
Comment 29 Nils Kneuper 2009-04-23 12:27:47 UTC
What about x86 arch (so far the ebuild is ~amd64 only)? Anything speaking against adding this one?
Comment 30 Nico R. Wohlgemuth 2009-07-19 12:34:58 UTC
Created attachment 198466 [details]
phoronix-test-suite-1.8.1.ebuild w/ support for paludis and pkgcore (via useflags)

I have added phoronix-test-suite-1.8.1 with support for paludis and pkgcore (via useflags) to ::devnull, ebuild is attached.
Comment 31 Nico R. Wohlgemuth 2009-08-04 14:54:19 UTC
2.0.0 is released.