mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-golang-org-x-crypto: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-crypto): Enable tests. [arguments]: <#:phases>: Add 'remove-test-files phase. Use custom 'check phase. Change-Id: I92864633edc9133c00ea71d1200b42d1bd1c0c8b
This commit is contained in:
parent
c2efdad440
commit
0c7e5c8fe6
1 changed files with 68 additions and 9 deletions
|
@ -102,19 +102,78 @@
|
||||||
(base32 "1cnglyy3fhvnnynazfdrikkwcxv3rlxamvfxink2z241lncvwkxy"))))
|
(base32 "1cnglyy3fhvnnynazfdrikkwcxv3rlxamvfxink2z241lncvwkxy"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:import-path "golang.org/x/crypto"
|
(list
|
||||||
;; Source-only package
|
#:import-path "golang.org/x/crypto"
|
||||||
#:tests? #f
|
#:phases
|
||||||
#:phases
|
#~(modify-phases %standard-phases
|
||||||
(modify-phases %standard-phases
|
(add-after 'unpack 'remove-test-files
|
||||||
;; Source-only package
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
(delete 'build))))
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(for-each delete-file
|
||||||
|
(list
|
||||||
|
;; Network access requried: go mod download -json
|
||||||
|
;; github.com/google/wycheproof@v0.0.0-20191219022705-2196000605e4.
|
||||||
|
"internal/wycheproof/aead_test.go"
|
||||||
|
"internal/wycheproof/aes_cbc_test.go"
|
||||||
|
"internal/wycheproof/dsa_test.go"
|
||||||
|
"internal/wycheproof/ecdh_stdlib_test.go"
|
||||||
|
"internal/wycheproof/ecdh_test.go"
|
||||||
|
"internal/wycheproof/ecdsa_test.go"
|
||||||
|
"internal/wycheproof/eddsa_test.go"
|
||||||
|
"internal/wycheproof/hkdf_test.go"
|
||||||
|
"internal/wycheproof/hmac_test.go"
|
||||||
|
"internal/wycheproof/rsa_oaep_decrypt_test.go"
|
||||||
|
"internal/wycheproof/rsa_pss_test.go"
|
||||||
|
"internal/wycheproof/rsa_signature_test.go"
|
||||||
|
"internal/wycheproof/wycheproof_test.go")))))
|
||||||
|
;; XXX: Workaround for go-build-system's lack of Go modules
|
||||||
|
;; support.
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(invoke "go" "test" "-v"
|
||||||
|
;; acme - cycle with go-golang-org-x-net
|
||||||
|
"./argon2/..."
|
||||||
|
"./bcrypt/..."
|
||||||
|
"./blake2b/..."
|
||||||
|
"./blake2s/..."
|
||||||
|
"./blowfish/..."
|
||||||
|
"./bn256/..."
|
||||||
|
"./cast5/..."
|
||||||
|
"./chacha20/..."
|
||||||
|
"./chacha20poly1305/..."
|
||||||
|
"./cryptobyte/..."
|
||||||
|
"./curve25519/..."
|
||||||
|
"./ed25519/..."
|
||||||
|
"./hkdf/..."
|
||||||
|
"./internal/..."
|
||||||
|
"./md4/..."
|
||||||
|
"./nacl/..."
|
||||||
|
"./ocsp/..."
|
||||||
|
"./openpgp/..."
|
||||||
|
"./otr/..."
|
||||||
|
"./pbkdf2/..."
|
||||||
|
"./pkcs12/..."
|
||||||
|
"./poly1305/..."
|
||||||
|
"./ripemd160/..."
|
||||||
|
"./salsa20/..."
|
||||||
|
"./scrypt/..."
|
||||||
|
"./sha3/..."
|
||||||
|
"./ssh/..."
|
||||||
|
"./tea/..."
|
||||||
|
"./twofish/..."
|
||||||
|
"./x509roots/..."
|
||||||
|
"./xtea/..."
|
||||||
|
"./xts/..."))))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-golang-org-x-sys go-golang-org-x-term))
|
(list go-golang-org-x-sys go-golang-org-x-term))
|
||||||
(home-page "https://go.googlesource.com/crypto/")
|
(home-page "https://go.googlesource.com/crypto/")
|
||||||
(synopsis "Supplementary cryptographic libraries in Go")
|
(synopsis "Supplementary cryptographic libraries in Go")
|
||||||
(description "This package provides supplementary cryptographic libraries
|
(description
|
||||||
for the Go language.")
|
"This package provides supplementary cryptographic libraries for the Go
|
||||||
|
language.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public go-golang-org-x-exp
|
(define-public go-golang-org-x-exp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue