From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gAZ+Mm3CEmGU8AAAgWs5BA (envelope-from ) for ; Tue, 10 Aug 2021 20:16:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wMo8Lm3CEmGYDQAAB5/wlQ (envelope-from ) for ; Tue, 10 Aug 2021 18:16:13 +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 754D06937 for ; Tue, 10 Aug 2021 20:16:13 +0200 (CEST) Received: from localhost ([::1]:55258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDWIO-0008Jk-CS for larch@yhetil.org; Tue, 10 Aug 2021 14:16:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDWIF-0008Jb-13 for guix-patches@gnu.org; Tue, 10 Aug 2021 14:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDWIE-00041h-Ng for guix-patches@gnu.org; Tue, 10 Aug 2021 14:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDWIE-0004TB-Gy for guix-patches@gnu.org; Tue, 10 Aug 2021 14:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49981] wip: Introduce unit-tests. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49981 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 49981@debbugs.gnu.org Received: via spool by 49981-submit@debbugs.gnu.org id=B49981.162861934117152 (code B ref 49981); Tue, 10 Aug 2021 18:16:02 +0000 Received: (at 49981) by debbugs.gnu.org; 10 Aug 2021 18:15:41 +0000 Received: from localhost ([127.0.0.1]:60795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDWHt-0004Sa-9d for submit@debbugs.gnu.org; Tue, 10 Aug 2021 14:15:41 -0400 Received: from mira.cbaines.net ([212.71.252.8]:48746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDWHr-0004SR-EK for 49981@debbugs.gnu.org; Tue, 10 Aug 2021 14:15:40 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id 4E85027BC78; Tue, 10 Aug 2021 19:15:38 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 03ac7fb9; Tue, 10 Aug 2021 18:15:38 +0000 (UTC) References: <87o8a5734b.fsf@gnu.org> User-agent: mu4e 1.4.15; emacs 27.2 From: Christopher Baines In-reply-to: <87o8a5734b.fsf@gnu.org> Date: Tue, 10 Aug 2021 19:15:38 +0100 Message-ID: <87im0di2t1.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628619373; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=mxi9WYi2cUgShRgeyUTlSh1+dh4ebesSx0M3watGBUE=; b=qKEwc7eVjaR1Kow4y619SQL4vj7h249G73OHKlz7arHoBJjDNouc0uIajCguFz9lNNx6xM fTavKb15CIgAs/z5sicfN9TTsqpSot9dqtQTxk4gUrhAxFAJI4UQRwYqa0POv/QeKIm9NL EEd8Hlx7YqfBfA+S7g/zkc1TI02digRbjuPW9ioJlWZJ6joyI1gcZ66et5d4LAVOTRGuat sFt2dsJyqi0cqZiFPayFYNWVTDbt859AnfER14X3qOKSO7rTksbn4SYNUStHeYjfFNM388 Suvv5iyOwYl4I89cCRbqo8rLwujVEPXNncO/NwdCNUYqWjevoL9BH03p0Y5nMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628619373; a=rsa-sha256; cv=none; b=NV8jdI18OoylC11RVGdTfZzHTjC6bCs7JuqThQapoQrSoKKm+0/zerdtNN/GGtsG1epf+k rnSyFewe7NTuCnONVFHQKebCisjkVp0kroOwGIusgh34NrcAksCjZzwqw1v1xhXxCMupPH 1Wu2XdxWzeS/NPZkwV0IZgDzWSZc2CJf9vox8JXPrV8A7xwhmg0kuUEX7IcYR6j4eiDaBc SvSKomYehz2GOA/zoy0QVchZedyWy6smtS07Rg4j068pdBCNHtJ2sOGvBjMuh/+QrGW7hp KVwqpF21DngtlcffQwYAyGvS3VLJNyjv/KGAvuZE+HPhSnZR7oV7fs1hmrSLjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 754D06937 X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: jgXaUFVJxD/2 Mathieu Othacehe writes: > I would like to convert the Guix tests in the "tests/" directory to > derivations, in the exact same way as for the system tests in the > "gnu/tests/" directory. > > For that, I propose to introduce a new record. This would > allow us to select all the unit tests using the "all-unit-tests" > procedure, and add them to the (gnu ci) module. > > This way, we could have a Cuirass specification for the unit tests, as > we already have for the system tests, to spot regressions early on. > > Here's a patch that translates the "account.scm" test module to the new > proposed mechanism. If there are no objections, I plan to convert all > the remaining tests. Running the tests in an automated manor would be good, but I am concerned about the ramifications of converting them to be defined like the system tests. I think it's already possible to effectively run the tests for an arbitrary commit by building (current-guix) or similar. That runs all the tests, maybe a similar approach could be found that runs individual tests or runs them in groups. Converting the tests themselves in to things that have to be put in the store to be run could make local development harder, and is a step towards making guix harder to package and distribute. As an example, it would probably be possible for the Debian package to continue running the tests, but I'd expect that having to run a guix-daemon just to be able to setup for the tests will make running them more difficult. Chris