From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] Add CUnit. Date: Tue, 10 Mar 2015 10:51:43 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/x-patch Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVGpP-0003bP-Kw for guix-devel@gnu.org; Tue, 10 Mar 2015 05:51:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVGpM-0001TV-7x for guix-devel@gnu.org; Tue, 10 Mar 2015 05:51:55 -0400 Received: from sinope.bbbm.mdc-berlin.de ([141.80.25.23]:51763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVGpL-0001T8-U8 for guix-devel@gnu.org; Tue, 10 Mar 2015 05:51:52 -0400 Received: from localhost (localhost [127.0.0.1]) by sinope.bbbm.mdc-berlin.de (Postfix) with ESMTP id 2DDAD280A0D for ; Tue, 10 Mar 2015 10:51:50 +0100 (CET) Received: from sinope.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (sinope.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O9NRunMIav95 for ; Tue, 10 Mar 2015 10:51:44 +0100 (CET) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) by sinope.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Tue, 10 Mar 2015 10:51:44 +0100 (CET) Content-Disposition: inline; filename="0001-gnu-Add-CUnit.patch" 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Guix-devel >From ffcef48c74e2fe3963b93872d2863de6648e8ea5 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 10 Mar 2015 10:50:22 +0100 Subject: [PATCH] gnu: Add CUnit. * gnu/packages/check.scm (cunit): New variable. --- gnu/packages/check.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index bf2a1c7..afaf557 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -19,6 +19,7 @@ (define-module (gnu packages check) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) @@ -48,6 +49,37 @@ faults or other signals. The output from unit tests can be used within source code editors and IDEs.") (license lgpl2.1+))) +(define-public cunit + (package + (name "cunit") + (version "2.1-3") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cunit/CUnit/" + version "/CUnit-" version ".tar.bz2")) + (sha256 + (base32 + "057j82da9vv4li4z5ri3227ybd18nzyq81f6gsvhifs5z0vr3cpm")))) + (build-system gnu-build-system) + (arguments '(#:phases + (alist-cons-before + 'configure 'autoconf + (lambda _ + (zero? (system* "autoreconf" "-vfi"))) + %standard-phases))) + (native-inputs + `(("automake" ,automake) + ("autoconf" ,autoconf) + ("libtool" ,libtool))) + (home-page "http://cunit.sourceforge.net/") + (synopsis "Automated testing framework for C") + (description + "CUnit is a lightweight system for writing, administering, and running +unit tests in C. It provides C programmers with basic testing functionality +with a flexible variety of user interfaces.") + (license gpl2+))) + (define-public cppunit (package (name "cppunit") -- 2.1.0