From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6AmlDkbWhWRgbAEASxT56A (envelope-from ) for ; Sun, 11 Jun 2023 16:12:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mJdYDkbWhWQlBgEA9RJhRA (envelope-from ) for ; Sun, 11 Jun 2023 16:12:22 +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 C96533E3D2 for ; Sun, 11 Jun 2023 16:12:21 +0200 (CEST) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: jgart via Guix-patches via 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686492742; h=from:from:sender:sender:reply-to: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=5G/hZYJC7YX7XlUmQWKWEdM6L4poH6RDZQ7HPqRlpvM=; b=Hx/nxLZQ5txyq/rvHVtZJMw/oZyIGd/KSN7NUppVheMO4QsFzpAXVzYfjfTF/MTA3YVDb7 v78qnyfctcdPVqBgWg03rpSgjmXlF0QVKgQb0gt2hmQuukrlzESoROT2W2/SwHSxDqgZTx E4EjPBJ7M5syppG3y7rZuptVj5tOqYuM4PTxV5qdN32Yd8yufTCD0Cwhux/7DTvYxF6hiv 5rAQiuIl+sF5HW1KmK2lg8FRnE+kPY/dAPEbU+tYp4O+Vdhoatn3NNuM0V5ag1BaE76pGr OPEGlozEyKqMnVZJyE67H9rrocRo0RKv07xXhFw8mXVhFKSViWxWEi7qpx5LDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b="q9886d/t"; dmarc=pass (policy=none) header.from=gnu.org; 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-Seal: i=1; s=key1; d=yhetil.org; t=1686492742; a=rsa-sha256; cv=none; b=IlCyInPsgiE3yFN0WXB1QJ3mGBXbYGzmkKYlkIwnkhHdYC6NI5B7ZxGrmvOTeui5gjbrRQ ul6ty/IM2ivCKioCv6Ad/1rgrdcCt8SUbOPQGGNvwrzvYvuXr2mTlsYWkj/R3cBS5AsV+D ydMu6ShBH5nkR94ZyNxVx2a79YtflbE67UGsssuxqWDdeBSPzGRXiz5yj+j5bHtvWRtqSd v6s3nnb0XLHx5AEJMlzOJs903J9idBM8xUoBFWOlbhQMFg/5NTUFerKE+fbydFgTs/E5xB RtPM0gip4kMGkcX5PE0SCG5lPMONzISvb1Do4h4ly7H+SAQolWimQ1WO99tU9w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b="q9886d/t"; dmarc=pass (policy=none) header.from=gnu.org; 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-Queue-Id: C96533E3D2 X-Spam-Score: -3.92 X-TUID: GAOkQ79GOZaB * 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: 6fe9a004dba2d4ddf69ff6f1714af15ffaa7e62a -- 2.40.1