From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EGt1N7bHtGJeAAAAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 22:06:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QGchN7bHtGJVwAAAauVa8A (envelope-from ) for ; Thu, 23 Jun 2022 22:06:14 +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 84D931FA6E for ; Thu, 23 Jun 2022 22:06:14 +0200 (CEST) Received: from localhost ([::1]:43514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4T5h-0003au-5I for larch@yhetil.org; Thu, 23 Jun 2022 16:06:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4T5W-0003X4-6I for guix-patches@gnu.org; Thu, 23 Jun 2022 16:06:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4T5V-0001TU-To for guix-patches@gnu.org; Thu, 23 Jun 2022 16:06:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4T5V-0005X6-P7 for guix-patches@gnu.org; Thu, 23 Jun 2022 16:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56172] [PATCH]: gnu: Add utest-h Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Jun 2022 20:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56172 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 56172@debbugs.gnu.org Received: via spool by 56172-submit@debbugs.gnu.org id=B56172.165601472121218 (code B ref 56172); Thu, 23 Jun 2022 20:06:01 +0000 Received: (at 56172) by debbugs.gnu.org; 23 Jun 2022 20:05:21 +0000 Received: from localhost ([127.0.0.1]:39979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4T4m-0005W6-2E for submit@debbugs.gnu.org; Thu, 23 Jun 2022 16:05:21 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:39488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4T4i-0005Vn-R1 for 56172@debbugs.gnu.org; Thu, 23 Jun 2022 16:05:14 -0400 Received: by mail-lf1-f52.google.com with SMTP id y32so825989lfa.6 for <56172@debbugs.gnu.org>; Thu, 23 Jun 2022 13:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=51M4M9iqy1ymSxVn0J6kX8GX2tmi3qatiPH1GzC9fGg=; b=USR/yhXPEmN9f3gnNat4VHxX9+OhvbQdt347DIhoELEgwo9zFHdMgA20KwN2Y2JEHi WBKd3b9FtEKCnqOoKW7Yim/f2WNcigcSe8PZxkZdULRVGpMtrkt9j0/MbfMDAAlXovMe XOf+mxWXPQberTDMKdzBAscHthl9ZtbVvu9hHqjs33h2+iw0zeDzf9IxJX0rOtuppAj+ 2phiLNu385kZlk4WiWvjdGiA6z/rvTf7L8rFiSXpZRfwLc/kaEt2mNHbUagLqxyrvrgw RpolITPcSxNkt1oDrUke4WkH6cyMRvj/av648LDCIBDLe1vkIMfShsAjzqAb0V03DjvM icaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=51M4M9iqy1ymSxVn0J6kX8GX2tmi3qatiPH1GzC9fGg=; b=lH8BtcQvIdfUkmg4aXarSmRAa6TDwHbv0I79Dr5HHY4OgSpIPwOUE7zeLYb3EQho0H TCKmltXhw2Hw+6FkIQJ9sSCkXlLVGMytg0uPT3+WN/TkKwINZWVeaM3MqGjFMONLBKIY hLNypDleDSwx8xyQEUixiNEWKDo6AfE7DaYxI/+OQpTYk0HiYMG0DT1CgQx3QUX2sPcF dEepmS8laeUbB1zHpyS2HRB4K86G5LaHpkjEvf4jV9jlck+2qDScXLv4J+lBPLLw83kC ROUGCxWCuU4FH0YEQTwDMnSA2mQHVhKF5DJtUBJYpvG/GEOEx9ZsoKrK3XvJgtsfVAnW F+Fw== X-Gm-Message-State: AJIora8dcoKvig5iAXHFZ2/z7y6ycVOFSvx16zNxJCBhJDNx6+REKm7V 9YMwnwhWjzbRRHSyuvlQUhhdrFJCotw= X-Google-Smtp-Source: AGRyM1t8NqoHFJN020m8SzmUsl2iX/3Ctla2INkZiqHMBFUV3MAWz/Szn3Y/0vMjk4h9vPTBOBzmAg== X-Received: by 2002:a05:6512:3d02:b0:47f:afa3:296f with SMTP id d2-20020a0565123d0200b0047fafa3296fmr1401920lfv.532.1656014706483; Thu, 23 Jun 2022 13:05:06 -0700 (PDT) Received: from elephant ([5.164.222.47]) by smtp.gmail.com with ESMTPSA id g1-20020a0565123b8100b0047f79c636f7sm12496lfv.167.2022.06.23.13.05.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 13:05:05 -0700 (PDT) From: "Artyom V. Poptsov" References: <87a6a342o0.fsf@gmail.com> Date: Thu, 23 Jun 2022 23:05:01 +0300 In-Reply-To: (Maxime Devos's message of "Thu, 23 Jun 2022 21:52:48 +0200") Message-ID: <875ykr4042.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656014774; 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: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=51M4M9iqy1ymSxVn0J6kX8GX2tmi3qatiPH1GzC9fGg=; b=XJxjzDcBEAUkVQoqUAEEveldTf97t5zKdRX1xOpUhQaE0u0tyx1AkGOOD9oK/GF8OW6IHv GtiQc49XoYcSWlxTaGX3wFAmBGydCF3YmUMMrLg10/uDEIHiDi/ALpQoa6vsvTcdeIioQS 9WaVR6BS8Gyk8r8dcc+lARfwyEUQ8PvluLF5PPC2UfDG1JY2MRfykBYK3T6ZZeVA3tlgYd 6deXWMglfGeIvG9dYDEcVy8P24jB4oHkvsRI/KAjImd+FSAebl9sdbReaGgxU7NNQcyPST ILQfwSLqWSbnulJEvOmlXpyVBq4AwqKHUGFaDdt0jb6H5nH3hTkc0b4CV8pwjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656014774; a=rsa-sha256; cv=none; b=FiaY13KNyzOk9rZ4cebm5aDJny3wl/yoMCY7ZljUMM707gbluhTSCKU550TwofFAROhBlY 5fJzrX00WhTSNJORnyxkTI1klHHlLAn1H4IzZ3lr9mb5xfUIGJ/bfyUOsWDiLrpkCeJf+E FEaqolkxljq1jGuk2r9y1HVx7LeGnh7XuNUKUQjBQ+tTx+xGRt9w8KahU/xTmYX0tQLIfJ Kk7u7ok8JYsC6qltnC6prZ31gLDlTCjQKwj/RYMYs21JY/dn3buGiDbWcEY2bZyZ4AD++b 9fO3eX3MGqb3c5vbB70uruNywDzpSSbGuOjEKplkyhrszSNYd8LD2W6jzJqs7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="USR/yhXP"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.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-Spam-Score: 3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="USR/yhXP"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.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-Queue-Id: 84D931FA6E X-Spam-Score: 3.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: Nqay3wvgudWI --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Maxime. > I assume tag -> commit? Yes, indeed. Here's the fixed version. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-utest-h.patch Content-Transfer-Encoding: quoted-printable From=2032e6acb58e9ef9fa53add7ac323d470dab9a9089 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 23 Jun 2022 22:07:05 +0300 Subject: [PATCH] gnu: Add utest-h * gnu/packages/c.scm (utest-h): New variable. =2D-- gnu/packages/c.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index 3e49539473..bb8a668834 100644 =2D-- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -14,6 +14,7 @@ ;;; Copyright =C2=A9 2021 David Dashyan ;;; Copyright =C2=A9 2021 Foo Chuan Wei ;;; Copyright =C2=A9 2022 (unmatched parenthesis +;;; Copyright =C2=A9 2022 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -1134,3 +1135,40 @@ performance concurrent systems developed in C99+.") C and C++. The functions it provides are like those from the C header string.h, but with a utf8* prefix instead of the str* prefix.") (license license:unlicense)))) + +(define-public utest-h + ;; The latest commit is used as there is no release. + (let ((commit "54458e248f875f1a51f0af8bec8ca6ae7761b9d1") + (revision "0")) + (package + (name "utest-h") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sheredom/utest.h") + (commit commit))) + (file-name (git-file-name "utest.h" version)) + (sha256 + (base32 + "1ikl5jwmjdw1mblqyl2kvnqwkjgaz78c1h7mjcfmzjc0d3h8kh44"))= )) + (build-system cmake-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'build) + (delete 'configure) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "test" + (invoke "cmake" ".") + (invoke "make"))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "utest.h" + (string-append out "/include")))))= ))) + (home-page "https://www.duskborn.com/utest_h/") + (synopsis "Single header unit testing framework for C and C++") + (description "A simple one header solution to unit testing for C/C++= .") + (license license:unlicense)))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Thanks, =2D Artyom =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmK0x20ACgkQ6cWi2QiY oC91jgf/RyB+W2C7ow3hwqvkc9Preu26fpVZdP7N+XGkNMKCCc2i3KbmilX/uHro mvXenklujVVemsJZ4pNreIOiApFChOgToV7NRG/tiEODjxRa6Xph9hHywTzNH1S8 hJl7TfynB2NfwPvKF03rwn+jtxkb2ugtCLBMtDIjGyj2lUMvF8BUzq+/czEpxbic SVN63wb22ErsBq/SZ0K5SYd64E7rHhhtSXKwrTGyWADorheJHkhH2Z12twBbVSCK OQAGk+kCxC9E2ochVsezrT0MkacFEnFeU/H0CUXUB6Q2XP2Ir8BDy8LStqo3UEv8 TdmZR/78JOdd0sve+XUU95mP3xSOxA== =PzEc -----END PGP SIGNATURE----- --==-=-=--