gnu: maxima: Fix tests on i686 and x86_64.

* gnu/packages/maths.scm (maxima)[arguments]: Replace check phase.
master
Kei Kebreau 2018-11-08 17:01:59 -05:00
parent d22ba64276
commit 1472d19abf
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 12 additions and 0 deletions

View File

@ -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.