From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eooFQ-0003AO-G7 for guix-patches@gnu.org; Thu, 22 Feb 2018 05:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eooFN-0002xv-59 for guix-patches@gnu.org; Thu, 22 Feb 2018 05:37:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47426) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eooFN-0002xe-1A for guix-patches@gnu.org; Thu, 22 Feb 2018 05:37:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eooFM-0006st-RR for guix-patches@gnu.org; Thu, 22 Feb 2018 05:37:04 -0500 Subject: [bug#30572] [PATCH 7/7] tests: Add tests for "guix system disk-image" et al. Resent-Message-ID: From: Chris Marusich Date: Thu, 22 Feb 2018 11:35:28 +0100 Message-Id: <20180222103528.5108-7-cmmarusich@gmail.com> In-Reply-To: <20180222103528.5108-1-cmmarusich@gmail.com> References: <20180222103528.5108-1-cmmarusich@gmail.com> 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: 30572@debbugs.gnu.org Cc: Chris Marusich * tests/guix-system.sh: Add test cases that exercise (1) all of the example files in gnu/system/examples, and (2) all of the "image" creation commands: vm, vm-image, disk-image, and docker-image. --- tests/guix-system.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/guix-system.sh b/tests/guix-system.sh index ed8563c8a..13907934f 100644 --- a/tests/guix-system.sh +++ b/tests/guix-system.sh @@ -267,3 +267,16 @@ guix system build "$tmpdir/config.scm" -n # Searching. guix system search tor | grep "^name: tor" guix system search anonym network | grep "^name: tor" + +# Verify the example files. +for example in gnu/system/examples/*; do + guix system -d disk-image -d $example +done + +# Verify the disk image types. +guix system -d vm gnu/system/examples/vm-image.tmpl +guix system -d vm-image gnu/system/examples/vm-image.tmpl +# This invocation was taken care of in the loop above: +# guix system -d disk-image gnu/system/examples/bare-bones.tmpl +guix system -d disk-image --file-system-type=iso9660 gnu/system/examples/bare-bones.tmpl +guix system -d docker-image gnu/system/examples/docker-image.tmpl -- 2.15.1