From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4ea1::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QCisMQgxyWEz9AAAgWs5BA (envelope-from ) for ; Mon, 27 Dec 2021 04:20:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kLj/KggxyWEDKwAAG6o9tA (envelope-from ) for ; Mon, 27 Dec 2021 04:20:40 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5CD721329F for ; Mon, 27 Dec 2021 04:20:40 +0100 (CET) Received: from localhost ([::1]:35732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1gYx-0007pU-Gs for larch@yhetil.org; Sun, 26 Dec 2021 22:20:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1gYk-0007pI-O0 for guix-devel@gnu.org; Sun, 26 Dec 2021 22:20:26 -0500 Received: from [2607:f8b0:4864:20::82a] (port=45716 helo=mail-qt1-x82a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1gYi-0005il-AM for guix-devel@gnu.org; Sun, 26 Dec 2021 22:20:26 -0500 Received: by mail-qt1-x82a.google.com with SMTP id p19so12508068qtw.12 for ; Sun, 26 Dec 2021 19:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=GVcbqjxisrpbDiXQ+Z79NM++uDEK8h2jEBGHYa9SuXk=; b=hL0WSI4d6aAfRcq9qWbdQsptUgWxW39SRofsIOlUbF06S/Wvut+pCSG/NYn7uVFfcK yim5q2Cz52rII1MUYqr1enUDoO3RLBev9jnzdxGmFSa4xraIQB+jcTNR8p2FtMMV447C 4D0+F6ECyoyTpNOazdTe7yuiau/Evu1Uk3qt+uerhAI+1F3jmwTom2j/akA8/FN+p7UA FUdHbO/MB8ZTtL6LXIlRGg5/jUef1NTe5QIZdvEeRTbyjr2i/ZtD9sKJpVxNW4QRrDCc e7YGrCBWZysht2tKjgYs4Luaz1UlQVkPQGGNN47e8q3iRFU47qVUgINhzkWA6YOQWqm0 FUww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=GVcbqjxisrpbDiXQ+Z79NM++uDEK8h2jEBGHYa9SuXk=; b=p0ehFLCfhiPjujpSVzpUngAHTKzLB5JVqdZ3t5/PZQRhDCj71qKAcnozSq4/JlZ3Wj 0uZX5WrUBbidekeQq1OZUizjdFvwEgyottrMYGJwoOcVZbaG9EU+fKcDz3gSN+p4+d6n Zi5qFhHUK9jBswIPV/xZIsmy789mWyU2w5yUAmVqtPfHWcvJb2UsEnfe0/SbObfOc48a igty9/Izr6pn1hg5Aw60A/22f3BzCwdjDmhVA2DN/VRp08TGwws+STZ54/0nNEyV9M1Z m/J2vL00pLHyd7ehLGYFaINmI0JsLD8qLN8smYalEUtPfElD60hX2ve7deZ06OMgngkb /+PA== X-Gm-Message-State: AOAM532SVpK3/afEg97pG5Vw1mOU+870YFR7Nfw3TQjrUaOqKPzKsfyF jhWam7m0XwnthZ4DlH/in8Dy9xeUUnQ= X-Google-Smtp-Source: ABdhPJzX3egAfPFe24Bygd57U4MzfBoyY/c17YnTBeO3x43anGHxenwhDO3ecv+Zm0JKZQG8xoOSKA== X-Received: by 2002:a05:622a:1389:: with SMTP id o9mr13544003qtk.109.1640575222371; Sun, 26 Dec 2021 19:20:22 -0800 (PST) Received: from hurd (dsl-10-128-55.b2b2c.ca. [72.10.128.55]) by smtp.gmail.com with ESMTPSA id bp42sm12029545qtb.61.2021.12.26.19.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Dec 2021 19:20:22 -0800 (PST) From: Maxim Cournoyer To: Simon South Subject: Re: How to test modified shepherd services References: <87ee67s718.fsf@simonsouth.net> Date: Sun, 26 Dec 2021 22:20:21 -0500 In-Reply-To: <87ee67s718.fsf@simonsouth.net> (Simon South's message of "Mon, 20 Dec 2021 09:08:35 -0500") Message-ID: <8735meybre.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::82a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nathan Dehnel , guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640575240; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GVcbqjxisrpbDiXQ+Z79NM++uDEK8h2jEBGHYa9SuXk=; b=WdRLHXchc0wcLxkL/hgM1S3JLOHpOBH6ud/IVEmvF82c1tW44MQ/4isRlnM3fEFhPRjS3Q yzmxsgApOB9eqyw4T9u/ECqm4WJICgOvCzWquMFrUCcGw1qYTVAehPitMEVp7YCgipiZyQ Nu0ZVzjaK5h/3BsF6nw7YtlhXP3Fpc3Xiv4pE5wSR+4AtaSk8rNVmoQIPTKfD7Lb2yUMmA YlNo6rW38vfVEURnwkbvw8wi3U1KvrKy5JtHCeVoQpMQzT+pEBm96dtd3KBUVdkMyrnMNE 3YrCNdfstaSVP0rFuRbXjbgxgGEXDxADgaFoPY3Jh/gUsvq5g7YFCn15t2YV8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640575240; a=rsa-sha256; cv=none; b=qocF08NU+9aqo/r7CcatxBurPgvMRBF2W9veXa5nDje50MWT8tSdS1UhH8V8QXOPa85Ys/ XCHxx3poek+kdUFIc4KZOwxz37dmwYQgKwb/qF0EQlLk9sCXt7TeEqlRB21GGL7eGSqnda fezgOaOyf3Kl7BvdFdQg7FZPdrOm8xgj3mtg4HLsn6/zHNYlmd8I0m4AYSDdwXGxqtl2B+ C77tu5wo+oCIrE/AcRvKOBIc+fx6clTmVfVaZlxoTJKGgTJmCHaL1b8EAkUux6Zqxl96nb iYx6NiY2zJf+Spzq0DnAOHsK/G5AmUQrxZR84oaWaVz/Be+oqx4dRUmeG/HMQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hL0WSI4d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hL0WSI4d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5CD721329F X-Spam-Score: -6.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: l31e5xibsPad Hello, Simon South writes: > Nathan Dehnel writes: >> I modified a shepherd service to accept a new field from config.scm >> and I was wondering how to test that it works correctly. > > Assuming this is an existing Guix service, it's probably easiest to > update the corresponding system test suite under gnu/tests (if > necessary) to reflect your change, then run the suite with "make > check-system" (setting "TESTS" to limit it to the service in question) > to make sure everything works the way you expect. > > If you're planning on contributing the change to Guix it would be good > to submit it along with an updated test suite anyway. > > The Guix manual has a bit of information about this in Section 2.3, > "Running the Test Suite": > > https://guix.gnu.org/en/manual/en/html_node/Running-the-Test-Suite.html#Running-the-Test-Suite +1. System tests are the best way to validate system services. You'll save time by writing/extending one. Maxim