From: Kei Kebreau <kkebreau@posteo.net>
To: 34482@debbugs.gnu.org
Cc: Kei Kebreau <kkebreau@posteo.net>
Subject: [bug#34482] [PATCH 2/3] gnu: Add cxxtest.
Date: Fri, 15 Feb 2019 07:26:23 -0500 [thread overview]
Message-ID: <20190215122624.5269-1-kkebreau@posteo.net> (raw)
In-Reply-To: <20190215063530.31198-1-kkebreau@posteo.net>
* gnu/packages/check.scm (cxxtest): New variable.
---
gnu/packages/check.scm | 47 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index d689c96648..6f4ba579eb 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -22,7 +22,7 @@
;;; Copyright © 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
+;;; Copyright © 2017, 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016, 2017, 2018 Marius Bakke <mbakke@fastmail.com>
@@ -324,6 +324,51 @@ normally do not detect. The goal is to detect only real errors in the code
(i.e. have zero false positives).")
(license license:gpl3+)))
+(define-public cxxtest
+ (package
+ (name "cxxtest")
+ (version "4.4")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/cxxtest/cxxtest/"
+ version "/cxxtest-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1n7pbj4z9ivx005hqvivj9ddhq8awynzg6jishfbypf6j7ply58w"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'chdir-to-source
+ (lambda _
+ (chdir "python")
+ #t))
+ (add-after 'install 'install-headers
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (include-dir (string-append out "/include/cxxtest")))
+ (for-each (lambda (header-file)
+ (install-file header-file include-dir))
+ (find-files "../cxxtest"))
+ #t)))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc-dir (string-append out "/share/doc/cxxtest")))
+ (install-file "../README" doc-dir)
+ (install-file "../doc/guide.txt" doc-dir)
+ (copy-recursively "../sample" (string-append doc-dir "/sample"))
+ #t))))))
+ (propagated-inputs
+ `(("python-ply" ,python-ply)))
+ (home-page "https://cxxtest.com/")
+ (synopsis "Unit testing framework for C++")
+ (description "CxxTest is a unit testing framework for C++ that is similar
+in spirit to JUnit, CppUnit, and xUnit. CxxTest does not require precompiling
+a CxxTest testing library, it employs no advanced features of C++ (e.g. RTTI)
+and it supports a very flexible form of test discovery.")
+ (license license:lgpl3+)))
+
(define-public go-gopkg.in-check.v1
(let ((commit "20d25e2804050c1cd24a7eea1e7a6447dd0e74ec")
(revision "0"))
--
2.20.1
next prev parent reply other threads:[~2019-02-15 12:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 6:35 [bug#34482] [PATCH 1/3] gnu: Add sdl2-gfx Kei Kebreau
2019-02-15 12:26 ` Kei Kebreau [this message]
2019-02-15 12:26 ` [bug#34482] [PATCH 3/3] gnu: freedink-engine: Update to 109.4 Kei Kebreau
2019-02-15 16:39 ` [bug#34482] [PATCH 1/3] gnu: Add sdl2-gfx Leo Famulari
2019-02-15 19:32 ` Kei Kebreau
2019-02-17 10:22 ` Efraim Flashner
2019-02-17 17:15 ` Kei Kebreau
2019-02-23 1:41 ` bug#34482: " Kei Kebreau
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=20190215122624.5269-1-kkebreau@posteo.net \
--to=kkebreau@posteo.net \
--cc=34482@debbugs.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.