From: Marius Bakke <mbakke@fastmail.com>
To: "Roel Janssen" <roel@gnu.org>,
"Ludovic Courtès" <ludovic.courtes@inria.fr>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] guix-daemon: Add option to disable garbage collection.
Date: Thu, 19 Apr 2018 17:25:27 +0200 [thread overview]
Message-ID: <87y3hj9q1k.fsf@fastmail.com> (raw)
In-Reply-To: <871sfbcs5t.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 927 bytes --]
Roel Janssen <roel@gnu.org> writes:
> I included a test, but I don't know how I can properly run this test.
> Could you elaborate on how I can test the test(s)?
[...]
> diff --git a/tests/guix-daemon.sh b/tests/guix-daemon.sh
> index 6f91eb58b..438c79c26 100644
> --- a/tests/guix-daemon.sh
> +++ b/tests/guix-daemon.sh
> @@ -194,6 +194,20 @@ do
> kill "$daemon_pid"
> done
>
> +# Make sure garbage collection from a TCP connection does not work.
> +
> +socket="127.0.0.1:9999"
> +guix-daemon --listen="$socket" &
> +daemon_pid=$!
> +
> +output=`GUIX_DAEMON_SOCKET="$socket" guix gc`
> +if [[ "$output" != *"GUIX_DAEMON_SOCKET=$socket" ]];
> +then
> + exit 1
> +fi
> +
> +kill "$daemon_pid"
> +
> # Log compression.
>
> guix-daemon --listen="$socket" --disable-chroot --debug --log-compression=gzip &
Use `make check "TESTS=tests/guix-daemon.sh"` to only run this one test.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-04-19 15:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 10:12 [PATCH] guix-daemon: Add option to disable garbage collection Roel Janssen
2018-04-03 13:40 ` Ludovic Courtès
2018-04-03 14:02 ` Roel Janssen
2018-04-11 7:57 ` Roel Janssen
2018-04-17 21:00 ` Roel Janssen
2018-04-18 21:12 ` Ludovic Courtès
2018-04-19 9:06 ` Ludovic Courtès
2018-04-19 12:12 ` Roel Janssen
2018-04-19 14:47 ` Ludovic Courtès
2018-04-19 15:15 ` Roel Janssen
2018-04-19 15:26 ` Ludovic Courtès
2018-04-19 17:07 ` Roel Janssen
2018-04-19 15:25 ` Marius Bakke [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-04-03 12:41 Adam Van Ymeren
2018-04-03 13:03 ` Roel Janssen
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=87y3hj9q1k.fsf@fastmail.com \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
--cc=ludovic.courtes@inria.fr \
--cc=roel@gnu.org \
/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).