diff options
-rw-r--r-- | gnu/packages/golang-check.scm | 12 | ||||
-rw-r--r-- | gnu/packages/golang-xyz.scm | 27 |
2 files changed, 35 insertions, 4 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 108db31883..4881c4f886 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -704,6 +704,18 @@ used in go-github-com-jackc-pgx.") "This package implements a functionality to mock a PostgreSQL server.") (license license:expat))) +(define-public go-github-com-jackc-pgmock-bootstrap + (hidden-package + (package + (inherit go-github-com-jackc-pgmock) + (arguments + (list #:tests? #f + #:import-path "github.com/jackc/pgmock" + #:phases + #~(modify-phases %standard-phases + (delete 'build)))) + (native-inputs '())))) + (define-public go-github-com-jacobsa-oglematchers (package (name "go-github-com-jacobsa-oglematchers") diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 8aa628db59..f1b2aae6fe 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -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 |