GNU bug report logs - #53862
[PATCH] tests: Add system tests for each supported kernel version.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Marius Bakke <marius@HIDDEN>; Keywords: patch; dated Mon, 7 Feb 2022 22:39:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 53862 <at> debbugs.gnu.org:


Received: (at 53862) by debbugs.gnu.org; 5 Apr 2022 16:08:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 05 12:08:07 2022
Received: from localhost ([127.0.0.1]:55908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nbliw-0005a5-UM
	for submit <at> debbugs.gnu.org; Tue, 05 Apr 2022 12:08:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39998)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1nbliw-0005ZP-5C
 for 53862 <at> debbugs.gnu.org; Tue, 05 Apr 2022 12:08:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35448)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1nbliq-00070j-Gu
 for 53862 <at> debbugs.gnu.org; Tue, 05 Apr 2022 12:08:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=DsC1OmDPQ+86eogEKyd066TfunCfiPfKhB5PuYqeYHY=; b=LKjwdUqSHL9EoS2n4k7A
 +L/Bz3LHhFxETo1nIv6hHQpmRy4tBOOOZ2S9Xf0ztyo00qtN1W0Iv4d5EfX8ETV89CiVtrKBk+yvN
 GqfCrtOmS0BY89lBGRXRONwqr4Wvg0hOI15e0Mq2+Yj7T611FPJLZ9Qh65YxpHvPuUHSS0KJmzUQA
 DVGX7iFMdh83jyjYJ9ERvuc6lolUNbMS4kLqXPOsSHMPQqAHynHrin1mKBzoKMAqOuUackt6z+Z0I
 MOr+QsA0jmtJU2HYuWIGx8ns5LN4FIuX6db7NSRb4vmj20YfGTvUcqlOZfnm6Ew0sQEvRiEY6OU+S
 3MUK8u4gqQ+dnQ==;
Received: from [193.50.110.173] (port=58784 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nbliq-00057t-3N; Tue, 05 Apr 2022 12:08:00 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Marius Bakke <marius@HIDDEN>
Subject: Re: bug#53862: [PATCH] tests: Add system tests for each supported
 kernel version.
References: <20220207223814.5982-1-marius@HIDDEN> <87v8wuu04g.fsf@HIDDEN>
Date: Tue, 05 Apr 2022 18:07:58 +0200
In-Reply-To: <87v8wuu04g.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Thu, 03 Mar 2022 23:44:47 +0100")
Message-ID: <8735irms2p.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53862
Cc: 53862 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping! :-)

Ludovic Court=C3=A8s <ludo@HIDDEN> skribis:

> Hi,
>
> Marius Bakke <marius@HIDDEN> skribis:
>
>> * gnu/tests/base.scm (test-basic-os-with-kernel): New procedure.
>> (%test-linux-libre-5.10, %test-linux-libre-5.4, %test-linux-libre-4.19,
>> %test-linux-libre-4.14, %test-linux-libre-4.9, %test-linux-libre-4.4): N=
ew
>> tests.
>> ---
>>  gnu/tests/base.scm | 41 +++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 41 insertions(+)
>> ---
>> Guix,
>>
>> I just discovered #52667 and figured it would be neat to have system
>> tests for each kernel to catch regressions faster.
>>
>> WDYT?
>
> Good idea, go for it!
>
> Thanks,
> Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#53862; Package guix-patches. Full text available.

Message received at 53862 <at> debbugs.gnu.org:


Received: (at 53862) by debbugs.gnu.org; 3 Mar 2022 22:44:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 03 17:44:55 2022
Received: from localhost ([127.0.0.1]:44078 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nPuBr-0000b4-Fa
	for submit <at> debbugs.gnu.org; Thu, 03 Mar 2022 17:44:55 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50436)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1nPuBq-0000aq-QE
 for 53862 <at> debbugs.gnu.org; Thu, 03 Mar 2022 17:44:55 -0500
Received: from [2001:470:142:3::e] (port=59976 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1nPuBl-0007LS-Hw
 for 53862 <at> debbugs.gnu.org; Thu, 03 Mar 2022 17:44:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=DafwzDeQXyRU2yt3OoTNILQs4naZiRpRpUenLwLMJyQ=; b=Dl3xOzCwseS/q2pQ4LUl
 Z6wKyx+6Iij8TLqPwIHjswfAUfahXHqM6dEEQrr6/fbfWWP7O1GVsYwZ+rJSw9F8AW/PJsWA16mzT
 pjLVIyn/pp+7+JCVSAM/F/BHz5nfWn2jEC8ChK20qoYUyGDqmv41Yrl/lvYWchd1jRt4W8n/9GI3i
 Owa9myAy6u5Eq9S49C9rfYLru8B5mAyNeFL7jWxnJk124+l/WwQY3CKsDsXp6MKNr+XMW8WGxeNTN
 8cm8nzcPlkctjHZU6H9NmQMx9pUHx6RTQNkBK4Gw+FDrUfyxXWE/+Kd8XrngfYDIt6157rMJIIEbR
 bI+UHItPYsWLAw==;
Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50102
 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1nPuBl-0000nl-3E; Thu, 03 Mar 2022 17:44:49 -0500
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Marius Bakke <marius@HIDDEN>
Subject: Re: bug#53862: [PATCH] tests: Add system tests for each supported
 kernel version.
References: <20220207223814.5982-1-marius@HIDDEN>
Date: Thu, 03 Mar 2022 23:44:47 +0100
In-Reply-To: <20220207223814.5982-1-marius@HIDDEN> (Marius Bakke's message of
 "Mon, 7 Feb 2022 23:38:14 +0100")
Message-ID: <87v8wuu04g.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 53862
Cc: 53862 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Marius Bakke <marius@HIDDEN> skribis:

> * gnu/tests/base.scm (test-basic-os-with-kernel): New procedure.
> (%test-linux-libre-5.10, %test-linux-libre-5.4, %test-linux-libre-4.19,
> %test-linux-libre-4.14, %test-linux-libre-4.9, %test-linux-libre-4.4): New
> tests.
> ---
>  gnu/tests/base.scm | 41 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)
> ---
> Guix,
>
> I just discovered #52667 and figured it would be neat to have system
> tests for each kernel to catch regressions faster.
>
> WDYT?

Good idea, go for it!

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#53862; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Feb 2022 22:38:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 17:38:22 2022
Received: from localhost ([127.0.0.1]:44050 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nHCeM-0005zM-5j
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 17:38:22 -0500
Received: from lists.gnu.org ([209.51.188.17]:34338)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <marius@HIDDEN>) id 1nHCeJ-0005zD-8R
 for submit <at> debbugs.gnu.org; Mon, 07 Feb 2022 17:38:21 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60928)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <marius@HIDDEN>) id 1nHCeI-0002D4-51
 for guix-patches@HIDDEN; Mon, 07 Feb 2022 17:38:19 -0500
Received: from [2001:470:142:3::e] (port=39354 helo=fencepost.gnu.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <marius@HIDDEN>)
 id 1nHCeG-0005HL-Ru; Mon, 07 Feb 2022 17:38:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=/F8KaOCpTDeCnm4JOWZH/5OU5Cci064KRfw8b9v153o=; b=hEKiZpleeAxmCT
 JPXll7bQ0sB6hsVR0xIvmhFF/hPF7rNA31i/hz0MLlkaaeaqCBzNr0iYu4+SomkfRAP9mP0/vxUTu
 l/hwR0OiSYkgevDz01Ox4FvHmHNEWiX9E7+EAuxoWbgxRx+9+PD+9HAgx7N6yeQhD0i/eDaiSjlmE
 MwhPtAMMklfh/WfCTSHEO3oiHpqkWd7BDOoeHCU+5SzCUguISPWP7Z9FV6nzm15FyV10jAXu6Kv8m
 vs0jv2+h8tkqRduNhKmLrMCuqxdZnvdPdUvpC021R0yVXP+AW65nYab54H6JDDM3m6QmZraqf7j+6
 6mIeLTlN5Iqwp31xa/Ow==;
Received: from host-37-191-236-102.lynet.no ([37.191.236.102]:52104
 helo=localhost)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <marius@HIDDEN>)
 id 1nHCeG-00014Z-GD; Mon, 07 Feb 2022 17:38:16 -0500
From: Marius Bakke <marius@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] tests: Add system tests for each supported kernel version.
Date: Mon,  7 Feb 2022 23:38:14 +0100
Message-Id: <20220207223814.5982-1-marius@HIDDEN>
X-Mailer: git-send-email 2.34.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

* gnu/tests/base.scm (test-basic-os-with-kernel): New procedure.
(%test-linux-libre-5.10, %test-linux-libre-5.4, %test-linux-libre-4.19,
%test-linux-libre-4.14, %test-linux-libre-4.9, %test-linux-libre-4.4): New
tests.
---
 gnu/tests/base.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
---
Guix,

I just discovered #52667 and figured it would be neat to have system
tests for each kernel to catch regressions faster.

WDYT?

diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm
index 38d4317e52..88de421ed1 100644
--- a/gnu/tests/base.scm
+++ b/gnu/tests/base.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@HIDDEN>
 ;;; Copyright © 2018 Clément Lassieur <clement@HIDDEN>
+;;; Copyright © 2022 Marius Bakke <marius@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -41,10 +42,18 @@ (define-module (gnu tests base)
   #:use-module (guix store)
   #:use-module (guix monads)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (srfi srfi-1)
   #:use-module (ice-9 match)
   #:export (run-basic-test
             %test-basic-os
+            test-basic-os-with-kernel
+            %test-linux-libre-5.10
+            %test-linux-libre-5.4
+            %test-linux-libre-4.19
+            %test-linux-libre-4.14
+            %test-linux-libre-4.9
+            %test-linux-libre-4.4
             %test-halt
             %test-cleanup
             %test-mcron
@@ -537,6 +546,38 @@ (define %test-basic-os
       (run-basic-test (virtualized-operating-system os '())
                       #~(list #$vm))))))
 
+(define (test-basic-os-with-kernel kernel)
+  (system-test
+   (name (string-append (package-name kernel) "-"
+                        (version-major+minor (package-version kernel))))
+   (description "Run %TEST-BASIC-OS with the given KERNEL.")
+   (value
+    (let* ((os (marionette-operating-system
+                (operating-system
+                  (inherit %simple-os)
+                  (kernel kernel))))
+           (vm (virtual-machine os)))
+      (run-basic-test (virtualized-operating-system os '())
+                      #~(list #$vm))))))
+
+(define %test-linux-libre-5.10
+  (test-basic-os-with-kernel linux-libre-5.10))
+
+(define %test-linux-libre-5.4
+  (test-basic-os-with-kernel linux-libre-5.4))
+
+(define %test-linux-libre-4.19
+  (test-basic-os-with-kernel linux-libre-4.19))
+
+(define %test-linux-libre-4.14
+  (test-basic-os-with-kernel linux-libre-4.14))
+
+(define %test-linux-libre-4.9
+  (test-basic-os-with-kernel linux-libre-4.9))
+
+(define %test-linux-libre-4.4
+  (test-basic-os-with-kernel linux-libre-4.4))
+
 
 ;;;
 ;;; Halt.
-- 
2.34.0





Acknowledgement sent to Marius Bakke <marius@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#53862; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 5 Apr 2022 16:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.