From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eCVFJ4Vh2GSzRwAASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 06:52:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oINWJoVh2GQ1PgEAG6o9tA (envelope-from ) for ; Sun, 13 Aug 2023 06:52:21 +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 E4CB3513BB for ; Sun, 13 Aug 2023 06:52:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=38S0BE6u; 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=1691902341; 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=/3jhAewYRiGnPDbiArcFjo2IUVdxy1hmOw/1hD2xAAo=; b=AlZhjtS1SFj9l+HXwoYY8bqXoIkS9mx/DLaLBE/+Yv7y64hQYzISVtMysmFg5fTXs3HrnF saxOxhT6g51uZjC0FFkRUil6miKNcOTcEiSREZOSRmFtP2/bBIXefiXxdJCbSh3Sdrc0A9 ff3FGhQokRBo9RX+sorKARU9QscFmbTvaf8ypWdhAJ4uEuyXLLXgbklJB3LPsAAdZVX2MR PwqPdoWEX47+oHfMyhwabhGK1iUFpJykg9ji7lZrCu97qkvACqXe5bTaeA9NgEuvxHQI66 nROJiM2r8ayjKNfQEgl1aQJDuJeZqaZk3fYmTvus7WjmhFaReJfPIn/aXwuj5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=38S0BE6u; 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=1691902341; a=rsa-sha256; cv=none; b=n1x8s+BCA+ZQjNf4u1SzLvFG6JyLR8aGUw+ntdHLFrosNmfjI8DBTnwBOvNWdc6iurZyaF /fsrVamRKFUE/VdGd/ugkrwIgrdXsWnIOraaA+8ZckSDjMOSf93aCMJrSAYxT3gi4M0TJ9 E4pQnPyORd1xurtaGmU8qw0dfvG1TibJzqf69P31W3fIH+X/RVko3mk/lcGoZwWQwgHK71 TK6+3Bz0SHQyXY9n5EyMs8pyw9bsZJnXNbdVqhTJSAc2nHtk4BjNWWZ6oYn3zHMnx9R8yT PKnsGBH421/iHXAx46Y6Nq++w+InoAwNpLB9niX+9NUnHTAV9M7BCGH0Ne1kBw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV35J-00035T-0T; Sun, 13 Aug 2023 00:52:13 -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 1qV359-00034b-KD for guix-patches@gnu.org; Sun, 13 Aug 2023 00:52:04 -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 1qV359-0000rS-CD for guix-patches@gnu.org; Sun, 13 Aug 2023 00:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qV358-0001VK-Vv for guix-patches@gnu.org; Sun, 13 Aug 2023 00:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64255] [PATCH v3 1/2] gnu: Add ftest. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 13 Aug 2023 04:52: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.16919023105737 (code B ref 64255); Sun, 13 Aug 2023 04:52:02 +0000 Received: (at 64255) by debbugs.gnu.org; 13 Aug 2023 04:51:50 +0000 Received: from localhost ([127.0.0.1]:57880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qV34v-0001US-HX for submit@debbugs.gnu.org; Sun, 13 Aug 2023 00:51:49 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:60398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qV34t-0001UJ-IB for 64255@debbugs.gnu.org; Sun, 13 Aug 2023 00:51:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691902295; 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=/3jhAewYRiGnPDbiArcFjo2IUVdxy1hmOw/1hD2xAAo=; b=38S0BE6u6VSlIMvYTdoygBHQX4QO3YAQfY7GeWeXl3VSc33J4FezlNoAdgznLfEBWU4HAi EOa/hIRYJoePCM1RRCFGpXRzD3YsFztBpFxBcE3PyX2L5gbMFE1mfy/K6Dmlseu5tSxGyH Hb5lurMcwHfKCgMIoMyw+npww6psqYE1lGr/m29/BQ7YLyxSXuyWQ43ppFzCqnbJBcItaa 2pt/DMKi9g2G1uGWzm0jzKZrFF+6arzAj8vMlY1+KyaHHEwZjNMuhTm1tfJ8m0KqWTjPEG WhDaoUVOFcSt5fZBJM51KwKKTEShPoesTNkkpveklOAJTY8XeCgQYLcUU5la1g== Date: Sun, 13 Aug 2023 12:51:10 +0800 Message-ID: <4dac2d0cc77b0fd59b4b17b033c5aced15d84eaf.1691902040.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-Spam-Score: -5.18 X-Spam-Score: -5.18 X-Migadu-Queue-Id: E4CB3513BB X-Migadu-Scanner: mx2.migadu.com X-TUID: DAYBmltBcsAp 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 1d70ea9fe0..a3a79ae189 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