guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e0bdc8a4d77549af2a04c27e4c17fa6c28892c74
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Wed Jul 30 15:11:10 2025 +0900

    gnu: Add snitch.
    
    * gnu/packages/check.scm (snitch): New variable.
    
    Change-Id: I974dc6c40e3f0bd44cdd2e99dae1781d5a36dead
---
 gnu/packages/check.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 1ad5e40aba..48c886d345 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -615,6 +615,33 @@ similar to @code{log4j}.  It is designed to work in a 
similar manner to JUnit,
 PyUnit and others.")
     (license license:asl2.0)))
 
+(define-public snitch
+  (package
+    (name "snitch")
+    (version "1.3.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/snitch-org/snitch";)
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0mf55yi8ahpczl9jz2is3dnghfi3g9qz5vch7mx7akqx4gfhhviz"))))
+    (build-system cmake-build-system)
+    (arguments (list #:configure-flags
+                     #~(list "-DBUILD_SHARED_LIBS=ON"
+                             "-DSNITCH_DO_TEST=ON"
+                             "-DSNITCH_USE_SYSTEM_DOCTEST=ON")))
+    (native-inputs (list doctest))
+    (home-page "https://github.com/snitch-org/snitch";)
+    (synopsis "Lightweight C++20 testing framework")
+    (description "@code{snitch} aims to be a simple, cheap, non-invasive, and
+user-friendly testing framework.  The design philosophy is to keep the testing
+API lean, including only what is strictly necessary to present clear messages
+when a test fails.")
+    (license license:boost1.0)))
+
 ;; When dependent packages upgraded to use newer version of catch, this one 
should
 ;; be removed.
 (define-public catch-framework

Reply via email to