From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: [PATCH 08/96] gnu: Add ocaml-ounit. Date: Tue, 3 Jan 2017 20:10:49 +0100 Message-ID: <20170103191217.6431-9-julien@lepiller.eu> References: <20170103191217.6431-1-julien@lepiller.eu> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOUW5-0007VA-I6 for guix-devel@gnu.org; Tue, 03 Jan 2017 14:13:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOUW4-0004Ye-JY for guix-devel@gnu.org; Tue, 03 Jan 2017 14:13:01 -0500 Received: from dau94-h03-89-91-205-84.dsl.sta.abo.bbox.fr ([89.91.205.84]:35267 helo=skaro.lepiller.eu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOUW4-0004XX-9q for guix-devel@gnu.org; Tue, 03 Jan 2017 14:13:00 -0500 Received: from localhost (localhost [127.0.0.1]) by skaro.lepiller.eu (Postfix) with ESMTP id BD2088126C for ; Tue, 3 Jan 2017 20:12:57 +0100 (CET) Received: from skaro.lepiller.eu ([127.0.0.1]) by localhost (lepiller.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 598fySeHGIix for ; Tue, 3 Jan 2017 20:12:51 +0100 (CET) Received: from localhost.localdomain (128-79-116-134.hfc.dyn.abo.bbox.fr [128.79.116.134]) by skaro.lepiller.eu (Postfix) with ESMTPSA id 3D7418122E for ; Tue, 3 Jan 2017 20:12:33 +0100 (CET) In-Reply-To: <20170103191217.6431-1-julien@lepiller.eu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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