diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-29 15:08:44 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-29 15:28:36 +0000 |
| commit | 750104cde65fd7bb50a701e5b70b92941d4b7f6b (patch) | |
| tree | d9c26766b7e7a611caf62014b9b1c332d1c18c91 /gnu | |
| parent | bf08f884f6712514e53493df1da00bc90d459ed1 (diff) | |
gnu: go-modernc-org-sqlite: Enable tests.
* gnu/packages/golang-xyz.scm (go-modernc-org-sqlite)[arguments]
<tests?>: Enable them.
<phases>: Add 'post-check-remove-test-data.
[propagated-inputs]: Remove go-modernc-org-mathutil.
[native-inputs]: Add go-github-com-google-pprof,
go-github-com-mattn-go-sqlite3, go-modernc-org-fileutil, and
go-modernc-org-mathutil.
Change-Id: I7350ce34ba61f3ffdcfa33ae6d531beba0bc7305
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/golang-xyz.scm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 72edaaa5e3b..820647cfdf3 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -24957,8 +24957,8 @@ parsers.") (origin (method git-fetch) (uri (git-reference - (url "https://gitlab.com/cznic/sqlite") - (commit (string-append "v" version)))) + (url "https://gitlab.com/cznic/sqlite") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0579vip4vn488jppjpadryxyimkw2jr8ywr4j0piqcm2zs40h509")))) @@ -24966,8 +24966,17 @@ parsers.") (arguments (list #:import-path "modernc.org/sqlite" - ;; Tests require modernc.org/ccgo/v4/lib, which is not packaged yet - #:tests? #f)) + #:phases + #~(modify-phases %standard-phases + (add-after 'check 'post-check-remove-test-data + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "testdata"))))))) + (native-inputs + (list go-github-com-google-pprof + go-github-com-mattn-go-sqlite3 + go-modernc-org-fileutil + go-modernc-org-mathutil)) (propagated-inputs (list go-github-com-dustin-go-humanize go-github-com-google-uuid @@ -24975,7 +24984,6 @@ parsers.") go-github-com-remyoudompheng-bigfft go-golang-org-x-sys go-modernc-org-libc - go-modernc-org-mathutil go-modernc-org-memory)) (home-page "https://modernc.org/sqlite") (synopsis "CGo-free port of SQLite") |
