diff options
author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-07-30 15:11:10 +0900 |
---|---|---|
committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-08-01 11:47:41 +0900 |
commit | e0bdc8a4d77549af2a04c27e4c17fa6c28892c74 (patch) | |
tree | 1ded1fccb7a4a6a101998141830a3ec3aaaac5f3 /gnu | |
parent | 8ac4fa47d8ff8959d850980a4e5e9f91a56b634f (diff) |
gnu: Add snitch.
* gnu/packages/check.scm (snitch): New variable.
Change-Id: I974dc6c40e3f0bd44cdd2e99dae1781d5a36dead
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/check.scm | 27 |
1 files changed, 27 insertions, 0 deletions
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 |