From: Zhu Zihao <all_but_last@163.com>
To: 63893@debbugs.gnu.org
Cc: Zhu Zihao <all_but_last@163.com>
Subject: [bug#63893] [PATCH 1/3] gnu: Add rapidcheck.
Date: Mon, 5 Jun 2023 00:41:53 +0800 [thread overview]
Message-ID: <89f7dfb39f6e4010d962b392772409c756f0e562.1685896014.git.all_but_last@163.com> (raw)
In-Reply-To: <86o7lvfaw1.fsf@163.com>
* gnu/packages/check.scm (rapidcheck): New variable.
---
gnu/packages/check.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 87728fefa3..470d8c52fa 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -43,6 +43,7 @@
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;; Copyright © 2023 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 Zhu Zihao <all_but_last@163.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3198,6 +3199,46 @@ (define-public libfaketime
provides a simple way to achieve this.")
(license license:gpl2)))
+(define-public rapidcheck
+ (let ((commit "a5724ea5b0b00147109b0605c377f1e54c353ba2")
+ (revision "0"))
+ (package
+ (name "rapidcheck")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/emil-e/rapidcheck")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0f2dmsym8ibnwkaidxmgp73mg0sdniwsyn6ppskh74246h29bbcy"))))
+ (arguments
+ (list
+ #:tests? #f ;require fetching submodules
+ #:configure-flags #~(list "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-extra-headers
+ (lambda _
+ (with-directory-excursion "../source/extras"
+ (for-each
+ (lambda (dir)
+ (let ((dir (string-append dir "/include/rapidcheck/"))
+ (dest (string-append #$output
+ "/include/rapidcheck")))
+ (copy-recursively dir dest)))
+ '("boost" "boost_test" "catch" "gmock" "gtest"))))))))
+ (build-system cmake-build-system)
+ (home-page "https://github.com/emil-e/rapidcheck")
+ (synopsis "Property based testing framework for C++")
+ (description "Rapidcheck is a property based testing framework for C++.
+It works by generating random data to try and find a case breaks your given
+pre-condition.")
+ (license license:bsd-2))))
+
(define-public umockdev
(package
(name "umockdev")
base-commit: ae04b3996be99c89142866afdbba5151099b2064
--
2.40.1
next prev parent reply other threads:[~2023-06-04 16:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-04 16:29 [bug#63893] [PATCH]: gnu: nix: Update to 2.16.0 Zhu Zihao
[not found] ` <handler.63893.B.168589626726853.ack@debbugs.gnu.org>
2023-06-04 16:37 ` [bug#63893] Acknowledgement ([PATCH]: gnu: nix: Update to 2.16.0.) Zhu Zihao
2023-06-04 16:41 ` Zhu Zihao [this message]
2023-06-04 16:34 ` [bug#63893] [PATCH 3/3] gnu: nix: Use HTTPS for package source Zhu Zihao
2023-06-04 16:43 ` [bug#63893] [PATCH 2/3] gnu: nix: Update to 2.16.0 Zhu Zihao
2023-06-11 14:11 ` [bug#63893] [PATCH v2 1/2] gnu: Add rapidcheck jgart via Guix-patches via
2023-06-11 14:11 ` [bug#63893] [PATCH v2 2/2] gnu: nix: Update to 2.16.1 jgart via Guix-patches via
2023-06-13 9:17 ` Zhu Zihao
2023-06-11 14:29 ` [bug#63893] [PATCH v3 1/2] gnu: Add rapidcheck jgart via Guix-patches via
2023-06-11 14:29 ` [bug#63893] [PATCH v3 2/2] gnu: nix: Update to 2.16.1 jgart via Guix-patches via
2023-06-19 15:47 ` Zhu Zihao
2023-06-24 17:12 ` jgart via Guix-patches via
2023-06-24 17:20 ` jgart via Guix-patches via
2023-06-24 19:34 ` Sergey Trofimov
2023-06-25 3:01 ` jgart via Guix-patches via
2023-06-26 21:41 ` [bug#63893] " jgart via Guix-patches via
2023-06-26 22:16 ` Sergei Trofimovich
2023-06-27 6:03 ` jgart via Guix-patches via
2023-06-27 7:05 ` Sergei Trofimovich
2023-07-12 4:00 ` bug#63893: [PATCH v3 2/2] " jgart via Guix-patches via
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=89f7dfb39f6e4010d962b392772409c756f0e562.1685896014.git.all_but_last@163.com \
--to=all_but_last@163.com \
--cc=63893@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).