From eb0dd063a0687301b6d805feaf4b1ada87f6e120 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 8 Feb 2022 00:26:00 -0500 Subject: [PATCH] gnu: Add pict. * gnu/packages/check.scm (pict): New variable. --- gnu/packages/check.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 5a2304b436..4915a5ec88 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -35,7 +35,7 @@ ;;; Copyright © 2020 Josh Marshall ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Tanguy Le Carrour -;;; Copyright © 2020, 2021 Maxim Cournoyer +;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2021 Hugo Lecomte ;;; ;;; This file is part of GNU Guix. @@ -90,6 +90,44 @@ #:use-module (guix build-system trivial) #:use-module (srfi srfi-1)) +(define-public pict + (package + (name "pict") + (version "3.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Microsoft/pict") + ;; The tag name for v3.7.2 is odd ("release"); use the + ;; corresponding commit for now. + (commit "b10237099713ef0e45f222042cef01dc3507a611"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1hpff8x49ixlh71sbyhj1rircf0mg95v5q9y0ys52rhiph99wy3n")))) + (build-system gnu-build-system) + (arguments + (list + #:test-target "test" + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (install-file "pict" (string-append #$output "/bin"))))))) + (native-inputs (list perl)) + (home-page "https://www.pairwise.org/") + (synopsis "Pairwise Independent Combinatorial Tool") + (description "PICT is a pairwise testing tool that generates test cases +and test configurations. With PICT, you can generate tests that are more +effective than manually generated tests and in a fraction of the time required +by hands-on test case design. PICT runs as a command line tool. It takes a +model file detailing the parameters of the interface as an input and generates +a compact set of parameter value choices that represent the test cases you +should use to get comprehensive combinatorial coverage of your parameters.") + (license license:expat))) + (define-public pedansee (package (name "pedansee")