From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 68712@debbugs.gnu.org
Subject: [bug#68712] [PATCH 2/2] gnu: Add piglit.
Date: Thu, 25 Jan 2024 10:19:29 +0100 [thread overview]
Message-ID: <8ecf33f93cb6858219a8349837e3e22cabaa4f69.1706174426.git.liliana.prikler@gmail.com> (raw)
In-Reply-To: <cover.1706174426.git.liliana.prikler@gmail.com>
* gnu/packages/gl.scm (piglit): New variable.
---
gnu/packages/gl.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 35fb1e618c..f8dc8c1d9d 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -1248,3 +1248,55 @@ (define-public waffle
(description "Waffle is a library that allows one to defer selection of an
OpenGL API and a window system until runtime.")
(license license:bsd-2)))
+
+(define-public piglit
+ (let ((revision "1")
+ (commit "814046fe6942eac660ee4a6cc5fcc54011a49945"))
+ (package
+ (name "piglit")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.freedesktop.org/mesa/piglit")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bzaalcxskckfnwprw77sbbmfqi59by2j8imaq8ghnlzhlxv7mk7"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-DPIGLIT_SSE2=OFF")
+ ;; Tests are not invoked through cmake. Instead, there are
+ ;; pytest/tox-based tests for the framework, but they require
+ ;; unpackaged plugins.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-source
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* (find-files "framework/" "\\.py$")
+ (("'wflinfo'")
+ (string-append "'"
+ (search-input-file inputs "/bin/wflinfo")
+ "'")))))
+ (add-after 'install 'wrap
+ (lambda* (#:key outputs #:allow-other-keys)
+ (wrap-script (string-append (assoc-ref outputs "out")
+ "/bin/piglit")
+ `("GUIX_PYTHONPATH" prefix
+ (,(getenv "GUIX_PYTHONPATH")))))))))
+ (inputs (list guile-3.0 ; for wrap-script
+ libxkbcommon
+ python python-lxml python-mako python-numpy
+ glslang vulkan-headers vulkan-loader
+ waffle))
+ (native-inputs (list pkg-config))
+ (home-page "https://piglit.freedesktop.org/")
+ (synopsis "Test OpenGL implementations")
+ (description "Piglit is a collection of automated tests for OpenGL and
+OpenCL implementations.")
+ ;; A mix of licenses for various tests
+ (license (list license:expat
+ license:bsd-3
+ license:gpl2+
+ license:gpl3+)))))
--
2.41.0
next prev parent reply other threads:[~2024-01-25 16:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 9:20 [bug#68712] [PATCH 0/2] Add piglit Liliana Marie Prikler
2024-01-25 8:56 ` [bug#68712] [PATCH 1/2] gnu: Add waffle Liliana Marie Prikler
2024-01-25 9:19 ` Liliana Marie Prikler [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-25 10:25 [bug#68713] [PATCH 0/4] More clingo stuff Liliana Marie Prikler
2024-01-25 9:42 ` [bug#68714] [PATCH 1/4] gnu: Add python-clingo-dl Liliana Marie Prikler
2024-01-25 9:42 ` [bug#68713] " Liliana Marie Prikler
2024-02-05 21:38 ` [bug#68712] " Ludovic Courtès
2024-07-01 3:00 ` [bug#68712] [PATCH 0/2] Add piglit jgart via Guix-patches via
2024-01-25 9:44 ` [bug#68712] [PATCH 2/4] gnu: python-clorm: Reindent with emacs Liliana Marie Prikler
2024-01-25 9:44 ` [bug#68713] " Liliana Marie Prikler
2024-01-25 9:46 ` [bug#68714] [PATCH 3/4] gnu: Add python-plingo Liliana Marie Prikler
2024-01-25 9:46 ` [bug#68712] " Liliana Marie Prikler
2024-01-25 9:46 ` [bug#68713] " Liliana Marie Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ecf33f93cb6858219a8349837e3e22cabaa4f69.1706174426.git.liliana.prikler@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=68712@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).