GNU bug report logs - #67902
[PATCH 00/95] PHP package chain.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Tue, 19 Dec 2023 13:48:02 UTC

Severity: normal

Tags: patch

Full log


Message #203 received at 67902 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 67902 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [PATCH 55/95] gnu: Add php-cache-integration-tests.
Date: Tue, 19 Dec 2023 14:57:36 +0100
* gnu/packages/php-xyz.scm (php-cache-integration-tests): New variable.

Change-Id: I561d088a95cdcb8629a7e6cab9503be7cf658492
---
 gnu/packages/php-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm
index 8a6e5ca416..b9f71d9073 100644
--- a/gnu/packages/php-xyz.scm
+++ b/gnu/packages/php-xyz.scm
@@ -1401,3 +1401,45 @@ (define-public php-symfony-cache
     (home-page "https://symfony.com")
     (license license:expat)))
 
+(define-public php-cache-integration-tests
+  (package
+    (name "php-cache-integration-tests")
+    (version "0.17.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/php-cache/integration-tests")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0i079z0jmcji4kn9mcxdv2093ypcd6albwkhhkiv39py31bjdpgg"))))
+    (build-system composer-build-system)
+    (arguments
+     (list
+      #:test-flags ''("--testsuite" "Symfony")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'fix-tests
+            (lambda _
+              ;; Adapt phpunit config to Guix context.
+              (substitute* "phpunit.xml.dist"
+                (("\\./vendor/symfony/cache")
+                 (string-append
+                  #$(this-package-native-input "php-symfony-cache")
+                  "/share/web/symfony/cache"))))))))
+    (inputs
+     (list php-psr-cache php-cache-tag-interop))
+    (native-inputs
+     (list php-phpunit-phpunit
+           (package/inherit php-symfony-cache
+             (arguments '(#:tests? #f))
+             (native-inputs '()))
+           php-symfony-filesystem
+           php-symfony-phpunit-bridge))
+    (synopsis "PHP integration tests")
+    (description "This package provides PHP integration tests for PSR-6 and
+PSR-16 cache implementations.")
+    (home-page "https://github.com/php-cache/integration-tests")
+    (license license:expat)))
+
-- 
2.41.0





This bug report was last modified 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.