From: "Ludovic Courtès" <ludo@gnu.org>
To: 60520@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>,
"Ricardo Wurmus" <rekado@elephly.net>,
"Hartmut Goebel" <h.goebel@crazy-compilers.com>
Subject: [bug#60520] [PATCH 0/4] Tests for 'guix refresh'
Date: Tue, 3 Jan 2023 17:44:39 +0100 [thread overview]
Message-ID: <20230103164439.16477-1-ludo@gnu.org> (raw)
Hi!
Following the discussion at
<https://lists.gnu.org/archive/html/guix-devel/2022-12/msg00311.html>,
I thought it’s about time to have tests for the ‘guix refresh’ CLI
(so far we had tests for importers, for (guix gnu-maintenance), and
for (guix upstream), but that did not cover the logic in ‘guix refresh’
itself as we’ve seen).
The strategy is to define a “pseudo updater”: the test defines an
environment variable that specifies which package updates the updater
should simulate, and then we go on using ‘guix refresh’.
Thoughts?
Ludo’.
Ludovic Courtès (4):
gnu-maintenance: Factorize 'false-if-networking-failure'.
gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking
errors.
import: stackage: Catch networking errors in predicate.
refresh: Add CLI tests.
Makefile.am | 4 +-
guix/gnu-maintenance.scm | 31 ++++-------
guix/import/stackage.scm | 15 ++---
guix/import/test.scm | 88 +++++++++++++++++++++++++++++
guix/import/utils.scm | 24 +++++++-
tests/guix-refresh.sh | 117 +++++++++++++++++++++++++++++++++++++++
6 files changed, 251 insertions(+), 28 deletions(-)
create mode 100644 guix/import/test.scm
create mode 100644 tests/guix-refresh.sh
base-commit: 473692b812b4ab4267d9bddad0fb27787d2112ff
--
2.38.1
next reply other threads:[~2023-01-03 16:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 16:44 Ludovic Courtès [this message]
2023-01-03 17:03 ` [bug#60520] [PATCH 1/4] gnu-maintenance: Factorize 'false-if-networking-failure' Ludovic Courtès
2023-01-03 17:03 ` [bug#60520] [PATCH 2/4] gnu-maintenance: 'gnu' and 'gnu-ftp' predicates catch networking errors Ludovic Courtès
2023-01-03 17:03 ` [bug#60520] [PATCH 3/4] import: stackage: Catch networking errors in predicate Ludovic Courtès
2023-01-03 17:03 ` [bug#60520] [PATCH 4/4] refresh: Add CLI tests Ludovic Courtès
2023-01-03 18:51 ` [bug#60520] [PATCH 0/4] Tests for 'guix refresh' Hartmut Goebel
2023-01-08 15:16 ` bug#60520: " Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230103164439.16477-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=60520@debbugs.gnu.org \
--cc=h.goebel@crazy-compilers.com \
--cc=rekado@elephly.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.