mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: git-filter-repo: Enable tests.
* gnu/packages/version-control.scm (git-filter-repo)[arguments]: Enable tests. [native-inputs]: Add git-minimal, perl, rsync. Change-Id: I74f395faaada911f5d2e5375b2fce769ab22cf92
This commit is contained in:
parent
a400f3d754
commit
b85d20e853
1 changed files with 19 additions and 4 deletions
|
@ -4403,13 +4403,18 @@ TkDiff is included for browsing and merging your changes.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"03sjxscj7pkldvwcvlqi6k79rcxkd2fyy1rjvpwyp4jgni5kddkx"))
|
"03sjxscj7pkldvwcvlqi6k79rcxkd2fyy1rjvpwyp4jgni5kddkx"))
|
||||||
|
;; TODO: Remove when updating to 2.47.0.
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
#~(substitute* "t/t9390-filter-repo.sh"
|
||||||
|
(("(test_expect_success) ('--version')" _ prefix suffix)
|
||||||
|
(string-append prefix " IN_FILTER_REPO_CLONE " suffix))))
|
||||||
;; Modified from <https://github.com/newren/git-filter-repo/pull/477>.
|
;; Modified from <https://github.com/newren/git-filter-repo/pull/477>.
|
||||||
;; Used with 'unpack-git-source phase.
|
;; Used with 'unpack-git-source phase.
|
||||||
(patches (search-patches "git-filter-repo-generate-doc.patch"))))
|
(patches (search-patches "git-filter-repo-generate-doc.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #f ;No tests.
|
|
||||||
#:imported-modules
|
#:imported-modules
|
||||||
`(,@%default-gnu-imported-modules
|
`(,@%default-gnu-imported-modules
|
||||||
(guix build python-build-system))
|
(guix build python-build-system))
|
||||||
|
@ -4431,7 +4436,8 @@ TkDiff is included for browsing and merging your changes.")
|
||||||
(mkdir-p "git-source")
|
(mkdir-p "git-source")
|
||||||
(chdir "git-source")
|
(chdir "git-source")
|
||||||
((assoc-ref %standard-phases 'unpack)
|
((assoc-ref %standard-phases 'unpack)
|
||||||
#:source #+(package-source git))
|
#:source
|
||||||
|
#+(package-source (this-package-native-input "git-minimal")))
|
||||||
(for-each
|
(for-each
|
||||||
(cut install-file <> doc-source)
|
(cut install-file <> doc-source)
|
||||||
(find-files "." "asciidoc\\.conf\\.in$|manpage.*\\.xsl$"))
|
(find-files "." "asciidoc\\.conf\\.in$|manpage.*\\.xsl$"))
|
||||||
|
@ -4449,12 +4455,21 @@ TkDiff is included for browsing and merging your changes.")
|
||||||
(string-append pre (site-packages inputs outputs))))))
|
(string-append pre (site-packages inputs outputs))))))
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda* (#:key make-flags #:allow-other-keys)
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
(apply invoke "make" "doc" make-flags))))))
|
(apply invoke "make" "doc" make-flags)))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(substitute* "t/t9391-filter-repo-lib-usage.sh"
|
||||||
|
(("/bin/bash") (which "bash")))
|
||||||
|
(when tests?
|
||||||
|
(invoke "t/run_tests")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list asciidoc
|
(list asciidoc
|
||||||
docbook-xsl
|
docbook-xsl
|
||||||
|
git-minimal
|
||||||
libxml2 ;for XML_CATALOG_FILES
|
libxml2 ;for XML_CATALOG_FILES
|
||||||
xmlto))
|
xmlto
|
||||||
|
perl
|
||||||
|
rsync))
|
||||||
(inputs (list python)) ;for the shebang
|
(inputs (list python)) ;for the shebang
|
||||||
(home-page "https://github.com/newren/git-filter-repo")
|
(home-page "https://github.com/newren/git-filter-repo")
|
||||||
(synopsis "Quickly rewrite Git repository history")
|
(synopsis "Quickly rewrite Git repository history")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue