GNU bug report logs - #47333
[PATCH 2/2] Enable test of minetest

Previous Next

Package: guix-patches;

Reported by: la snesne <lasnesne <at> lagunposprasihopre.org>

Date: Tue, 23 Mar 2021 00:07:02 UTC

Severity: normal

Tags: patch

Done: la snesne <lasnesne <at> lagunposprasihopre.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: la snesne <lasnesne <at> lagunposprasihopre.org>
To: 47333 <at> debbugs.gnu.org
Cc: la snesne <lasnesne <at> lagunposprasihopre.org>
Subject: [bug#47333] [PATCH 2/2] Enable test of minetest
Date: Tue, 23 Mar 2021 09:06:34 +0900
---
 gnu/packages/games.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index f1ee7e9971..0ccbde636a 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3482,7 +3482,7 @@ match, cannon keep, and grave-itation pit.")
                   #t))))
     (build-system cmake-build-system)
     (arguments
-     '(#:configure-flags
+     `(#:configure-flags
        (list "-DRUN_IN_PLACE=0"
              "-DENABLE_FREETYPE=1"
              "-DENABLE_GETTEXT=1"
@@ -3493,7 +3493,15 @@ match, cannon keep, and grave-itation pit.")
              (string-append "-DCURL_INCLUDE_DIR="
                             (assoc-ref %build-inputs "curl")
                             "/include/curl"))
-       #:tests? #f))                    ;no check target
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (setenv "HOME" "/tmp")
+             (invoke (string-append "../" ,name "-" ,version
+                                    "-checkout/bin/minetest")
+                     "--run-unittests")
+             #t)))))
     (native-search-paths
      (list (search-path-specification
             (variable "MINETEST_SUBGAME_PATH")
-- 
2.31.0





This bug report was last modified 4 years and 61 days ago.

Previous Next


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