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
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.
(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/?
(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
Created attachment 150733 [details] updated ebuild honored the suggestions by bernd-steinhauser new install-dir: /usr/share/phoronix-test-suite
Created attachment 150735 [details] cleaned up -r1 forgot to uncomment some lines. removed them.
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?
Created attachment 150956 [details] Saner install locations Here's my version of it, the main script is installed into /usr/bin.
The latest version of the Phoronix Test Suite is v0.5.0 (May 1, 2008). Changing ebuild version is just enough :)
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").
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.
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.
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.
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 ;)
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...
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...
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.
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
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.
the 1.0.1 ebuild can be bumped to 1.0.5... works fine here
Created attachment 166002 [details] 1.2.2 release of PTS updated ebuild to match the latest PTS release
Created attachment 166004 [details] updated git ebuild for post 1.2.2 git master
(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
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.
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.
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.
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.
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.
*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!
What about x86 arch (so far the ebuild is ~amd64 only)? Anything speaking against adding this one?
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.
2.0.0 is released.