aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorgemmaro <gemmaro.dev@gmail.com>2024-08-30 00:14:09 +0900
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-09-23 21:52:17 +0100
commitd3a25d86087018fa02639768cefd3dfbdb735eeb (patch)
tree35c8388d4eb6d5ccd7584dfa8eed66d48d3f4db0 /gnu
parent013b046fca48202f19208a9fe0ae608f02b60953 (diff)
downloadguix-d3a25d86087018fa02639768cefd3dfbdb735eeb.tar
guix-d3a25d86087018fa02639768cefd3dfbdb735eeb.tar.gz
gnu: Add toml-test.
* gnu/packages/check.scm (toml-test): New variable. Change-Id: I287cc46f371597e8557cb4eb255391d2c6766ddf Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/check.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 656a2e1730..a3fa6d8d6c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3624,6 +3624,42 @@ allowing you to declaratively define \"match\" rules.")
(description "Theft is a library for property-based testing.")
(license license:isc)))
+(define-public toml-test
+ (package
+ ;; Upstream is informed to provide man/info for the project, see
+ ;; <https://github.com/toml-lang/toml-test/issues/163>.
+ (name "toml-test")
+ (version "1.5.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/toml-lang/toml-test")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "188xcsxgn20pjnddfn3mvx7wak030xdgkhxkhjiijfap37gbv6df"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:import-path "github.com/toml-lang/toml-test/cmd/toml-test"
+ #:unpack-path "github.com/toml-lang/toml-test"))
+ (native-inputs
+ (list go-zgo-at-zli
+ go-zgo-at-jfmt
+ go-github-com-burntsushi-toml))
+ (home-page "https://github.com/toml-lang/toml-test")
+ (synopsis "Language agnostic test suite for TOML parsers")
+ (description
+ "@samp{toml-test} is a language-agnostic test suite to verify the
+correctness of @url{https://toml.io,TOML} parsers and writers. Tests are
+divided into two groups: @emph{invalid} and @emph{valid}. Decoders or
+encoders that reject @emph{invalid} tests pass the tests, and decoders that
+accept @emph{valid} tests and output precisely what is expected pass the
+tests. The output format is JSON.")
+ (license license:expat)))
+
(define-public unittest-cpp
(package
(name "unittest-cpp")