Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp118072rbb; Fri, 23 Feb 2024 14:02:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxXrq5OO2PYJm8t+bjZLWxJZ/5GC0MUtLZBlPPuONryCg3j4Vj/lQ5TkbA3DRtgi0wpB1TMVnUuLd0B2Wdwjyoat9XXYBdQmMWsvf0sw== X-Google-Smtp-Source: AGHT+IHmICjwHFTdo7DFj6h0KqVJYufbLvlQNiF6pl3CFKSXhxabYU6FbyISwkBfpVg4XyABpwOZ X-Received: by 2002:a17:903:2281:b0:1d9:ce46:6ebd with SMTP id b1-20020a170903228100b001d9ce466ebdmr1361627plh.16.1708725760343; Fri, 23 Feb 2024 14:02:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708725760; cv=pass; d=google.com; s=arc-20160816; b=ZswG/jtpvXghT8uciWb987owcbkkGMGBRmieSfFcxWsjTnHduF7jL52TsZDYoqZAn4 X8ScdloAiG/lydFVAbsgd6DYBCVLFCwc6fAIsu6SqZfZwDw48X10u7aIGdyy4dtMI/ZN HuAjUpCnsotohlP4plqPvfHfPrFtQ6RP/H3gBp16CClwiUDVYbQyUrdqumDv2QNJEXzR tfwYSYWI64+sKV7znXJnQF2WguVEi4mu9+h6gNnforaOBoSO5uUi68/yE+vvZnNqu0Y+ vwrLD2IICqgNJGKIL/35kMR+YGgTtH5xGz8oc5ekDtut3PGNMfeZ0GhS4TaggVeGITku KGuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=5dO5uxANb6KhoFhAZhuWxdF4f1WkNSLPqmHQVMIujpc=; fh=304G2xzCHi1t3yd4ERbTwkFImo/9YIQ0XYCLmax4Hww=; b=KW4IEJJobww9SPU+vUImbVqxTserlYZhB5lK8WgoRa9D7SgFDboDU/VeX6PRJmGgN3 3uDG8BoN2+jGnkB3d5HfgfplIc2edIKav60BwF6AqfKahI7Qj/1NPELup4L3hvqbhrG8 mLiLMGpc0RNMB6KHdt33p6x4watPVSU4YXR4Qzj+KrHZCqtOuYXvLVFIpqxW1c1aLJlU x0YkGEH8zipwfqfdAhjQPZZ1P7+a8YG27EOVjXtJKSlkYqwecgNwljp49FOY10rEbL7F kRVglgRnTc69r+Wb28BEyxljg2B8ody18klvf97lUlYtuMta/WTD7Jc8y52G5dfpzkK3 fWAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ca1Up2on; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-79232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y16-20020a170902b49000b001dc41913e36si4612774plr.104.2024.02.23.14.02.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 14:02:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ca1Up2on; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-79232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0EBEC284CCB for ; Fri, 23 Feb 2024 22:02:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F6041493B1; Fri, 23 Feb 2024 22:02:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ca1Up2on" Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 A02C914C5B5 for ; Fri, 23 Feb 2024 22:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708725751; cv=none; b=LPobtdqK0Wihdt53mude6Taub2tXUrIoGD5DwPn3AyLHRd3+9muxDYqqCLj1zhMqGFqVsqll8YQ7+WrcHWS1oOE6AX8Ud0gQ7/rP24iWfCWDpjvgfqeat+cEhibYLZ8Te0rpvFGylDaQPAZMRap+idjWk95fXW4u18M0rr0OoLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708725751; c=relaxed/simple; bh=OxuxrEWZFLmd9bVvllL0cDqo3Qro+iCmjrAkC+i8LtY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=htsyB5DhDz4XxPwPQQflplsNqLQx1Y5/UD7Dn423yiVmSA+G5fDWz//uP58JZV6avqPmsGOuhPpTo/swgKQb024K5+3bEVIy7WZIYQ8gPQRYIc1NuBJq83hVs3wasxxfmmkvb8IP1dvZOlgsm3FyCaq2dD/kQ4LJbQmqoalRECc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ca1Up2on; arc=none smtp.client-ip=209.85.166.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-io1-f44.google.com with SMTP id ca18e2360f4ac-7c495be1924so20297639f.1 for ; Fri, 23 Feb 2024 14:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1708725749; x=1709330549; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=5dO5uxANb6KhoFhAZhuWxdF4f1WkNSLPqmHQVMIujpc=; b=ca1Up2on7z7dE4dtnBiWQCFtuo5LnkzSa7BdIj2/JFouHPDNantTY6AG3ajjNeszEH lPmhVSNNAuP0a6ZVjx/6RYIrckcdhSk30qfrJztMT/IjiTeSa6zPdST4pWyQoZ/PlBVs Q5BGIbSyr/6ovyNnI86NRXba7Gs3Fhl+819xs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708725749; x=1709330549; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5dO5uxANb6KhoFhAZhuWxdF4f1WkNSLPqmHQVMIujpc=; b=XgayCKHuj6Y4Dy19V/twXudVx0nHd044ep1b5U/8Tnw+IDZ/dsZN/ca81Z6Vhorc65 Fnxg7nL2ballwIuh6+/Zs+lITDWXwn2jjcJJdBxhYp3i51U/x55Wc4moFCbMhgk9xuoN s91B/fXZffxzgK0nsqOigbjK9V+jpvn5X0x2zPPKkI3RemD3LI8adVvdbSPeAV6PxSgV jTyZcwqN0BIUpj0VIY3ArNyaPnw+UZvdNY6co6y+aYbLPok42ZLn1mhLu93AKLYsX70G +U94tvbSjo5gb2crlNqbDf0EFCkuJJbvXBPI0AkysB0RJvkkwd9yHbBc21hZBO7u8ETh DEHg== X-Forwarded-Encrypted: i=1; AJvYcCVN5cKC9c8OndufGNKFBGxbjWpCYXXmsf2HI8m3tsNwfTlZYaCQZzFxp8w9S0kCfKjujquYSJoYpu4D+mVhR2MPNVkHUULyPa57qF9x X-Gm-Message-State: AOJu0YzrzqV1wK2cIlplP1EBPKkGY68IycteaRXIkrp2telOqRWqFoLe H9DYNAIODbXXZVCiRRDUXi16lCzXRQ+Auo31Giyjt2rbHwC3aF6jxXzYdf7po2s= X-Received: by 2002:a5e:de08:0:b0:7c7:951a:a4cb with SMTP id e8-20020a5ede08000000b007c7951aa4cbmr1177605iok.1.1708725748777; Fri, 23 Feb 2024 14:02:28 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id q26-20020a02cf1a000000b00471346c4225sm4015616jar.7.2024.02.23.14.02.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 14:02:28 -0800 (PST) Message-ID: <8fe544e1-ac1c-4edf-81e9-fc0992b6bbc4@linuxfoundation.org> Date: Fri, 23 Feb 2024 15:02:27 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] kselftest: Add basic test for probing the rust sample modules Content-Language: en-US To: Laura Nao , ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, shuah@kernel.org Cc: usama.anjum@collabora.com, a.hindborg@samsung.com, aliceryhl@google.com, benno.lossin@proton.me, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, gary@garyguo.net, kernel@collabora.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, rust-for-linux@vger.kernel.org, kernel@valentinobst.de, Sergio Gonzalez Collado , Shuah Khan References: <20240222162913.498197-1-laura.nao@collabora.com> From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2/23/24 14:48, Shuah Khan wrote: > On 2/22/24 09:29, 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 >> Reviewed-by: Sergio Gonzalez Collado >> Reviewed-by: Muhammad Usama Anjum >> --- >> Changes in v3: >> - Removed useless KSFT_PASS, KSFT_FAIL, KSFT_SKIP constants >> - Used ktap_finished to print the results summary and handle the return code >> Changes in v2: >> - Added missing SPDX line >> - Edited test_probe_samples.sh script to use the common KTAP helpers file >> --- >>   MAINTAINERS                                   |  1 + >>   tools/testing/selftests/Makefile              |  1 + >>   tools/testing/selftests/rust/Makefile         |  4 +++ >>   .../selftests/rust/test_probe_samples.sh      | 34 +++++++++++++++++++ >>   4 files changed, 40 insertions(+) >>   create mode 100644 tools/testing/selftests/rust/Makefile >>   create mode 100755 tools/testing/selftests/rust/test_probe_samples.sh >> > > Looks good to me. Don't you need a config file for this test? > Refer to config files for existing tests as a reference. > make kselftest TARGETS=rust or make run_tests On Linux 6.8-rc5 give the following? Doesn't look right. TAP version 13 1..1 # timeout set to 45 # selftests: rust: test_probe_samples.sh # ./test_probe_samples.sh: line 12: /linux/linux_6.8/tools/testing/selftests/rust/../kselftest/ktap_helpers.sh: No such file or directory # ./test_probe_samples.sh: line 16: ktap_print_header: command not found # ./test_probe_samples.sh: line 18: ktap_set_plan: command not found # ./test_probe_samples.sh: line 22: ktap_test_skip: command not found # ./test_probe_samples.sh: line 22: ktap_test_skip: command not found # ./test_probe_samples.sh: line 34: ktap_finished: command not found not ok 1 selftests: rust: test_probe_samples.sh # exit=127 thanks, -- Shuah