From: "Ludovic Courtès" <ludo@gnu.org>
To: "Pierre-Henry Fröhring" <contact@phfrohring.com>
Cc: 57039@debbugs.gnu.org
Subject: bug#57039: `make check' yields two failed tests.
Date: Tue, 09 Aug 2022 15:50:58 +0200 [thread overview]
Message-ID: <87a68d7cfx.fsf@gnu.org> (raw)
In-Reply-To: <7489b352818b7c33071c23f385f9017cb89c78c1.camel@phfrohring.com> ("Pierre-Henry Fröhring"'s message of "Sun, 07 Aug 2022 16:13:33 +0200")
Hi,
Pierre-Henry Fröhring <contact@phfrohring.com> skribis:
> test-name: channel-news, one entry
> location: /home/phf/src/guix/tests/channels.scm:323
> source:
> + (test-assert
> + "channel-news, one entry"
[...]
> + (entry (tag "tag-for-first-news-entry")
> + (title (en "Old news.") (eo "Malnova?oj."))
The question mark here suggests you’re not running the tests with a
UTF-8 locale.
Could you add, say, ‘glibc-locales’ to your environment, ensure
GUIX_LOCPATH points to it, and set LC_ALL=en_US.UTF-8 (or similar)?
> ;;; (fail (package (name "python-foo") (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "foo" version)) (sha256 (base32 "03ygiww1c9fdgs998x4rqhxa73gq0r30rp0vq50q022wp1d6w0cz")))) (build-system python-build-system) (propagated-inputs (list python-wrong)) (home-page "http://example.com") (synopsis "summary") (description "summary") (license license:lgpl2.0)) #f)
> test-name: pypi->guix-package, wheels
> location: /home/phf/src/guix/tests/pypi.scm:276
> source:
> + (test-assert
> + "pypi->guix-package, wheels"
> + (mock ((guix import utils)
> + url-fetch
> + (lambda (url file-name)
> + (match url
> + ("https://example.com/foo-1.0.0.tar.gz"
> + (begin
> + (mkdir-p "foo-1.0.0/foo.egg-info/")
> + (with-output-to-file
> + "foo-1.0.0/foo.egg-info/requires.txt"
> + (lambda ()
> + (display
> + "wrong data to make sure we're testing wheels ")))
> + (parameterize
> + ((current-output-port (%make-void-port "rw+")))
> + (system* "tar" "czvf" file-name "foo-1.0.0/"))
> + (delete-file-recursively "foo-1.0.0")
> + (set! test-source-hash
> + (call-with-input-file file-name port-sha256))))
> + ("https://example.com/foo-1.0.0-py2.py3-none-any.whl"
> + (begin
> + (mkdir "foo-1.0.0.dist-info")
> + (with-output-to-file
> + "foo-1.0.0.dist-info/METADATA"
> + (lambda () (display test-metadata)))
> + (let ((zip-file (string-append file-name ".zip")))
> + (system*
> + "zip"
> + "-q"
> + zip-file
> + "foo-1.0.0.dist-info/METADATA")
> + (rename-file zip-file file-name))
> + (delete-file-recursively "foo-1.0.0.dist-info")))
> + (_ (error "Unexpected URL: " url)))))
> + (mock ((guix http-client)
> + http-fetch
> + (lambda (url . rest)
> + (match url
> + ("https://pypi.org/pypi/foo/json"
> + (values
> + (open-input-string test-json-1)
> + (string-length test-json-1)))
> + ("https://example.com/foo-1.0.0-py2.py3-none-any.whl"
> + #f)
> + (_ (error "Unexpected URL: " url)))))
> + (invalidate-memoization! pypi->guix-package)
> + (match (pypi->guix-package "foo")
> + (('package
> + ('name "python-foo")
> + ('version "1.0.0")
> + ('source
> + ('origin
> + ('method 'url-fetch)
> + ('uri ('pypi-uri "foo" 'version))
> + ('sha256 ('base32 (? string? hash)))))
> + ('build-system 'python-build-system)
> + ('propagated-inputs
> + ('list 'python-bar 'python-baz))
> + ('native-inputs ('list 'python-pytest))
> + ('home-page "http://example.com")
> + ('synopsis "summary")
> + ('description "summary")
> + ('license 'license:lgpl2.0))
> + (string=?
> + (bytevector->nix-base32-string test-source-hash)
> + hash))
> + (x (pk 'fail x #f))))))
> actual-value: #f
> result: FAIL
Not sure about that one. Does it still occur on current ‘master’?
See
<https://guix.gnu.org/manual/devel/en/html_node/Running-the-Test-Suite.html>
on how to run only tests from ‘tests/pypi.scm’.
Thanks,
Ludo’.
next prev parent reply other threads:[~2022-08-09 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-07 14:13 bug#57039: `make check' yields two failed tests Pierre-Henry Fröhring
2022-08-09 13:50 ` Ludovic Courtès [this message]
2022-08-09 14:44 ` Maxime Devos
2022-08-09 16:01 ` Ludovic Courtès
2022-08-09 14:50 ` Maxime Devos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a68d7cfx.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=57039@debbugs.gnu.org \
--cc=contact@phfrohring.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).