From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +AUNLLjDwGFYnwAAgWs5BA (envelope-from ) for ; Mon, 20 Dec 2021 18:56:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sHyrJ7jDwGF9QwAAbx9fmQ (envelope-from ) for ; Mon, 20 Dec 2021 17:56:08 +0000 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 7A13629C35 for ; Mon, 20 Dec 2021 18:56:08 +0100 (CET) Received: from localhost ([::1]:48848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzMtK-0007p8-GL for larch@yhetil.org; Mon, 20 Dec 2021 12:56:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzKjD-0003aR-1I for guix-devel@gnu.org; Mon, 20 Dec 2021 10:37:31 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:39862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzKj9-0006eE-Ns for guix-devel@gnu.org; Mon, 20 Dec 2021 10:37:30 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id F0B44A82CE; Mon, 20 Dec 2021 14:08:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo04-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo04-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qpaR7LkEBpl6; Mon, 20 Dec 2021 14:08:35 +0000 (UTC) Received: from laptop (23-233-96-244.cpe.pppoe.ca [23.233.96.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 53865B4210; Mon, 20 Dec 2021 14:08:35 +0000 (UTC) From: Simon South To: Nathan Dehnel Subject: Re: How to test modified shepherd services References: Date: Mon, 20 Dec 2021 09:08:35 -0500 In-Reply-To: (Nathan Dehnel's message of "Sun, 19 Dec 2021 16:47:07 -0600") Message-ID: <87ee67s718.fsf@simonsouth.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: 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=1640022968; 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; bh=fbxR4Ri1+y/Nrs9FZGz+CpIUsdRZrg5elilq6JQWqUo=; b=LJKbAdCYJkBmmI63E0WI2gAD1v4mOpzwYwpmTv/lverIGxRuctcwRecbEQbDqZAQyxU3ce A8ZNE0vLQBKOIQNqhWW4SYq2Jx8E+Jt/e1Cy+SEVqZJiVmsSc+QCqSQ6bTR0DG62kXkzU/ y8GXW8yTYLJZ6B9P7JnlduHKauv4EKaKb4NTIdbgE9BtAdLnKZI3Lpu4CETWdLNoQRWy9T KVr8X8k9zPG6QtQWeXNCRpq6bzTbnwOufll5W1t8czE/qkKdhiR1dzQkPnLNvbvAqMRM0K pTPKd7pGpZZpoPrHs+bceu4/r/vxiOB+Ng/Q2nwFIU07QT484nSnPp4FgJm3Yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640022968; a=rsa-sha256; cv=none; b=WkzViKQGNZDJxOvflfDoKZ3OrlWH4wCdtJ34VFSMr0nSxNa1iK9mVPzW48qSZLltkLeaak Cd7gbaSlCOT9SxMu7RGaYyas7wSBcV1/pBqWHSGDkb8GqYWt1cOv1r0xjWRbJ9iR+p4loY QVXgfH0ocy1b4AqDsQpgg1lFiGmDVZHLAJeWjhpArLUpDaW5K/+CWjP7E5R6fc6KMQJuFj tzdMwP6P25cZ9OR3HDD7kdQzaM43MmEL1VjMEK1Q/wFStpw3ak5huvY7OjCdAJwGAOvnLL /HCfJl1tgIZA9lVxS7lQQ5bENIMfxxSgM/5ktSrgLE7CC5n3HIZ0RNGVJOy7sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 7A13629C35 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: nlYTN92ENiNt 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 -- Simon South simon@simonsouth.net