From 1472d19abf49352c404c285546526457898de113 Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Thu, 8 Nov 2018 17:01:59 -0500 Subject: 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(+) (limited to 'gnu/packages') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b1cddfd80a..05570789a0 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. -- cgit v1.2.3