From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] Add CUnit.
Date: Tue, 10 Mar 2015 10:51:43 +0100 [thread overview]
Message-ID: <idjlhj5qixc.fsf@bimsb-sys02.mdc-berlin.net> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-CUnit.patch --]
[-- Type: text/x-patch, Size: 2030 bytes --]
From ffcef48c74e2fe3963b93872d2863de6648e8ea5 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
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
next reply other threads:[~2015-03-10 9:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 9:51 Ricardo Wurmus [this message]
2015-03-14 13:36 ` [PATCH] Add CUnit Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=idjlhj5qixc.fsf@bimsb-sys02.mdc-berlin.net \
--to=ricardo.wurmus@mdc-berlin.de \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.