[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: Add clitest.
From: |
guix-commits |
Subject: |
01/06: gnu: Add clitest. |
Date: |
Thu, 25 Jun 2020 19:57:07 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 544df98c6d9d1be471ed8bda65a8edf5108f63bb
Author: Marius Bakke <mbakke@fastmail.com>
AuthorDate: Fri Jun 7 20:30:40 2019 +0200
gnu: Add clitest.
* gnu/packages/check.scm (clitest): New public variable.
---
gnu/packages/check.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index df9d380..c71edc7 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -117,6 +117,54 @@ source code editors and IDEs.")
(base32
"0d22h8xshmbpl9hba9ch3xj8vb9ybm5akpsbbh7yj07fic4h2hj6"))))))
+(define-public clitest
+ (package
+ (name "clitest")
+ (version "0.3.0")
+ (home-page "https://github.com/aureliojargas/clitest")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zw5wra9hc717srmcar1wm4i34kyj8c49ny4bb7y3nrvkjp2pdb5"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; This package is distributed as a single shell script and comes
+ ;; without a proper build system.
+ (delete 'configure)
+ (delete 'build)
+ (replace 'check
+ (lambda _
+ (substitute* "test.md"
+ ;; One test looks for an error from grep in the form "grep:
foo",
+ ;; but our grep returns the absolute file name on errors.
Adjust
+ ;; the test to cope with that.
+ (("sed 's/\\^e\\*grep: \\.\\*/")
+ "sed 's/.*e*grep: .*/"))
+
+ (setenv "HOME" "/tmp")
+ (invoke "./clitest" "test.md")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (install-file "clitest" (string-append out "/bin"))
+ (install-file "README.md"
+ (string-append out "/share/doc/clitest-"
,version))
+ #t))))))
+ (native-inputs
+ `(("perl" ,perl))) ;for tests
+ (synopsis "Command line test tool")
+ (description
+ "@command{clitest} is a portable shell script that performs automatic
+testing of Unix command lines.")
+ (license license:expat)))
+
(define-public cunit
(package
(name "cunit")
- branch master updated (5f46594 -> e6db891), guix-commits, 2020/06/25
- 01/06: gnu: Add clitest.,
guix-commits <=
- 02/06: gnu: xf86-video-intel: Update to 2.99.917-16.5ca3ac1., guix-commits, 2020/06/25
- 05/06: gnu: ungoogled-chromium: Convert computed origin to source snippet., guix-commits, 2020/06/25
- 03/06: gnu: debootstrap: Wrap with gpg and wget in PATH., guix-commits, 2020/06/25
- 04/06: gnu: openvswitch: Update to 2.13.0., guix-commits, 2020/06/25
- 06/06: gnu: ungoogled-chromium: Remove all Blink performance tests., guix-commits, 2020/06/25