all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 64255@debbugs.gnu.org
Cc: Hilton Chain <hako@ultrarare.space>, Reza Housseini <reza@housseini.me>
Subject: [bug#64255] [PATCH 1/2] gnu: Add ftest.
Date: Fri, 23 Jun 2023 23:35:25 +0800	[thread overview]
Message-ID: <3984f2b4285c7f0a688096f3bd2771b10f898db1.1687527788.git.hako@ultrarare.space> (raw)
In-Reply-To: <cover.1687527788.git.hako@ultrarare.space>

From: Reza Housseini <reza@housseini.me>

* gnu/packages/check.scm (ftest): New variable.

Co-authored-by: Hilton Chain <hako@ultrarare.space>
---
 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 <jgart@dismail.de>
 ;;; Copyright © 2023 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
 ;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
+;;; Copyright © 2023 Reza Housseini <reza@housseini.me>
+;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
 ;;;
 ;;; 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





  reply	other threads:[~2023-06-23 15:36 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <832fd8ce-7234-0521-55bf-a2c81f8c48d8@housseini.me>
2023-05-28  8:07 ` [bug#63765] [PATCH 0/8] gnu: python-lief: Update to 0.13.0 Hilton Chain via Guix-patches via
2023-05-28  8:11   ` [bug#63765] [PATCH 1/8] gnu: Add ftest-for-utfcpp Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 2/8] gnu: utfcpp: Update to 3.2.3 Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 3/8] gnu: mbedtls-apache: Rename package to mbedtls-apache-lts Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 4/8] gnu: mbedtls-apache-for-hiawatha: Use inherited source Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 5/8] gnu: mbedtls-apache-lts: Update to 2.28.3 Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 6/8] gnu: Add mbedtls-apache, version 3.4.0 Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 7/8] gnu: Add frozen Hilton Chain via Guix-patches via
2023-05-28  8:11     ` [bug#63765] [PATCH 8/8] gnu: python-lief: Update to 0.13.0 Hilton Chain via Guix-patches via
2023-05-28 12:54   ` [bug#63765] [PATCH v2 0/8] gnu: python-lief: Update to 0.13.1 Hilton Chain via Guix-patches via
2023-05-28 12:56     ` [bug#63765] [PATCH v2 1/8] gnu: Add ftest-for-utfcpp Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 2/8] gnu: utfcpp: Update to 3.2.3 Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 3/8] gnu: mbedtls-apache: Rename package to mbedtls-apache-lts Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 4/8] gnu: mbedtls-apache-for-hiawatha: Use inherited source Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 5/8] gnu: mbedtls-apache-lts: Update to 2.28.3 Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 6/8] gnu: Add mbedtls-apache, version 3.4.0 Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 7/8] gnu: Add frozen Hilton Chain via Guix-patches via
2023-05-28 12:56       ` [bug#63765] [PATCH v2 8/8] gnu: python-lief: Update to 0.13.1 Hilton Chain via Guix-patches via
2023-06-23  6:24   ` [bug#63765] [PATCH v3 0/8] gnu: python-lief: Update to 0.13.2 Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 1/8] gnu: Add ftest-for-utfcpp Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 2/8] gnu: utfcpp: Update to 3.2.3 Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 3/8] gnu: mbedtls-apache: Rename package to mbedtls-apache-lts Hilton Chain via Guix-patches via
2023-06-26 18:59       ` Liliana Marie Prikler
2023-06-23  6:24     ` [bug#63765] [PATCH v3 4/8] gnu: mbedtls-apache-for-hiawatha: Use inherited source Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 5/8] gnu: mbedtls-apache-lts: Update to 2.28.3 Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 6/8] gnu: Add mbedtls-apache, version 3.4.0 Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 7/8] gnu: Add frozen Hilton Chain via Guix-patches via
2023-06-23  6:24     ` [bug#63765] [PATCH v3 8/8] gnu: python-lief: Update to 0.13.2 Hilton Chain via Guix-patches via
2023-06-23  7:24   ` [bug#63765] ftest and utfcpp in issue 62473 reza via Guix-patches via
2023-06-23  7:39     ` Hilton Chain via Guix-patches via
     [not found]       ` <d4281dd0-6488-00bd-1ee0-8d92a1104c67@housseini.me>
2023-06-23  7:58         ` reza via Guix-patches via
2023-06-23 15:33   ` [bug#63765] [PATCH 0/2] gnu: utfcpp: Update to 3.2.3 Hilton Chain via Guix-patches via
2023-06-23 15:35     ` Hilton Chain via Guix-patches via [this message]
2023-06-23 15:35     ` [bug#64255] [PATCH 2/2] " Hilton Chain via Guix-patches via
2023-08-03 14:05     ` [bug#64255] [PATCH v2 0/2] " Hilton Chain via Guix-patches via
2023-08-03 14:06       ` [bug#64255] [PATCH v2 1/2] gnu: Add ftest Hilton Chain via Guix-patches via
2023-08-03 14:06       ` [bug#64255] [PATCH v2 2/2] gnu: utfcpp: Update to 3.2.3 Hilton Chain via Guix-patches via
2023-08-13  4:50     ` [bug#64255] [PATCH v3 0/2] gnu: utfcpp: Update to 3.2.4 Hilton Chain via Guix-patches via
2023-08-13  4:51       ` [bug#64255] [PATCH v3 1/2] gnu: Add ftest Hilton Chain via Guix-patches via
2023-08-13  4:51       ` [bug#64255] [PATCH v3 2/2] gnu: utfcpp: Update to 3.2.4 Hilton Chain via Guix-patches via
2023-08-30 12:57     ` [bug#64255] Green light Andreas Enge
2023-09-01  9:00       ` bug#64255: " Hilton Chain via Guix-patches via
2023-06-28 18:33   ` [bug#63765] [PATCH v4 0/6] gnu: python-lief: Update to 0.13.2 Hilton Chain via Guix-patches via
2023-06-28 18:35     ` [bug#64333] [PATCH v4 1/6] gnu: mbedtls-apache: Rename package to mbedtls-apache-lts Hilton Chain via Guix-patches via
2023-06-29  4:22       ` Liliana Marie Prikler
2023-06-28 18:35     ` [bug#64332] [PATCH v4 2/6] gnu: mbedtls-apache-for-hiawatha: Use inherited source Hilton Chain via Guix-patches via
     [not found]       ` <handler.64332.B.168797732415505.ack@debbugs.gnu.org>
2023-06-28 18:44         ` bug#64336: bug#64332: Acknowledgement ([PATCH v4 2/6] gnu: mbedtls-apache-for-hiawatha: Use inherited source.) hako via Guix-patches via
2023-06-28 18:35     ` [bug#64334] [PATCH v4 3/6] gnu: mbedtls-apache-lts: Update to 2.28.3 Hilton Chain via Guix-patches via
2023-06-28 18:35     ` [bug#64335] [PATCH v4 4/6] gnu: Add mbedtls-apache, version 3.4.0 Hilton Chain via Guix-patches via
2023-06-28 18:35     ` [bug#64336] [PATCH v4 5/6] gnu: Add frozen Hilton Chain via Guix-patches via
2023-06-28 18:35     ` [bug#64337] [PATCH v4 6/6] gnu: python-lief: Update to 0.13.2 Hilton Chain via Guix-patches via
2023-06-30  7:43   ` [bug#63765] [PATCH v5 0/6] " Hilton Chain via Guix-patches via
2023-06-30  7:44     ` [bug#63765] [PATCH v5 1/6] gnu: mbedtls-apache: Rename package to mbedtls-apache-lts Hilton Chain via Guix-patches via
2023-06-30  7:44     ` [bug#63765] [PATCH v5 2/6] gnu: mbedtls-apache-for-hiawatha: Use inherited source Hilton Chain via Guix-patches via
2023-06-30  7:44     ` [bug#63765] [PATCH v5 3/6] gnu: mbedtls-apache-lts: Update to 2.28.3 Hilton Chain via Guix-patches via
2023-06-30  7:44     ` [bug#63765] [PATCH v5 4/6] gnu: Add mbedtls-apache, version 3.4.0 Hilton Chain via Guix-patches via
2023-06-30  7:44     ` [bug#63765] [PATCH v5 5/6] gnu: Add frozen Hilton Chain via Guix-patches via
2023-06-30  7:44     ` [bug#63765] [PATCH v5 6/6] gnu: python-lief: Update to 0.13.2 Hilton Chain via Guix-patches via
2023-08-05 13:18   ` [bug#63765] [PATCH v6 00/10] " Hilton Chain via Guix-patches via
2023-08-05 13:18     ` [bug#63765] [PATCH v6 01/10] gnu: mbedtls-apache: Rename to mbedtls-apache-lts Hilton Chain via Guix-patches via
2023-08-05 13:18     ` [bug#63765] [PATCH v6 02/10] gnu: mbedtls-apache-for-hiawatha: Use inherited source Hilton Chain via Guix-patches via
2023-08-05 13:18     ` [bug#63765] [PATCH v6 03/10] gnu: mbedtls-apache-lts: Update to 2.28.4 Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 04/10] gnu: Add mbedtls-apache, version 3.4.1 Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 05/10] gnu: Add frozen Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 06/10] gnu: Add boost-leaf Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 07/10] gnu: Add tcb-span Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 08/10] gnu: Add melkor Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 09/10] gnu: python-lief: Update to 0.13.2 Hilton Chain via Guix-patches via
2023-08-05 13:19     ` [bug#63765] [PATCH v6 10/10] gnu: python-lief: Rename to lief Hilton Chain via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3984f2b4285c7f0a688096f3bd2771b10f898db1.1687527788.git.hako@ultrarare.space \
    --to=guix-patches@gnu.org \
    --cc=64255@debbugs.gnu.org \
    --cc=hako@ultrarare.space \
    --cc=reza@housseini.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.