Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp379075rdb; Thu, 21 Dec 2023 11:46:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuVlHmjvYUJHIwmDATxuFLP8g0uvDwshSDHK+UqB56HGJ8s9RFZspLPA5LCuQk2/eMpxSL X-Received: by 2002:a50:8acb:0:b0:554:4dce:9d47 with SMTP id k11-20020a508acb000000b005544dce9d47mr5079edk.14.1703188010665; Thu, 21 Dec 2023 11:46:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703188010; cv=none; d=google.com; s=arc-20160816; b=i0mhwWNJuunr5LVhAd7MkpCA9UZlk8A4I4TEgawg/+9aqnYB7MYu1beBl2z5rUQ6KS o1za6uA9BRvjPkY8GtuDoSvr+FF65GjEz3g6PCX9QhhaNre0pZfit9Ak+NIYHMsMFlUX ogsxR/shnnCe9UYd96i59xFK1meSuM1n1hmb5+cMbwCkPv84ZJXLxesb387xT3yW5Jh9 cuiOK33aKeQBXhefr2to5yBKEQxp+iF/Yc2xR3hOuSYp3YOpulqpriMPpVAfntUuhJLY 5exdFK4isxyyrEd5H7Mgpz6/HVpf0vXWvcpKuAeuSkIBGB7gj035aFE7xsAmlYVejHXH Tluw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=N6/yAn6lNSX2MGYTUbcrF0LVeIXWmfijpcUqz22yFI0=; fh=JOZ6KqKx683cTxnFkpixXCnHmxqit4wVMec05oG3lJY=; b=VEoLEyLxdfLjhd6FHiv39eGfX8RiXhOANC3UKBC2RjI4cxz15FWd6mPczzAE9LzdE4 +GGbIT4mLatQdy0WxZfC9HgqUk/HUewXspaTDXwD+iQWvodYSH+y/ut0VeIaIP9A4+hR VzLhBKAXw4M9Lrpm/KiXOb4iOwR9TCgubhcBN7ETK7AgQm/6Uf7zBbT/S9MPKVt501E0 KIrFSVIe6fwzvbSY4MJaav2XQw/Dsfm2Os9jdWepxHELAJZ28i69X8SnxTCKEr7fQyl2 q6KUMmoQGhirVAMB7vPjliILDJUBhxpUsxJ4qMZCZ/xOVA2dHbQsJgWLDjOWknFRYnlo t8mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nWJUVxH+; spf=pass (google.com: domain of linux-kernel+bounces-9011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cz17-20020a0564021cb100b005514bcc4070si1112326edb.299.2023.12.21.11.46.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 11:46:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nWJUVxH+; spf=pass (google.com: domain of linux-kernel+bounces-9011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6C18E1F24271 for ; Thu, 21 Dec 2023 19:46:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63CEB745C5; Thu, 21 Dec 2023 19:46:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nWJUVxH+" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CA9B697B1; Thu, 21 Dec 2023 19:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-dbd990ad852so1252506276.1; Thu, 21 Dec 2023 11:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703187994; x=1703792794; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=N6/yAn6lNSX2MGYTUbcrF0LVeIXWmfijpcUqz22yFI0=; b=nWJUVxH+ONTZwvq3AgHS+xVh2JN2ZyV4CF1plmJ4op9Ire19x1MG4DfXdDHalgE3zL 8H+Vu6ef3DuBYXiwMLhc+dtTr33cAu1ceaj22JuK7+BPfbUXBRQPI/ZOl7wZU9ayM+Zh czb8x6zHYeE33BQPgvIl2CEmcn749iGoSM+a+QTPbgKa7sh9oxrZoAlix/EhriCQYPH7 k/t3H3qtxN8YAegCIqrlV/lAdLez+VcWSzkrpD2A+0As0lR/4r/53RK8rgTLzi6P+ls1 ZedEcCcghQl4iWxe2VzRP1V5JMkMZkRRCpPpq2UZppIzcf6JIEk+A10fRCKm+2wiGHP5 qWzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703187994; x=1703792794; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N6/yAn6lNSX2MGYTUbcrF0LVeIXWmfijpcUqz22yFI0=; b=T3nw5K5NEbBCpWT5DOMQ/22VNtHGVwLIsJlsYCFoNl6VQOiMWRK9XkrACJwWcPwLb2 hGu5CHc5k6AF23xCUJUNw6NKuQj5oQ3tEvjejJ7SFNXmz8OOFZQ6lb3hAzSPfpPvuJSg YGbxuMR0HmRTNGBNBlS9kw/sx0oan2xb0eRsSulKLRw0AT3b48sFL63cTEXKhnQbNPDK joZ+A1LoOMzagqpwSYWfLVIogJ3nTdoNwHvB3t9PHLNgk3uxlqnUmncdDLtdM0qH/2Gi WJjkKdwaTsycnX92mQEjr8ULjdyuunEVZP0xciwoLQGSI3t1z1nf8JoWB+T8DkIJ08WQ 6QhA== X-Gm-Message-State: AOJu0Yza252RSQy8XA4sxjFs/mG7BMzKtKa82arsroEPXm08u1t/3e4H 9odbi4CSYmZQcuoP5MqUpQOCw9xIs4aqOpMHp+8= X-Received: by 2002:a25:6606:0:b0:dbd:1334:a8d with SMTP id a6-20020a256606000000b00dbd13340a8dmr285785ybc.118.1703187994263; Thu, 21 Dec 2023 11:46:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231215132132.169628-1-laura.nao@collabora.com> In-Reply-To: <20231215132132.169628-1-laura.nao@collabora.com> From: Miguel Ojeda Date: Thu, 21 Dec 2023 20:46:22 +0100 Message-ID: Subject: Re: [PATCH] kselftest: Add basic test for probing the rust sample modules To: Laura Nao Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Shuah Khan , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel@collabora.com, David Gow Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 15, 2023 at 2:21=E2=80=AFPM Laura Nao = wrote: > > Add new basic kselftest that checks if the available rust sample modules > can be added and removed correctly. > > Signed-off-by: Laura Nao Thanks Laura! Shuah: do you want that we pick this one? If so, your `Acked-by` would be nice -- thanks! Otherwise, please feel free to pick it up. Cc'ing David too since it involves KTAP in case he has comments. > diff --git a/tools/testing/selftests/rust/Makefile b/tools/testing/selfte= sts/rust/Makefile Missing SPDX line? (it can be added when picking it up, though). > +$(OUTPUT)/ktap_helpers.sh: > + cp $(top_srcdir)/tools/testing/selftests/dt/ktap_helpers.sh $@ This may be something for another series, but should these helpers be factored out perhaps / provided by the framework? Does it work sourcing them from `dt` directly instead of copying meanwhile (to simplify)? > +KSFT_PASS=3D0 > +KSFT_FAIL=3D1 > +KSFT_SKIP=3D4 Similarly, would it make sense for this kind of "common constants" be factored somehow? Or does that not make sense (I see other tests also define them "manually")? Cheers, Miguel