[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/14: gnu: reposurgeon: Run the test suite.
From: |
Tobias Geerinckx-Rice |
Subject: |
07/14: gnu: reposurgeon: Run the test suite. |
Date: |
Thu, 25 Jan 2018 18:32:34 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 33ecc7a4d1144db1acc331bf16819d5cfe990cc9
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Thu Jan 25 02:11:14 2018 +0100
gnu: reposurgeon: Run the test suite.
* gnu/packages/version-control.scm (reposurgeon)[arguments]: Run tests.
Add #:make-flags and extend the ‘patch-inputs’ phase to find echo.
Add new ‘set-up-test-environment’ phase.
[native-inputs]: Add cvs, git, mercurial, and subversion.
---
gnu/packages/version-control.scm | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index ded181e..a8b06b9 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1330,9 +1330,9 @@ any project with more than one developer, is one of
Aegis's major functions.")
"reposurgeon-add-missing-docbook-files.patch"))))
(build-system gnu-build-system)
(arguments
- `(#:tests? #f ;no test suite distributed
- #:make-flags
- (list (string-append "target=" (assoc-ref %outputs "out")))
+ `(#:make-flags
+ (list "ECHO=echo"
+ (string-append "target=" (assoc-ref %outputs "out")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-inputs
@@ -1341,8 +1341,10 @@ any project with more than one developer, is one of
Aegis's major functions.")
(substitute* "reposurgeon"
(("/usr/share/zoneinfo")
(string-append tzdata "/share/zoneinfo")))
+ (substitute* "test/svn-to-svn"
+ (("/bin/echo") "echo"))
#t)))
- (delete 'configure)
+ (delete 'configure) ; no configure script
(add-before 'build 'fix-docbook
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (find-files "." "\\.xml$")
@@ -1350,6 +1352,11 @@ any project with more than one developer, is one of
Aegis's major functions.")
(string-append (assoc-ref inputs "docbook-xml")
"/xml/dtd/docbook/docbookx.dtd")))
#t))
+ (add-before 'check 'set-up-test-environment
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((tzdata (assoc-ref inputs "tzdata")))
+ (setenv "TZDIR" (string-append tzdata "/share/zoneinfo"))
+ #t)))
(add-after 'install 'install-emacs-data
(lambda* (#:key outputs #:allow-other-keys)
(install-file "reposurgeon-mode.el"
@@ -1359,11 +1366,18 @@ any project with more than one developer, is one of
Aegis's major functions.")
`(("python" ,python-wrapper)
("tzdata" ,tzdata)))
(native-inputs
- `(("asciidoc" ,asciidoc)
+ `( ;; For building documentation.
+ ("asciidoc" ,asciidoc)
("docbook-xml" ,docbook-xml)
("docbook-xsl" ,docbook-xsl)
("libxml2" ,libxml2)
- ("xmlto" ,xmlto)))
+ ("xmlto" ,xmlto)
+
+ ;; For tests.
+ ("cvs" ,cvs)
+ ("git" ,git)
+ ("mercurial" ,mercurial)
+ ("subversion" ,subversion)))
(home-page "http://www.catb.org/~esr/reposurgeon/")
(synopsis "Edit version-control repository history")
(description "Reposurgeon enables risky operations that version-control
- branch master updated (ca4c7d4 -> 187e4a4), Tobias Geerinckx-Rice, 2018/01/25
- 01/14: gnu: Add gcab., Tobias Geerinckx-Rice, 2018/01/25
- 05/14: gnu: nss-mdns: Improve synopsis and description., Tobias Geerinckx-Rice, 2018/01/25
- 02/14: gnu: Add msitools., Tobias Geerinckx-Rice, 2018/01/25
- 08/14: build-system/dub: Fix typo., Tobias Geerinckx-Rice, 2018/01/25
- 12/14: gnu: 4store: Update URI., Tobias Geerinckx-Rice, 2018/01/25
- 06/14: gnu: reposurgeon: Update to 3.43., Tobias Geerinckx-Rice, 2018/01/25
- 10/14: gnu: elfutils: Mark up description., Tobias Geerinckx-Rice, 2018/01/25
- 07/14: gnu: reposurgeon: Run the test suite.,
Tobias Geerinckx-Rice <=
- 11/14: gnu: deeptools: Update URI., Tobias Geerinckx-Rice, 2018/01/25
- 04/14: gnu: nss-mdns: Update to 0.11., Tobias Geerinckx-Rice, 2018/01/25
- 13/14: gnu: keybinder: Update URI., Tobias Geerinckx-Rice, 2018/01/25
- 14/14: gnu: perl-mime-types: Update to 2.16., Tobias Geerinckx-Rice, 2018/01/25
- 03/14: gnu: appstream-glib: Update to 0.7.4., Tobias Geerinckx-Rice, 2018/01/25
- 09/14: gnu: elfutils: Update to 0.170., Tobias Geerinckx-Rice, 2018/01/25