From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: [PATCH] guix-daemon: Add option to disable garbage collection. Date: Thu, 19 Apr 2018 17:25:27 +0200 Message-ID: <87y3hj9q1k.fsf@fastmail.com> References: <87a7uklht1.fsf@gnu.org> <87po3g9znv.fsf@gnu.org> <87vad8o0av.fsf@gnu.org> <874lkijhts.fsf@gnu.org> <87sh7rmuot.fsf@inria.fr> <871sfbcs5t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9BRJ-0004ew-3A for guix-devel@gnu.org; Thu, 19 Apr 2018 11:25:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9BRF-0001um-5L for guix-devel@gnu.org; Thu, 19 Apr 2018 11:25:37 -0400 In-Reply-To: <871sfbcs5t.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Roel Janssen , Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Roel Janssen 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 >=20=20 > +# Make sure garbage collection from a TCP connection does not work. > + > +socket=3D"127.0.0.1:9999" > +guix-daemon --listen=3D"$socket" & > +daemon_pid=3D$! > + > +output=3D`GUIX_DAEMON_SOCKET=3D"$socket" guix gc` > +if [[ "$output" !=3D *"GUIX_DAEMON_SOCKET=3D$socket" ]]; > +then > + exit 1 > +fi > + > +kill "$daemon_pid" > + > # Log compression. >=20=20 > guix-daemon --listen=3D"$socket" --disable-chroot --debug --log-compress= ion=3Dgzip & Use `make check "TESTS=3Dtests/guix-daemon.sh"` to only run this one test. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlrYtOcACgkQoqBt8qM6 VPq/7wf/aa5pq8XUXFd2SZyQbzXc6KiONPs5UB83A4OKdFVP+2Dop2zWMuIFcP06 n4hq81youU8tDjgWybbe2eUy9YBmAxdtYIHq7R0EnSsKWVUBmbDIb1Qr4+/EMpIo +V/z6otdAROWZfoaHHOT4Pm3c3ktn3EjAzQ0W9nxx5c60u834PXdblvfI8m/AcfM 5pi0iR4OqxC0B/CLx1QFt3NQZyavApRF+JJSCmP0xaE0at7JdROJs8tdbQh3mPW/ 9OUJLS/UYAm0lPkOwxtBLhdyrdkrC9amVTIwqVk2xTq/tPv96gBXdfgb+vOkQv0k Zg/p3nT2prKB0DI1uHD58Ifo12Vpxg== =GuV9 -----END PGP SIGNATURE----- --=-=-=--