mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 12:00:35 +02:00
gnu: go-github-com-jackc-pgconn: Enable tests.
* gnu/packages/golang-xyz.scm (go-github-com-jackc-pgconn) [arguments] <tests?>: Activate them. <test-flags>: Skip 9 tests. <phases>: Add 'remove-failing-test-file. [native-inputs]: Add go-github-com-jackc-pgmock. [propagated-inputs]: Remove go-github-com-jackc-pgmock. * gnu/packages/golang-check.scm (go-github-com-jackc-pgmock-bootstrap): New variable. Change-Id: Ice47b75770fb596734f6703c3c42dbfe3e91a7a6
This commit is contained in:
parent
5b2176105e
commit
74eea25303
2 changed files with 35 additions and 4 deletions
|
@ -5083,14 +5083,33 @@ implementation in https://github.com/jackc/pgx.")
|
|||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f ; requiring running PostgreSQL server
|
||||
#:import-path "github.com/jackc/pgconn"))
|
||||
#:import-path "github.com/jackc/pgconn"
|
||||
#:test-flags
|
||||
#~(list "-skip"
|
||||
(string-join
|
||||
(list "TestConfigCopyCanBeUsedToConnect"
|
||||
"TestConnStress"
|
||||
"TestFrontendFatalErrExec"
|
||||
"TestLRUModePrepare"
|
||||
"TestLRUContext"
|
||||
"TestLRUStmtInvalidationIntegration"
|
||||
"TestLRUModeDescribe"
|
||||
"TestLRUModePrepareStress"
|
||||
"TestLRUStmtInvalidation")
|
||||
"|"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; All tests in this file rquire PostgreSQL service running.
|
||||
(add-before 'check 'remove-failing-test-files
|
||||
(lambda* (#:key import-path #:allow-other-keys)
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(delete-file "pgconn_test.go")))))))
|
||||
(native-inputs
|
||||
(list go-github-com-stretchr-testify))
|
||||
(list go-github-com-jackc-pgmock-bootstrap
|
||||
go-github-com-stretchr-testify))
|
||||
(propagated-inputs
|
||||
(list go-github-com-jackc-chunkreader-v2
|
||||
go-github-com-jackc-pgio
|
||||
go-github-com-jackc-pgmock
|
||||
go-github-com-jackc-pgpassfile
|
||||
go-github-com-jackc-pgproto3-v2
|
||||
go-github-com-jackc-pgservicefile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue