From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4PlcLSm/fGThXQAASxT56A (envelope-from ) for ; Sun, 04 Jun 2023 18:43:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8LmILCm/fGRCogAAG6o9tA (envelope-from ) for ; Sun, 04 Jun 2023 18:43:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8635913B44 for ; Sun, 4 Jun 2023 18:43:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5qoq-00039t-GI; Sun, 04 Jun 2023 12:43: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 1q5qoo-00039T-Va for guix-patches@gnu.org; Sun, 04 Jun 2023 12:43:02 -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 1q5qoo-00039W-EQ for guix-patches@gnu.org; Sun, 04 Jun 2023 12:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5qoo-0007J5-9c for guix-patches@gnu.org; Sun, 04 Jun 2023 12:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63893] [PATCH 1/3] gnu: Add rapidcheck. References: <86o7lvfaw1.fsf@163.com> In-Reply-To: <86o7lvfaw1.fsf@163.com> Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Jun 2023 16:43: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: Zhu Zihao Received: via spool by 63893-submit@debbugs.gnu.org id=B63893.168589697928078 (code B ref 63893); Sun, 04 Jun 2023 16:43:02 +0000 Received: (at 63893) by debbugs.gnu.org; 4 Jun 2023 16:42:59 +0000 Received: from localhost ([127.0.0.1]:46997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5qok-0007In-L0 for submit@debbugs.gnu.org; Sun, 04 Jun 2023 12:42:58 -0400 Received: from m12.mail.163.com ([220.181.12.214]:52752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5qoi-0007Ib-5x for 63893@debbugs.gnu.org; Sun, 04 Jun 2023 12:42:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=Bi8nQKZOnflryU0OQpWZwBEuFtA9BOly3bO2BAF46nA=; b=GZh8HZCaxMBg5Pz8N4ZgL8C6ZK+wbi3o3hfeI+TKh8z42gWgVmBeEIUIHIatFo Jrz+7y0SjeQzNY9130kBg+Oac4WOghCDp0/S5Nr0Nt1f8jEVOohSTRrchk5qEvn7 KBVgEqoydLOWFsb5VNrVXAt9p0/9XKx9jn3unE3pMFMdo= Received: from localhost.localdomain (unknown [218.18.128.204]) by zwqz-smtp-mta-g2-1 (Coremail) with SMTP id _____wDX3ir7vnxk4aXdBQ--.14774S2; Mon, 05 Jun 2023 00:42:51 +0800 (CST) From: Zhu Zihao Date: Mon, 5 Jun 2023 00:41:53 +0800 Message-Id: <89f7dfb39f6e4010d962b392772409c756f0e562.1685896014.git.all_but_last@163.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wDX3ir7vnxk4aXdBQ--.14774S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZrWDuw1fCryrZw4rGw4kWFg_yoW8Kr4UpF 40kw4Y9w48Gr93J3ySqF10vryYq3s3JF1qy3yfAF40kw4Yg3y0qrWfKrW5GF17Xr4xC3W7 Xa15Wa1UCFWUGFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pME_MLUUUUU= X-Originating-IP: [218.18.128.204] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBawuEr1et9FUCXgABsN 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685897001; a=rsa-sha256; cv=none; b=ZbHjAYWVnzEBoRLRKMZn/8SwJHXf9WLd5umYobB/eg3jModsQBFVnh4JtGeUwvotnqe8kn djt1z0zb2+6/lV05gYJf84XpspukigmDkUHy6qOU9eCdStVmK5++kd3/f3/m68eGX33Cea jpwfjCZbx992/1pSXNxAxI+Tsko4netbrLTA0Ou1quSg0SAWDRVtsX7tEzDIHx+Lsvs+gp BCaHq2+hHHx3b8F/VaoqP08BUtUH3KO40X2f9XFISxLNWdEVub4lkeUquxUpTmAk/3sjZ/ 66z65YeNW6V/Wj/1Yv3KuwAYRVY9jRe7rWQaTT40Yeuzw/YPLEpCwzAEFxJzEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=GZh8HZCa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685897001; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Bi8nQKZOnflryU0OQpWZwBEuFtA9BOly3bO2BAF46nA=; b=EuL20hfbL87nNzbTu7Ww3OCqAA1RH/iN+EV8vFo93WjJuiVb6lfN9epnsZPeILFbIzfIQa 3TPMJv0Cqer/C06Ixlp7z6Y+wlLzorsXDKNCbTIqqh2A5F5hYMDCrKRQ/QcdDmX4dophmn MZeXw2Fx+pnmVRMN42QghOkcpmJWY53+ExmK6Dw55wdWpJqVKqmmaHYeLEaz0voE5KsZs1 v4FECV2AGyvaJU+23P2vxmy2rQHhTevLzMG/HM644QhX0JbiVVLPXG3C2VwSEPUrLcq1Xz +/H4A3qqzAxOVVlkuVPoPgknHhKWbDK/TIqGd9aayN5rI7UOIY/GBjm9cv7pgQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=163.com header.s=s110527 header.b=GZh8HZCa; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.38 X-Spam-Score: -0.38 X-Migadu-Queue-Id: 8635913B44 X-TUID: dv06S83CAA1I * 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 ;;; 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") base-commit: ae04b3996be99c89142866afdbba5151099b2064 -- 2.40.1