From patchwork Tue Apr 26 03:53:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 38899 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6FFA227BBEA; Tue, 26 Apr 2022 04:55:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DC90C27BBE9 for ; Tue, 26 Apr 2022 04:55:17 +0100 (BST) Received: from localhost ([::1]:60674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njCIH-0000BL-1X for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 23:55:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njCI3-0000B8-A4 for guix-patches@gnu.org; Mon, 25 Apr 2022 23:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njCI3-0008DC-1I for guix-patches@gnu.org; Mon, 25 Apr 2022 23:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njCI2-000214-Sf for guix-patches@gnu.org; Mon, 25 Apr 2022 23:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55118] [PATCH] gnu: Add phoronix-test-suite. Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Apr 2022 03:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55118 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55118@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.16509452577668 (code B ref -1); Tue, 26 Apr 2022 03:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Apr 2022 03:54:17 +0000 Received: from localhost ([127.0.0.1]:36559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njCHJ-0001zb-45 for submit@debbugs.gnu.org; Mon, 25 Apr 2022 23:54:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njCHE-0001zS-Pf for submit@debbugs.gnu.org; Mon, 25 Apr 2022 23:54:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njCHE-00009A-Hg for guix-patches@gnu.org; Mon, 25 Apr 2022 23:54:12 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:15555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njCH9-0008AK-QC for guix-patches@gnu.org; Mon, 25 Apr 2022 23:54:12 -0400 Date: Tue, 26 Apr 2022 03:53:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1650945245; bh=geW0exy9Lug0Tm+akWMtMi7s1pagU7RpXAFVNpciWgA=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=cmH2VkK4LeWDPz/RFUFal+PkDvgrFHCOFcDX65ffUcehl0634iIL4yDdggUZIegPl PapnPsHiGHoDN2yXtOUxlbSkySlYnxpFIOkbQ6OjUgdAeQou9wNtNqtxwJFmOtSm8B p/bLOn7dimeDSdqy62tAZZi1Uqs4m24yg1dhlOThnSbImayfBr9F7WJufFl6CqDO98 LDI8/81cvZzwHXhTZhzCnbOjCsokGnDSJysCfuXqnmXRLkRivnkrTJRs4l5nkDSbUI fpZkGebXR/dRw2dFaRp1Z1mEnrLucZXv3w8IwRnnzaeQvgesvew/gRZUdlPJAsFByo uY/LeFlxXwu1A== Message-ID: Feedback-ID: 14143818:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.16; envelope-from=phodina@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi, I've packaged Phoronix test suite. Hopefully all inputs are wrapped. ---- Petr From 7af9ee1fe5ca48b15156c591d5d6d77ac64ff2bc Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 26 Apr 2022 05:48:11 +0200 Subject: [PATCH] gnu: Add phoronix-test-suite. * gnu/packages/benchmark.scm (phoronix-test-suite): New variable. diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm index ce137d845e..ee51d0cd83 100644 --- a/gnu/packages/benchmark.scm +++ b/gnu/packages/benchmark.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2020 Greg Hogan ;;; Copyright © 2021 Arun Isaac +;;; Copyright © 2022 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,14 +35,17 @@ (define-module (gnu packages benchmark) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages c) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages databases) #:use-module (gnu packages docbook) @@ -51,6 +55,7 @@ (define-module (gnu packages benchmark) #:use-module (gnu packages mpi) #:use-module (gnu packages opencl) #:use-module (gnu packages perl) + #:use-module (gnu packages php) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-science) @@ -262,6 +267,77 @@ (define-public bonnie++ file metadata operations that can be performed per second.") (license license:gpl2))) ;GPL 2 only, see copyright.txt +(define-public phoronix-test-suite + (package + (name "phoronix-test-suite") + (version "10.8.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/phoronix-test-suite/phoronix-test-suite") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1q509piv5r8lkx82n9qgma19wd01f5ihy1ks1604865fwah1jg19")))) + (build-system copy-build-system) + (arguments + (let ((pts "pts-core/external-test-dependencies") + (usr (string-append "usr/share/phoronix-test-suite/" + "pts-core/external-test-dependencies"))) + (list #:install-plan + #~`((,(string-append #$pts + "/dependency-handlers/arch_dependency_handler.php") + ,(string-append #$usr + "/dependency-handlers/arch_dependency_handler.php")) + (,(string-append #$pts "/scripts/install-arch-packages.sh") + ,(string-append #$usr "/scripts/install-arch-packages.sh")) + (,(string-append #$pts "/xml/arch-packages.xml") + ,(string-append #$usr + "/pts-core/external-test-dependencies/xml/arch-packages.xml")) + (,(string-append #$pts "/xml/generic-packages.xml") + ,(string-append #$usr "/xml/generic-packages.xml"))) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'executable-link + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "HOME" "/tmp") + (invoke "./install-sh" + (string-append #$output "/usr")) + (mkdir-p (string-append #$output "/bin")) + (wrap-program + (string-append #$output + "/usr/bin/phoronix-test-suite") + `("PATH" ":" prefix + ,(map (lambda (dir) + (string-append dir "/bin:" dir + "/sbin")) + (list #$(this-package-input "php") + #$(this-package-input "sed") + #$(this-package-input "which"))))) + (symlink (string-append #$output + "/usr/bin/phoronix-test-suite") + (string-append #$output "/bin/pts")) + (delete-file-recursively + (string-append #$output + "/usr/share/phoronix-test-suite/deploy")) + (with-directory-excursion + (string-append #$output "/" #$usr) + (for-each (lambda (dir) + (delete-file-recursively + dir)) + (list + "dependency-handlers" + "scripts" "xml"))))))))) + (inputs (list bash-minimal sed which xdg-utils)) + (propagated-inputs (list php)) + (home-page "https://github.com/phoronix-test-suite/phoronix-test-suite") + (synopsis "Automated testing/benchmarking software") + (description "This package provides automated testing/benchmarking +software.") + (license license:gpl3+))) + (define-public python-locust (package (name "python-locust") -- 2.35.1