* [bug#74225] [PATCH] lint: Check for more types of custom 'check phases.
@ 2024-11-06 10:46 Dariqq
2024-11-16 8:07 ` Simon Tournier
0 siblings, 1 reply; 2+ messages in thread
From: Dariqq @ 2024-11-06 10:46 UTC (permalink / raw)
To: 74225
Cc: Dariqq, Christopher Baines, Josselin Poiret, Ludovic Courtès,
Mathieu Othacehe, Simon Tournier, Tobias Geerinckx-Rice
* guix/lint.scm (check-optional-tests): Also check for add-before and
add-after when adding custom 'check phases.
Change-Id: Idc959f90d7e9aa9d5001f34e00f88b41aa20fb2a
---
Hi,
Stumbled upon a test failure in u-boot-utils today which is not using #:tests? for its custom 'check phase but not being detected by the linter. Reason is that the 'check phase is added after 'install and not just replacing it.
This little patch makes it it possible to detect it and adds 38 more warnings.
guix/lint.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/guix/lint.scm b/guix/lint.scm
index 8c6c20c723..4ba728da33 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1433,6 +1433,10 @@ (define (check-optional-tests package)
(match delta
(`(replace 'check ,expression)
(check-check-procedure expression))
+ (`(add-after ,_ 'check ,expression)
+ (check-check-procedure expression))
+ (`(add-before ,_ 'check ,expression)
+ (check-check-procedure expression))
(_ '())))
(define (check-phases-deltas deltas)
(append-map check-phases-delta deltas))
base-commit: 0c1a6db8094dc6b20762eceae369daae545fc5e4
--
2.46.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [bug#74225] [PATCH] lint: Check for more types of custom 'check phases.
2024-11-06 10:46 [bug#74225] [PATCH] lint: Check for more types of custom 'check phases Dariqq
@ 2024-11-16 8:07 ` Simon Tournier
0 siblings, 0 replies; 2+ messages in thread
From: Simon Tournier @ 2024-11-16 8:07 UTC (permalink / raw)
To: Dariqq, 74225
Cc: Josselin Poiret, Mathieu Othacehe, Ludovic Courtès,
Tobias Geerinckx-Rice, Dariqq, Christopher Baines
Hi,
On Wed, 06 Nov 2024 at 10:46, Dariqq <dariqq@posteo.net> wrote:
> diff --git a/guix/lint.scm b/guix/lint.scm
> index 8c6c20c723..4ba728da33 100644
> --- a/guix/lint.scm
> +++ b/guix/lint.scm
> @@ -1433,6 +1433,10 @@ (define (check-optional-tests package)
> (match delta
> (`(replace 'check ,expression)
> (check-check-procedure expression))
> + (`(add-after ,_ 'check ,expression)
> + (check-check-procedure expression))
> + (`(add-before ,_ 'check ,expression)
> + (check-check-procedure expression))
Please note that 'check here is up to packagers. They might pick the
symbol 'tests or 'run-check or 'adjusted-tests or 'custom-tests or
whatever else. To my knowledge, there is no real convention.
Well, I do not know.
Cheers,
simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-16 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 10:46 [bug#74225] [PATCH] lint: Check for more types of custom 'check phases Dariqq
2024-11-16 8:07 ` Simon Tournier
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.