Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2152918pxk; Sat, 26 Sep 2020 19:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt9Dw65horEAKlysml3XwcrS0ETZuAD+6ddrB/tkf3UydmJiFT94C3GDgC5d5C07Snt9TZ X-Received: by 2002:a17:906:3f95:: with SMTP id b21mr1238768ejj.93.1601175092265; Sat, 26 Sep 2020 19:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601175092; cv=none; d=google.com; s=arc-20160816; b=CPIHRfx/YmomukCKF2VIbhQcRwV5R9sdHYZ6dE/glZ94C01PzwNNZfF+0kf9QBEErl IS1FbBYoPRGx9iQVU5+H7ANPBA18wnD10k8TowmjQ+eomFAhJlYyhetwJseM2kgIXpOy HxQm108Pi8LR3YaeGwyDWlBJpnp6rTb6rEx9uf91qPcQy0rKfLHfCyFfRqFo4MHad8bO bYUH3suBraLHYmoyzF6QBvmGBuJFrhlYDE5oefAqzClkdd2TW8ODG5n2DPAT1+1hjDW0 VQ3JW4M5UWih1fBw3xZpsIA+xlU/ULKTQ5iJOMSv5NF3EtH09DaPzgxjuQYmQExmkLqz 3Kmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6HrXb1MRMvuJZH4Tlpi5gzDu5KYeDDOzm0HgEkkBYnc=; b=w4wKmKgLfP3p6EKtx3mnKqbox1VjgXAX8gZwoKRR/Vw4tAxYQPK++S4HlCPy30KUHh wH/PAcHhbRbfZP9pNpcQ4kOB1eaAziGeNCBfbSPCIBPCh+xEQDw/2uXJyf16ALJlBtRC IN6r6X7IXO3VHxHJ2HTHJwZma3fgqTcsyK3vWQl/Kla54Y+j54iF7CGwaONStmg0dLcO sh1p9s59Hkc6RdDTi/SE6AIDyuHBoDXRcEEgVwxpj64SLKhm577K2w/gk08oSvfZIxEW C/2/ynviQUmL7F3cxdITkcTpQ25miQQzxYv+Kq8jV+fvsHesmt5YeRhd70PnHFE8dXC4 +wLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P8p38Uh0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si4801805ejf.234.2020.09.26.19.50.41; Sat, 26 Sep 2020 19:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P8p38Uh0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729809AbgI0Csx (ORCPT + 99 others); Sat, 26 Sep 2020 22:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgI0Csw (ORCPT ); Sat, 26 Sep 2020 22:48:52 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D29C0613CE; Sat, 26 Sep 2020 19:48:52 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id d9so6392032pfd.3; Sat, 26 Sep 2020 19:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6HrXb1MRMvuJZH4Tlpi5gzDu5KYeDDOzm0HgEkkBYnc=; b=P8p38Uh0M80AclAJil+aZs0bsoQUwKBs/CvXvg57k+SD1vZ64Mau3AmLwV96njcKBk aOLWH6njnMM1LPcjD1IAcgnmW4LkuGuiGTDlpbIW4ovlFYJZPBoY/rj5KQeWYi93W4cG 7qUryz98BvNsh809BUO6WiAHzt5AhIin5p3H1hgYA8AWBNMTwt2S3teC+EOJ6r/4UVyK gUNgl4VK6wmG+1wRAzsG7piJXq0WwZ5tp35NcaE//lazeITOQu7XkV/rrERyVOZu5Pan gB8YFbyf0pVitwKNOBlm+9XTmSqholVHsJWIajan42vBlTccAn35C6WTck0zXriEg424 oQXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6HrXb1MRMvuJZH4Tlpi5gzDu5KYeDDOzm0HgEkkBYnc=; b=rVgqGvkfmIMwr9X3MQ8NzAY5hwZ2gJYoZCxLpWWOSMXh10/YTx2Mw0jJHn0+tPi+Tb o77PXJUFg8Rqol9VrqrrbfaOEWwnrevYXzPp/gWxVMKivfbXcW5Dnnu52drw/4rxoyh3 e78jGpN1+kmUmaPtbCWPP2HqUSd5bv/l5rnXIhecl0YVOFO6XP69f107kJqe1L4wSedh bNASRfNSiyZX39lAsA2HRi8eMoIIu47s8XJGxk8IWerNx7HX51FyYAjDb0qjJZ7iRr95 l7kq6fzgbqirepRMZEwvOhiTwfsQw5wbXAwO8LT4KxvYMpkZzchIiwPo+IMVavbxw0sv OqMQ== X-Gm-Message-State: AOAM532Smti1LthEhaXIWD8CVb+WskslV90HfGVfBTnFDts1XH550DvP KJLcP9qtdkRdrGdsv8nYTDY= X-Received: by 2002:a62:fb1a:0:b029:142:2501:39f9 with SMTP id x26-20020a62fb1a0000b0290142250139f9mr4801639pfm.72.1601174932142; Sat, 26 Sep 2020 19:48:52 -0700 (PDT) Received: from dhcp-12-153.nay.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id b15sm6682050pft.84.2020.09.26.19.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 19:48:51 -0700 (PDT) Date: Sun, 27 Sep 2020 10:48:40 +0800 From: Hangbin Liu To: Kees Cook Cc: Shuah Khan , Naresh Kamboju , Jonathan Corbet , linux-doc@vger.kernel.org, Tim.Bird@sony.com, lkft-triage@lists.linaro.org, Anders Roxell , Justin Cook , Linux-Next Mailing List , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 2/2] selftests/run_kselftest.sh: Make each test individually selectable Message-ID: <20200927024840.GD2531@dhcp-12-153.nay.redhat.com> References: <20200925234527.1885234-1-keescook@chromium.org> <20200925234527.1885234-3-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925234527.1885234-3-keescook@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 04:45:27PM -0700, Kees Cook wrote: > Currently with run_kselftest.sh there is no way to choose which test > we could run. All the tests listed in kselftest-list.txt are all run > every time. This patch enhanced the run_kselftest.sh to make the test > collections (or tests) individually selectable. e.g.: > > $ ./run_kselftest.sh -c seccomp -t timers:posix_timers -t timers:nanosleep > > Additionally adds a way to list all known tests with "-l", usage > with "-h", and perform a dry run without running tests with "-n". This is better than my previous patch and we can modify run_kselftest.sh easily. The Documentation/dev-tools/kselftest.rst should also be update. Thanks Hangbin