From: ludo@gnu.org (Ludovic Courtès)
To: rain1@airmail.cc
Cc: guix-devel@gnu.org
Subject: Re: Proposed environment variable to skip running tests
Date: Sun, 22 Apr 2018 22:09:19 +0200 [thread overview]
Message-ID: <87k1szgg0g.fsf@gnu.org> (raw)
In-Reply-To: <5b415e2dbca38a354b20de465f842243@airmail.cc> (rain1@airmail.cc's message of "Sun, 22 Apr 2018 16:26:41 +0100")
Hello,
rain1@airmail.cc skribis:
> I would like to propose an environment variable that can be used to
> skip tests, e.g. export GUIX_SKIP_TESTS=1
>
> This could be implemented by changing line 297 of
> guix/guix/build/gnu-build-system.scm:
>
> (define* (check #:key target (make-flags '()) (tests? (not target))
> (test-target "check") (parallel-tests? #t)
> #:allow-other-keys)
> (if (and tests? (not (getenv "GUIX_SKIP_TESTS"))) ;;;;;; HERE
Since builds are performed in an isolated environments with a clearly
defined set of environment variables. Thus what you define would not
work as-is.
To achieve it, we’d have to, for instance, instruct guix-daemon to
special-case ‘GUIX_SKIP_TESTS’ and let it through in the build
environment.
Even though I can imagine the pain you feel while rebuilding everything
on GNU/Hurd, I’m reluctant to such changes. I would suggest using
tricks to avoid full rebuilds in your case as much as possible. (If you
provide concrete examples of rebuilds you’d like to avoid, I can perhaps
illustrate what “tricks” you could use. :-))
Thanks,
Ludo’.
prev parent reply other threads:[~2018-04-22 20:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-22 15:26 Proposed environment variable to skip running tests rain1
2018-04-22 20:09 ` Ludovic Courtès [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1szgg0g.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=rain1@airmail.cc \
/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.