guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: maxima: Fix tests on i686 and x86_64.


From: Kei Kebreau
Subject: 01/01: gnu: maxima: Fix tests on i686 and x86_64.
Date: Sun, 18 Nov 2018 12:03:15 -0500 (EST)

kkebreau pushed a commit to branch master
in repository guix.

commit 1472d19abf49352c404c285546526457898de113
Author: Kei Kebreau <address@hidden>
Date:   Thu Nov 8 17:01:59 2018 -0500

    gnu: maxima: Fix tests on i686 and x86_64.
    
    * gnu/packages/maths.scm (maxima)[arguments]: Replace check phase.
---
 gnu/packages/maths.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index b1cddfd..0557078 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2788,6 +2788,18 @@ to BMP, JPEG or PNG image formats.")
            (lambda _
              (chmod "src/maxima" #o555)
              #t))
+         (replace 'check
+           (lambda _
+             ;; This is derived from the testing code in the "debian/rules" 
file
+             ;; of Debian's Maxima package.
+             ;; If Maxima can successfully run this, the binary to be installed
+             ;; should be fine.
+             (zero?
+              (system
+               (string-append "./maxima-local "
+                              "--lisp=gcl "
+                              "--batch-string=\"run_testsuite();\" "
+                              "| grep -q \"No unexpected errors found\"")))))
          ;; Make sure the doc and emacs files are found in the
          ;; standard location.  Also configure maxima to find gnuplot
          ;; without having it on the PATH.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]