From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXOLR-0003gj-Pq for guix-patches@gnu.org; Tue, 18 Jul 2017 04:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXOLO-00044O-MU for guix-patches@gnu.org; Tue, 18 Jul 2017 04:59:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dXOLO-00044G-JE for guix-patches@gnu.org; Tue, 18 Jul 2017 04:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dXOLO-0000Us-9o for guix-patches@gnu.org; Tue, 18 Jul 2017 04:59:02 -0400 Subject: [bug#27751] [PATCH 0/2] Simplify VM handling in system tests Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXOKo-0003LW-6b for guix-patches@gnu.org; Tue, 18 Jul 2017 04:58:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXOKn-0003up-CG for guix-patches@gnu.org; Tue, 18 Jul 2017 04:58:26 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 18 Jul 2017 10:58:07 +0200 Message-Id: <20170718085807.21546-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 27751@debbugs.gnu.org Hello, The attached patches simplify VM handling in system tests by defining a new type that can be used directly in gexps, instead of using the monadic procedures from (gnu system vm). The second patch shows a lot of churn but that's mostly whitespace changes due to things being rewritten from: (mlet* %store-monad ((os -> ...) (command (system-qemu-image/shared-store-script ...))) ...) to (define os ...) (define vm (virtual-machine ...)) ... The next step will be to handle VMs that do not use a shared store, is the case for the tests in (gnu system install). Let me know what you think! Ludo'. Ludovic Courtès (2): vm: Add a type and associated gexp compiler. tests: Use 'virtual-machine' records instead of monadic procedures. gnu/system/vm.scm | 70 +++++++++- gnu/tests/base.scm | 314 +++++++++++++++++++++---------------------- gnu/tests/dict.scm | 145 ++++++++++---------- gnu/tests/mail.scm | 342 +++++++++++++++++++++++------------------------ gnu/tests/messaging.scm | 198 +++++++++++++-------------- gnu/tests/networking.scm | 109 +++++++-------- gnu/tests/nfs.scm | 120 ++++++++--------- gnu/tests/ssh.scm | 240 ++++++++++++++++----------------- gnu/tests/web.scm | 125 +++++++++-------- 9 files changed, 865 insertions(+), 798 deletions(-) -- 2.13.2