From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MEe+Ls60y2Tg4wAASxT56A (envelope-from ) for ; Thu, 03 Aug 2023 16:08:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uIS9Lc60y2RAkAAAG6o9tA (envelope-from ) for ; Thu, 03 Aug 2023 16:08: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 4B1A155DF3 for ; Thu, 3 Aug 2023 16:08:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b="e3tQcq/s"; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691071694; 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=q/BuQ26z4hnpHwzYbkZFJV0KlVt8J+ciqIMT2zo8Tn0=; b=rTXkkaX+1t3QMSIECL6EEHCvPd6u5jYlPyyKtTHJKV2kZz6BtgrQzVsoc2vDHW/MTapyPt y6AOr/917lSm48jnBNVE4qCHwZtwX4FiKdLsRsZjtDsjQ+QlUxUL/7MMi6FJBoFGOOoQGV iba+30Tp6wOwNu76zAfHjKvBpeBKGS9uw8zfSQPOAocizcBVIjnv3EzlJVRHXtvSCtF2qq Qm8PBku3bgl4HtOVnfSSHvuyFfUsaCiCHyZQL2Zo5kZ9CDcbfPCDS+/nJj5VBdOD0pBHi3 4a3Ka48yeYA21rWDGKJuIzVhibxgigCykowvIMTrBMokwjB8KeoQRiGlQ2v64g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b="e3tQcq/s"; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691071694; a=rsa-sha256; cv=none; b=H8nWmmd1SWT7TJ1Gk1Tw1Jqv5j7oANjkcZSlZau+PhHL2f6CqSKx+TlEtBeao+xsbk1UbN pTFAdLi9UDj+usH0vKMbDFay6/O0UOkwOFJyMcqtkFdopTdNmfFSdMcHMfGXj6weg5iozq N+L5oHL96jvdc1TM/8HNGLU9Uyeplydp0t3ULuB9LoAafRwacFfMpiIai1i7EPl2KJ5UyL rCl10AE+6EIUI8/QXOBybCLPmx4tigHvs78wj0Qp2Aw+HBybLZkoranJazORIeqhZCifqC /1uIjXE3SN+AaWOSkLUgxgozEv4AljV0g2y5o33q66ZMyStD0fMFYyRKCV8Hmw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRYzj-00023T-EZ; Thu, 03 Aug 2023 10:08:03 -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 1qRYzi-00023K-4U for guix-patches@gnu.org; Thu, 03 Aug 2023 10:08:02 -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 1qRYzh-0007mv-QO for guix-patches@gnu.org; Thu, 03 Aug 2023 10:08:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRYzh-0006oF-Ll for guix-patches@gnu.org; Thu, 03 Aug 2023 10:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64255] [PATCH v2 1/2] gnu: Add ftest. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Aug 2023 14:08:01 +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.169107164426111 (code B ref 64255); Thu, 03 Aug 2023 14:08:01 +0000 Received: (at 64255) by debbugs.gnu.org; 3 Aug 2023 14:07:24 +0000 Received: from localhost ([127.0.0.1]:52645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRYz5-0006n4-Os for submit@debbugs.gnu.org; Thu, 03 Aug 2023 10:07:24 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:52344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRYz1-0006mt-DM for 64255@debbugs.gnu.org; Thu, 03 Aug 2023 10:07:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691071634; 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=q/BuQ26z4hnpHwzYbkZFJV0KlVt8J+ciqIMT2zo8Tn0=; b=e3tQcq/sFvsxaWQGkukLYOq1/Op3sTN4ws2AzpjNoASZqSVuyjjMRfXAkWjq8KJBph0Dg3 p9ERMkVBNvuakYwund2rJAf0mcwlRt77GpHZk698kfB9VHsCVAT+fnAsohdgCaHWmDgnnn WrTws3Ojki3RlhxGXm0CHCoPP3KSXJ2EIONDe8Xc4bYeq+wAwJ+579c3Bg4GxR9p1QsevG v55FO0Wl2kuc73FoGf6sVTs/hD7fOvant3eBy9IFiN2Z3shthGL29UOOGXBrnGjbFa8jLb mI7iUVhtsRRLNjJ9E4Mk8OwJrG36YXCYLmn2rbIT0OO7KzTdg3UHfmbwfTmZ/g== Date: Thu, 3 Aug 2023 22:06:43 +0800 Message-ID: <65f32133382837082ef16d59e61146e375b665b6.1691061465.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 4B1A155DF3 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -6.64 X-Migadu-Spam-Score: -6.64 X-TUID: TQOCN+0YvYX+ 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 71dc9eb54b..51aa40f18d 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -45,6 +45,8 @@ ;;; Copyright © 2023 Timo Wilken ;;; Copyright © 2023 Zhu Zihao ;;; Copyright © 2023 Bruno Victal +;;; Copyright © 2023 Reza Housseini +;;; Copyright © 2023 Hilton Chain ;;; ;;; This file is part of GNU Guix. ;;; @@ -67,6 +69,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) @@ -94,6 +97,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) @@ -813,6 +817,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 python-gixy ;; The 0.1.20 release is missing some important fixes. ;; XXX: Commit 'e9008dcbd11f43ccac109b0cf2bf98a94e76b449' breaks tests -- 2.41.0