From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqiBf-0005sr-Qq for guix-patches@gnu.org; Tue, 27 Feb 2018 11:33:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqiBa-0007XQ-QI for guix-patches@gnu.org; Tue, 27 Feb 2018 11:33:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqiBa-0007XM-Lw for guix-patches@gnu.org; Tue, 27 Feb 2018 11:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eqiBa-00073D-Cu for guix-patches@gnu.org; Tue, 27 Feb 2018 11:33:02 -0500 Subject: [bug#30572] [PATCH 1/7] tests: Add tests for "guix pack". Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180222103528.5108-1-cmmarusich@gmail.com> Date: Tue, 27 Feb 2018 17:32:28 +0100 In-Reply-To: <20180222103528.5108-1-cmmarusich@gmail.com> (Chris Marusich's message of "Thu, 22 Feb 2018 11:35:22 +0100") Message-ID: <87y3jez943.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Chris Marusich Cc: 30572@debbugs.gnu.org Hello Chris, Chris Marusich skribis: > * Makefile.am (SH_TESTS): Add guix-pack.sh. > * tests/guix-pack.sh: New file. That=E2=80=99s a great idea, and indeed something that should have been done earlier on. Some comments: > +# Use --dry-run because it takes too long to actually build everything. > +GUIX_BUILD_OPTIONS=3D"--no-substitutes --dry-run" > +export GUIX_BUILD_OPTIONS > + > +# Build a tarball. > +guix pack coreutils It would be ideal if we could actually build something, but built something cheap. The way we do that in those tests is by: 1. Using the =E2=80=98guile-bootstrap=E2=80=99 package as an example, und= er the assumption that it=E2=80=99s already available, does not require networking, and is built in one or two seconds. 2. Using =E2=80=98--bootstrap=E2=80=99 or a similar option so that the de= rivations use =E2=80=98guile-bootstrap=E2=80=99 instead of =E2=80=98guile-final=E2= =80=99, for the same reason. See for instance tests/guix-package.sh. Would you be willing to try something along these lines? Thanks, Ludo=E2=80=99.