unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Saku Laesvuori <saku@laesvuori.fi>,
	Felix Lechner <felix.lechner@lease-up.com>
Cc: guix-devel@gnu.org
Subject: Re: Separating test inputs?
Date: Tue, 02 Jan 2024 22:13:05 +0100	[thread overview]
Message-ID: <a5749684a453526434f0427c2649b8231a4529ce.camel@gmail.com> (raw)
In-Reply-To: <34hukgotkplcjh5kqruqdrfdl7mhod6jgxctkf5njbzw2crseu@dyvgd2fa5ojk>

Am Dienstag, dem 02.01.2024 um 10:14 +0200 schrieb Saku Laesvuori:
> > A better test infrastructure in Guix would probably be good, but is
> > not ready yet. Would it make sense, however, to split out those
> > inputs only needed for testing?
> > 
> > Such a step would probably make bootstrapping new architectures a
> > lot easier. It would also reduce the dependency graph in Guix,
> > since tests are not needed to either build or use a package.
> > 
> > In Debian, test prerequisites are annotated awkwardly with
> > <!nocheck> in the build prerequisites. (I think Guix calls them
> > native-inputs.)
> > You can see some of Debian's funny notations here [1] and here. [2]
> > 
> > This is a proposal for 'test-inputs'. Any thoughts?
> 
> An additional test-inputs field sounds like a good idea. Maybe the
> test-inputs could be made available just for the test phase (I'd
> assume this could be implemented with add-test-inputs and remove-
> test-inputs phases) so that they would be isolated from other parts
> of the build process.
Adding inputs only during check will not work for build systems that
actually need a configure phase, such as gnu, cmake, or meson.  Python
might be a weird outlier where testing is more loosely coupled from the
build.

I think rather than have a specific category of test inputs, we might
want to have a without-input transformer to remove unwanted inputs from
a package.  Since we have with-input already, it's the obvious thing to
do :)

Cheers


      reply	other threads:[~2024-01-02 21:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-02  5:31 Separating test inputs? Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-01-02  7:40 ` Ricardo Wurmus
2024-01-02  8:14 ` Saku Laesvuori
2024-01-02 21:13   ` Liliana Marie Prikler [this message]

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=a5749684a453526434f0427c2649b8231a4529ce.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    --cc=saku@laesvuori.fi \
    /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).