guix-devel
[Top][All Lists]
Advanced

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

[PATCH 08/96] gnu: Add ocaml-ounit.


From: Julien Lepiller
Subject: [PATCH 08/96] gnu: Add ocaml-ounit.
Date: Tue, 3 Jan 2017 20:10:49 +0100

* gnu/packages/ocaml.scm (ocaml-ounit): New variable.
---
 gnu/packages/ocaml.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 7d9d363b5..e32bd9de1 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -30,6 +30,7 @@
   #:use-module (guix svn-download)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system ocaml)
   #:use-module (gnu packages)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gnome)
@@ -48,6 +49,7 @@
   #:use-module (gnu packages m4)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages version-control)
+  #:use-module (gnu packages xml)
   #:use-module (gnu packages curl))
 
 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
@@ -755,3 +757,20 @@ allows the user to enter queries on the command-line.  In 
order to simplify
 compilation and linkage, there are new frontends of the various OCaml
 compilers that can directly deal with packages.")
     (license license:x11)))
+
+;; note that some tests may hang for no obvious reason.
+(define-public ocaml-ounit
+  (package
+    (name "ocaml-ounit")
+    (version "2.0.0")
+    (home-page "http://ounit.forge.ocamlcore.org";)
+    (source (ocaml-forge-origin "ounit" version 1258
+              "118xsadrx84pif9vaq13hv4yh22w9kmr0ypvhrs0viir1jr0ajjd"))
+    (build-system ocaml-build-system)
+    (native-inputs `(("libxml2" ,libxml2))) ; for xmllint
+    ; tests are done during build
+    (arguments `(#:phases (modify-phases %standard-phases (delete 'check))))
+    (synopsis "Unit testing framework for OCaml")
+    (description "Unit testing framework for OCaml.  It is similar to JUnit and
+other XUnit testing frameworks.")
+    (license license:lgpl2.1)))
-- 
2.11.0




reply via email to

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