From patchwork Fri Sep 29 09:16:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 54398 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 82E5C27BBE9; Fri, 29 Sep 2023 10:19:01 +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=unavailable 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 7B23027BBE2 for ; Fri, 29 Sep 2023 10:18:59 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9dZ-0005eR-V1; Fri, 29 Sep 2023 05:18:17 -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 1qm9dI-0005WA-PP for guix-patches@gnu.org; Fri, 29 Sep 2023 05:18:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qm9dE-0003vz-Se for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9dT-0004oV-Gw; Fri, 29 Sep 2023 05:18:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 23/23] gnu: Add unity. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:18:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169597907518263 (code B ref 66263); Fri, 29 Sep 2023 09:18:11 +0000 Received: (at 66263) by debbugs.gnu.org; 29 Sep 2023 09:17:55 +0000 Received: from localhost ([127.0.0.1]:55230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9dC-0004kQ-Pc for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:55 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:44454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9ce-0004gh-Qn for 66263@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:21 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40651a72807so16441305e9.1 for <66263@debbugs.gnu.org>; Fri, 29 Sep 2023 02:17:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1695979020; x=1696583820; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wETUNZ0awq4HLb2Qaa8XGTbwJL1VkKwq6Gkgfpv58qY=; b=gQeWprce7Q7IvgokD61y/5UWfC6+cy7nIgYrxplCllP7QaTOlBv1gsezpUdP4C/NTg sclEeJpaQwcRCpjcLp/VVllHQjOLzPJoIU3Dp6rESqTG4vp+WebynIZ1UOebkEn1dYtj 7V8l+lpwv+8RBKdnXp9hVGDpF2UGfcOZrqHajfdJs5kQLl910KVck9uUz+xjokgA9QB2 t5sB6iWixP2842p0XUZYBclKS/WFTc5ZPX3YQ8iZ6SZQ3mDxgcGba0XgVrHH0GoOJeHC euR8S3A9dwjT8JEvHgy3ovIIzQE/zIDpfc0CKRnhEC3x0DymTSWBnIX4yhQ5c3y9IQVh xaFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695979020; x=1696583820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wETUNZ0awq4HLb2Qaa8XGTbwJL1VkKwq6Gkgfpv58qY=; b=rZ37Lno9reAq62Q2GDmMLcPfx6n78yjcb1+jgzxV0aGel8ucBuyB6ApBbRLrRwrAiY jc3rnov/2VCijxHW7C8VuyAG1GKJTNOUUppoKgCAt6LYgNUKgYtTxZXnhYZ0eU29sV/r hLrjjlsZc8VAOfY+ya0cSdSSMvm3vGRPV/L+Jk97A9ogF8acB7mc4b1JlPVPUrrPYmvd FCFwROB6RDairZ7kPB/JW0OUN1yMzatWgFtdukCrUhE5nvjaXOHbVur0SiK1iLDe0RC8 W/FL8H0fnLLl6Jlw8MFUR89V/UcMfxIa62VgcAri9Qq69rc5kSKy63LQuDRsrZexPxFs 6n4w== X-Gm-Message-State: AOJu0Yy9GO/CyGkcdETM6Sz0FIRNK7RDKPHdaCdDuMAAdL3LqcYpt01n gvbsPu2qfaozXBhQcXNoMrYnJsq4K+gA2jdhQLl6yw== X-Google-Smtp-Source: AGHT+IF2oZYBDOyATpEIZOCi88wzZJ4boy0BrIuaivKRNvp973vW4SB+CV8FwQTz06s5NP25A4rgOw== X-Received: by 2002:a1c:f709:0:b0:403:272:4414 with SMTP id v9-20020a1cf709000000b0040302724414mr3424673wmh.0.1695979020247; Fri, 29 Sep 2023 02:17:00 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc40f000000b004013797efb6sm1020933wmi.9.2023.09.29.02.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:16:59 -0700 (PDT) Date: Fri, 29 Sep 2023 11:16:27 +0200 Message-Id: <20230929091627.7820-23-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230929091627.7820-1-jean@foundationdevices.com> References: <20230929091627.7820-1-jean@foundationdevices.com> 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: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ 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 (unity): 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 5af3b49280..db368663d4 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -87,6 +87,7 @@ (define-module (gnu packages check) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-science) + #:use-module (gnu packages ruby) #:use-module (gnu packages texinfo) #:use-module (gnu packages time) #:use-module (gnu packages xml) @@ -3170,6 +3171,46 @@ (define-public unittest-cpp portable to just about any platform.") (license license:expat))) +(define-public unity + (let ((revision "0") + (commit "2775e1b05875cf45afce7153e36af76ddbfdba26")) + (package + (name "unity") + (version (git-version "2.5.4" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ThrowTheSwitch/Unity") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0y803ibjkqvj1fil0a0hzs7x0m98amm5ibwl8xxk3p8bj9wgdps1")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Dextension_fixture=true" + "-Dextension_memory=true" + "-Dsupport_double=true") + #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "../source/test" + (invoke "rake" "all")))))))) + (native-inputs + (append (list python) + (if (not (%current-target-system)) + (list ruby + ruby-rake + ruby-rspec + ruby-rubocop) + '()))) + (home-page "http://throwtheswitch.org") + (synopsis "Unit testing framework for C") + (description "Unity is a lightweight unit testing framework for C. It was +designed to allow running tests on embedded devices and on a host computer.") + (license license:expat)))) + (define-public libfaketime (package (name "libfaketime")