~ruther/guix-local

e6d3f20f05ed3419f79f993ae4dbe8059c7eef58 — Sharlatan Hellseher 1 year, 9 days ago 85c3621
gnu: forgejo-runner: Enable tests.

* gnu/packages/ci.scm (forgejo-runner) [arguments] <tests?>: Enable them.
<test-flags>: Skip 2 tests.
[native-inputs]: Add go-gotest-tools-v3.

Change-Id: Ifb019f3c25bbfa0aaba1bbc846819a5226475b85
1 files changed, 12 insertions(+), 2 deletions(-)

M gnu/packages/ci.scm
M gnu/packages/ci.scm => gnu/packages/ci.scm +12 -2
@@ 44,6 44,7 @@
  #:use-module (gnu packages databases)
  #:use-module (gnu packages golang)
  #:use-module (gnu packages golang-build)
  #:use-module (gnu packages golang-check)
  #:use-module (gnu packages golang-vcs)
  #:use-module (gnu packages golang-xyz)
  #:use-module (gnu packages guile)


@@ 316,7 317,15 @@ reinventing them.")
      #:go go-1.23
      #:import-path "gitea.com/gitea/act_runner"
      #:embed-files #~(list ".*\\.json" ".*\\.js" ".*\\.sh")
      #:tests? #f
      #:test-flags
      #~(list "-skip" (string-join
                       (list
                       ;; Should be true.
                       "Test_ping"
	               ;; panic: runtime error: invalid memory address or nil
	               ;; pointer dereference.
                        "Test_runCreateRunnerFile")
                       "|"))
      #:phases #~(modify-phases %standard-phases
                   (add-after 'install 'rename-binary
                     (lambda _


@@ 337,7 346,8 @@ reinventing them.")
           go-golang-org-x-term
           go-golang-org-x-time
           go-google-golang-org-protobuf
           go-gopkg-in-yaml-v3))
           go-gopkg-in-yaml-v3
           go-gotest-tools-v3))
    (home-page "https://code.forgejo.org/forgejo/runner")
    (synopsis "Run continuous integration jobs for Forgejo")
    (description