Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp170043pxk; Wed, 30 Sep 2020 22:16:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRyi0qV2lTWMEiZttKVYL4Ruf5DlHe8O0babPqtMQtkTGQm3aYsy1XJmkS/3H6nYzI0Rey X-Received: by 2002:a50:d61e:: with SMTP id x30mr6175825edi.70.1601529381621; Wed, 30 Sep 2020 22:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601529381; cv=none; d=google.com; s=arc-20160816; b=Nil3hzEK1Ki/ue63qqtmlKGTZZ7l7GbpwdBQ/8I3ior9MMZtpjJf8EZR9XoJFVQzQi l9xKzuCC1WgvNKWuuLIIEkxYfS6TVZbsK0xwg3wfjdy5blD9so4ZIGGl8innM4nvnekN z1XB3R/+DAKR1tqvAb8jG79SH6VjrA6N3GHPHT9n4+ltwCV+1Mxr4kNRlLcOGl1aQpAT 71tc2DWSn7QQBjkve7gKmIpS6ByZwTRHVD5bjzimojdj/F/JWaBE39ZeezYOQw/OITGU MkFWq2/gn1WiGVRQZHkYlIz8R7FoTQi3lYRgrAZbLiXEPuEmJH8Wuyb4EzzFf9MBjrvy e+fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zfiXEz/Yp7QnacqOD0Bzaygm1o0QXJVF3bzwVd/E22Q=; b=y02ceNZGJJ68vQUe/pfRXNw5rjbPLEveROBd73H55olCRlvbkmHv6A+v97QoEZEUH5 HvlIrUcSNMQq+q1DZ1D6I2YvTdFtkSrdXrbUyCGqEqHfvfNq66wwmjBMCN4QlVWBzxrZ Dv4K1OUTeBlaTBlJDIiUCKEX1jBysTM0F4Eaqj62VJvpjCgOdjw323dxM+CYuC3b6rWC RzaOZWa7d78C+LH3kDbZOgWzbvHBZs/PJQVNuOfYB8tdB2LozEeud/Iym+9XGPHZRaGO orPScW5U25YmusVEEPBsli6wQUyC/QPYrJAIydHaxjpNOh3EJ/tcoFPhYrWQc0XSDzhX l9mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uz+lMmvf; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si2709865edt.253.2020.09.30.22.15.58; Wed, 30 Sep 2020 22:16:21 -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=@linaro.org header.s=google header.b=Uz+lMmvf; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730679AbgJAFKC (ORCPT + 99 others); Thu, 1 Oct 2020 01:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725952AbgJAFKC (ORCPT ); Thu, 1 Oct 2020 01:10:02 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F80C0613D0 for ; Wed, 30 Sep 2020 22:10:01 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id x14so4282140oic.9 for ; Wed, 30 Sep 2020 22:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zfiXEz/Yp7QnacqOD0Bzaygm1o0QXJVF3bzwVd/E22Q=; b=Uz+lMmvfUS1+tFLwnQ2LlW/OVHuHJghfAGtFQ6AJ2KGeGLhy1Qky5mnDJwmzbAbpKb v7jfYo3oD29S7aGY7clc2Gq9wRpmItDqHfH1GVygOnbaQvgz8ez1XJHACveGMW+v2Pkz 8PsriqINqCg2XRIaDmvD0VZWhLMRGfypdMvwcLxgWBqJRkf5lvDwAdb+XnVtrmFiMotM V8fUdTkREETmdPW7/XkRmjMdWtbJuWLL6y4W4PayDpTK7bIB/RGRZEFGJmcrBULqNU9H DuZW+PYMLdDinRJntfZBzT73jAtCISezkDzN1iRG5JrsuSk9LCQhoHbKAcqneS2KZdXV Si9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zfiXEz/Yp7QnacqOD0Bzaygm1o0QXJVF3bzwVd/E22Q=; b=t7ADYLxI17Yq5yFKYdUUQ7GVyDjNYtnwADuAaP+r/MMHhPJyIqwoHc8Olry18hbKbX KiLDOGhOay4xzLXcCwmN8MlcFKzDpDYPmPxGiVvvX/xWUnGt42zphYbSQ5EE65yCJ26f ZQmg/p5QbcUckrzhQdAkBgddgLhZLuk+bfJr495kZ9BT1R/6Xoz6LUKoFSlarrWi2bhU v6p8Sr5Ttq6321JYyDlP8c8w0izKJ4XmamVGZoqgTD0Klgfdcgx5fSGW1vVS8+GxzObQ m5p+9g7yITfyVKCuakyhzIjQyHgyEj5daU5z2UNyk1gpOpciOLRwN+B3KpdEnIae7Agd t/Jw== X-Gm-Message-State: AOAM532xI9ozUMljtrF80cw0VldI5ygvlFZmx5St0ymAJaOxg/TkAcYK gRZ5ENE+G6AIxciOx9bnyxbd4RQ3n9RTtJXHJ6tHBQ== X-Received: by 2002:aca:4142:: with SMTP id o63mr3062971oia.167.1601529001163; Wed, 30 Sep 2020 22:10:01 -0700 (PDT) MIME-Version: 1.0 References: <20200928202650.2530280-1-keescook@chromium.org> <20200928202650.2530280-3-keescook@chromium.org> In-Reply-To: <20200928202650.2530280-3-keescook@chromium.org> From: Naresh Kamboju Date: Thu, 1 Oct 2020 10:39:50 +0530 Message-ID: Subject: Re: [PATCH v2 2/3] selftests/run_kselftest.sh: Make each test individually selectable To: Kees Cook Cc: Shuah Khan , Hangbin Liu , Jonathan Corbet , linux-doc@vger.kernel.org, Tim.Bird@sony.com, lkft-triage@lists.linaro.org, Anders Roxell , Justin Cook , Linux-Next Mailing List , open list , "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Sep 2020 at 01:56, 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". > > Co-developed-by: Hangbin Liu > Signed-off-by: Hangbin Liu > Signed-off-by: Kees Cook Tested-by: Naresh Kamboju - Naresh