From 549654ab5679e45e8bed4eac500c719199348da8 Mon Sep 17 00:00:00 2001 From: zamfofex Date: Wed, 14 Jun 2023 09:48:41 -0300 Subject: [PATCH] gnu: Add ghc-proctest. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/haskell-check.scm (ghc-proctest): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/haskell-check.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/haskell-check.scm b/gnu/packages/haskell-check.scm index da05582400..5447ecec1e 100644 --- a/gnu/packages/haskell-check.scm +++ b/gnu/packages/haskell-check.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2020 John Soo ;;; Copyright © 2020 Carlo Holl ;;; Copyright © 2021 John Kehayias +;;; Copyright © 2023 zamfofex ;;; ;;; This file is part of GNU Guix. ;;; @@ -1180,3 +1181,26 @@ result of golden tests.") "Integrate @@inspection-testing@@ into @@tasty@@ test suites.") (license license:expat))) +(define-public ghc-proctest + (package + (name "ghc-proctest") + (version "0.1.3.0") + (source (origin + (method url-fetch) + (uri (hackage-uri "proctest" version)) + (sha256 + (base32 + "02iz323arx9zwclvspgaaqz81bp6jdnj89pjm08n2gamg39zsbdn")))) + (build-system haskell-build-system) + (properties '((upstream-name . "proctest"))) + (inputs (list ghc-hunit ghc-hspec ghc-quickcheck)) + (home-page "https://github.com/nh2/proctest") + (synopsis "IO library for testing interactive command line programs") + (description + "This package provides an IO library for testing interactive command line +programs. Proctest aims to simplify interacting with and testing terminal +programs, providing convenience functions for starting programs and reading +their output. All blocking operations support timeouts so that misbehaving +programs cannot block your test pipeline. Find more examples and contribute +at @url{https://github.com/nh2/proctest}.") + (license license:expat)))