From e13803024338a94ea87ac6c710ff7615f6e3647f Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 8 Feb 2020 21:31:45 +0100 Subject: phoronix-test-suite: enable known good build tests Signed-off-by: Denis 'GNUtoo' Carikli --- libre/phoronix-test-suite/PKGBUILD | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'libre/phoronix-test-suite') diff --git a/libre/phoronix-test-suite/PKGBUILD b/libre/phoronix-test-suite/PKGBUILD index 5afa25e1a..eed63d29c 100644 --- a/libre/phoronix-test-suite/PKGBUILD +++ b/libre/phoronix-test-suite/PKGBUILD @@ -6,6 +6,7 @@ pkgname=phoronix-test-suite pkgver=9.2.1 pkgrel=1 +pkgrel+=.par1 pkgdesc="The most comprehensive testing and benchmarking platform available for Linux without the nonfree tests" arch=(any) license=(GPL3) @@ -28,12 +29,36 @@ sha256sums=('28acbcb6c5b8eb27c20329cd1a5ea3f1a27abb69812c4b1eeade4b91c89fc7d8' 'SKIP') options=(!strip) +test_profiles=('build-apache-1.5.1' + 'build-eigen-1.0.0' + 'build-gcc-1.1.2' + 'build-llvm-1.1.0' + 'build-php-1.4.0') + +# Issues: +# build-firefox: source code not FSDG compliant +# build-imagemagick: TODO: rebuild the tarball from official source code +# build-linux-kernel: source code not FSDG compliant +# build-mplayer: TODO: make sure that it doesn't build with FAAC +# build-webkitfltk: TODO: review the project source code + prepare() { cd "$srcdir/$pkgname-$pkgver" patch phoronix-test-suite -i "${srcdir}/phoronix-test-suite-launcher.patch" patch -p1 -i "${srcdir}/0001-Don-t-download-online-tests.patch" - # Remove cached data from openbenchmarking that might include nonfree tests - rm -rf ob-cache/ + # Only keep tests that meet the following requirements: + # - No dependencies on nonfree software + # - No binaries + # - Source comming from official projects potentially with additional patches + # to be able to understand what was changed. + mkdir -p ob-cache_/test-profiles/pts/ + for p in ${test_profiles[@]} ; do + # Local works with the current patch + # TODO: make it appear under pts + mv ob-cache/test-profiles/pts/${p} ob-cache_/test-profiles/local/ + done + rm -rf ob-cache + mv ob-cache_ ob-cache } package() { -- cgit v1.2.3