From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QPIfMOi7lWTJQQEASxT56A (envelope-from ) for ; Fri, 23 Jun 2023 17:36:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2DZIMOi7lWS7VwAA9RJhRA (envelope-from ) for ; Fri, 23 Jun 2023 17:36:08 +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 8140AF002 for ; Fri, 23 Jun 2023 17:36:08 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCipS-0008Mv-GP; Fri, 23 Jun 2023 11:36:06 -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 1qCipO-0008M9-IQ for guix-patches@gnu.org; Fri, 23 Jun 2023 11:36: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 1qCipO-0006tf-5a for guix-patches@gnu.org; Fri, 23 Jun 2023 11:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCipO-0001xU-1r for guix-patches@gnu.org; Fri, 23 Jun 2023 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64255] [PATCH 1/2] gnu: Add ftest. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Jun 2023 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64255 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64255@debbugs.gnu.org Cc: Hilton Chain , Reza Housseini Received: via spool by 64255-submit@debbugs.gnu.org id=B64255.16875345477491 (code B ref 64255); Fri, 23 Jun 2023 15:36:02 +0000 Received: (at 64255) by debbugs.gnu.org; 23 Jun 2023 15:35:47 +0000 Received: from localhost ([127.0.0.1]:39387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCip9-0001wk-2b for submit@debbugs.gnu.org; Fri, 23 Jun 2023 11:35:47 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:48856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCip6-0001wa-85 for 64255@debbugs.gnu.org; Fri, 23 Jun 2023 11:35:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1687534349; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=oj18g5DwnNEAmlVv9N9VhElLwIQZULcfj1fcFXX51Tg=; b=rbGGulq9rrZmtkl562qR5FcVUN7b7LtDj1YVEYJysQ9TyXqfLj8JPdvQVPsdTMxsM6ddJJ TMe9LGDfQoornS+9SmeRH/P3DiwTlNnNMVOy7dahmvb/rMiT4ctoIcGk7a1Jz5NuHzA6QY /KdDCzdSWy43fWcxH0kyA2FHXR4uRbo/18nc6+tUF5GL09+sdI64UV4s1YfBgBGjvwWetR MTDF9O8zK58JTfKM51EyuaRrnr0rMZnhHD5nb7rtSlscYJr6DGunOGccPf3ooyGOA7HERF e1O2HMrbPEk4FNbJSwbDXjv1Iuomx3wF3ZLdg5JiPABniY69lnYXttzZwL3jKw== Date: Fri, 23 Jun 2023 23:35:25 +0800 Message-Id: <3984f2b4285c7f0a688096f3bd2771b10f898db1.1687527788.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- 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: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain 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-Seal: i=1; s=key1; d=yhetil.org; t=1687534568; a=rsa-sha256; cv=none; b=hCQ9bgbdlS7HUyTCgAnfePgy7PyhPGGuOu8SbvnwP3YTdy0cEWBrbsjL3g8P82iWqdkqzW uXXgRHB5cPvJx4ajgqOwC8NIDxLgkcZ7xqKnAWhhgPaKDIA9OS7hyvNagpFYvvutPXeM1Y YOwl06FswRpsgAegf7e+6dRBRK5pQrNMM3vyUhwL31vV50v/1OlZgnvAo5muQsOuNLycut IhWP+8LLdY42Ff0+wNKOU2O5WpUnjVZKS8yQfgbh+BXnm/hcgL4zfULmJnaFbTwNBzlYmi hRG35xLGQbw7pjnQJEihV5iooq54b8Q8DmN0cVHHJREXzk0TaYDwtO35d+7CMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=rbGGulq9; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687534568; 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=oj18g5DwnNEAmlVv9N9VhElLwIQZULcfj1fcFXX51Tg=; b=iIDGUBQ0hCSX8SboYeMnCeueMpBSnOj6ewFfFnuXhGmsmmPE8OM9H4G0nSvLpLovDWiJs5 pRfLhw1QmTtnKvPvwgLaGa2V4HgXFXyf7nUglKUQL/672JLBLE2MuHmYKq+Nww2di1A0qh q0LQc8Ht3bcmxjTCeE1QD3Ka6FvPsbELB2MUmDESkR73s0AkQdp117GmAok4GhCYdyIdUs Fa4DFvx+SeJ5uCrTBntQudZX6iK536v45sExpBhGBu+lScrAuHS8IT/3Xm/UBPUGavVaZD U03jO7kU/DIkTGO3zU291aFHGDzLekHKK2gMUjHqylnH39Dg2B+b45kitpZWbQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=rbGGulq9; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.25 X-Spam-Score: -4.25 X-Migadu-Queue-Id: 8140AF002 X-TUID: HWps9qSFsqMa From: Reza Housseini * gnu/packages/check.scm (ftest): New variable. Co-authored-by: Hilton Chain --- gnu/packages/check.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 87728fefa3..0aa519ad67 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -43,6 +43,8 @@ ;;; Copyright © 2022 jgart ;;; Copyright © 2023 Luis Felipe López Acevedo ;;; Copyright © 2023 Timo Wilken +;;; Copyright © 2023 Reza Housseini +;;; Copyright © 2023 Hilton Chain ;;; ;;; This file is part of GNU Guix. ;;; @@ -65,6 +67,7 @@ (define-module (gnu packages check) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) @@ -92,6 +95,7 @@ (define-module (gnu packages check) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system go) @@ -863,6 +867,43 @@ (define-public doctest has been designed to be fast, light and unintrusive.") (license license:expat))) +(define-public ftest + ;; There aren't any releases and it looks more like a small side project. + ;; It is included for completness to run tests for package utfcpp. + (let ((commit "c4ad4af0946b73ce1a40cbc72205d15d196c7e06") + (revision "0")) + (package + (name "ftest") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nemtrif/ftest") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jcd76zjhx5f2nsi80hj7gmywgpz1f7vcw8lv5yf7gx0l99dn86x")))) + ;; No CMakeLists.txt file provided, only one to run tests + (build-system copy-build-system) + (arguments + (list #:install-plan + #~'(("ftest.h" "include/ftest/")) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'check + (lambda _ + (with-directory-excursion "tests" + (invoke "cmake" ".") + (invoke "make") + (invoke "ctest"))))))) + (native-inputs (list cmake-minimal)) + (home-page "https://github.com/nemtrif/ftest") + (synopsis "C++ testing framework") + (description + "This package provides a simple and limited unit-test framework for C++.") + (license license:boost1.0)))) + (define-public go-github.com-smartystreets-gunit (package (name "go-github.com-smartystreets-gunit") -- 2.40.1