From d3a25d86087018fa02639768cefd3dfbdb735eeb Mon Sep 17 00:00:00 2001 From: gemmaro Date: Fri, 30 Aug 2024 00:14:09 +0900 Subject: gnu: Add toml-test. * gnu/packages/check.scm (toml-test): New variable. Change-Id: I287cc46f371597e8557cb4eb255391d2c6766ddf Signed-off-by: Sharlatan Hellseher --- gnu/packages/check.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu') 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 @@ (define-public theft (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 + ;; . + (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") -- cgit v1.2.3