guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: r-lambda-r: Run unit tests.


From: Ricardo Wurmus
Subject: 02/05: gnu: r-lambda-r: Run unit tests.
Date: Tue, 6 Mar 2018 10:03:14 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit fe58ab013be8b8232ed4de356b3d0cb8b1bbb847
Author: Ricardo Wurmus <address@hidden>
Date:   Tue Mar 6 11:51:33 2018 +0100

    gnu: r-lambda-r: Run unit tests.
    
    * gnu/packages/statistics.scm (r-lambda-r)[native-inputs]: Add r-runit.
    [arguments]: Add build phase to delete test logs.
---
 gnu/packages/statistics.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 338db28..8ebdce1 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -2814,6 +2814,19 @@ plotted and compared with the asymptotic curve.")
                 "0vql32np716dpd0kjn7s7wgawd02ysgp2a5il4kb19nlw661ii3x"))))
     (properties `((upstream-name . "lambda.r")))
     (build-system r-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'check 'delete-test-log
+           ;; The test report contains time stamps and is not important for
+           ;; the installed package.
+           (lambda* (#:key outputs #:allow-other-keys)
+             (delete-file-recursively
+              (string-append (assoc-ref outputs "out")
+                             "/site-library/lambda.r/unitTests"))
+             #t)))))
+    (native-inputs
+     `(("r-runit" ,r-runit)))
     (home-page "https://cran.r-project.org/web/packages/lambda.r";)
     (synopsis "Functional programming extension for R")
     (description



reply via email to

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