From patchwork Sun Jun 11 14:11:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 50837 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2423E27BBEA; Sun, 11 Jun 2023 15:12:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F2DCB27BBE2 for ; Sun, 11 Jun 2023 15:12:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8LnY-00072H-In; Sun, 11 Jun 2023 10:12:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8LnX-00071x-B4 for guix-patches@gnu.org; Sun, 11 Jun 2023 10:12:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8LnX-0006ig-2P for guix-patches@gnu.org; Sun, 11 Jun 2023 10:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8LnW-0004Vj-D5 for guix-patches@gnu.org; Sun, 11 Jun 2023 10:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63893] [PATCH v2 1/2] gnu: Add rapidcheck. References: <86o7lvfaw1.fsf@163.com> In-Reply-To: <86o7lvfaw1.fsf@163.com> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Jun 2023 14:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63893 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63893@debbugs.gnu.org Cc: jgart , Zhu Zihao Received: via spool by 63893-submit@debbugs.gnu.org id=B63893.168649270917308 (code B ref 63893); Sun, 11 Jun 2023 14:12:02 +0000 Received: (at 63893) by debbugs.gnu.org; 11 Jun 2023 14:11:49 +0000 Received: from localhost ([127.0.0.1]:37551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8LnJ-0004V6-14 for submit@debbugs.gnu.org; Sun, 11 Jun 2023 10:11:49 -0400 Received: from mx2.dismail.de ([159.69.191.136]:23095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8LnF-0004Ug-IW for 63893@debbugs.gnu.org; Sun, 11 Jun 2023 10:11:47 -0400 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 5a80ad2d; Sun, 11 Jun 2023 16:11:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=eswDNpDyLJdLq/7sNrpXN lJnOqc9RBk85Gi2W7Lmsyg=; b=q9886d/tGWFjeyCWoIIo0s1sRcpWeVB03/g4z YrWKGGa70XTckApyid4IVnQ+OBqeLCEjdsUzYsNfTVHz84du38uK+hlN7SpV90CR /xB/rfUNrIk0dxWetrZg+DSN4ac7RHLWJ2mhf4DEZvauSnVy5ZN8XRRiliC9Dw+a 2uxSkUJSdpTPMugugSuTNOVUkJ6HtPVBTUHCG1toaqFJhQD0v5wLgU1Q+1N3kR2X h9ljpNsYLiH9d3uI0utEsExchMpwVTdI2lluxj0OabY99tAMe13Ae2Ja+pIhlZk8 2PZwS7PIS4QC4ebc7/N+qd8OmXSRLCWFwpv9fowERytBIO8KQ== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 60dc195b; Sun, 11 Jun 2023 16:11:38 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id af92aae0; Sun, 11 Jun 2023 16:11:38 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id b535bae8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 11 Jun 2023 16:11:37 +0200 (CEST) Date: Sun, 11 Jun 2023 09:11:10 -0500 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/check.scm (rapidcheck): New variable. --- gnu/packages/check.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) base-commit: 6fe9a004dba2d4ddf69ff6f1714af15ffaa7e62a 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 ;;; Copyright © 2023 Luis Felipe López Acevedo ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2023 Zhu Zihao ;;; ;;; 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")