Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp67062pxk; Wed, 30 Sep 2020 18:07:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySFDuReJ05uODnyMQpFnTHt5V2vNXmf8mY8ZEmbLqUQKZ06yW6kPrhisaQl6kYnmyk7JaU X-Received: by 2002:a17:906:8248:: with SMTP id f8mr5735789ejx.292.1601514465927; Wed, 30 Sep 2020 18:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601514465; cv=none; d=google.com; s=arc-20160816; b=eHcVC/fQUJDvNt/jVueKJtLftljigMzi6Pc9zkL23ppXp6zBFIqdKe+WQ96VpuKZTa rkghz3C4HFQiwrBaC1uYSZq856K13VQ8DKFY0zhYwsZ0OZVQ9RnHMPZFCIxzjbEPBX/V Ir9lI1cwfSx06zUNIShHYZ3eAb0o1/TCOTQZQoqNGzaA9i4bgpQPWjNn/Gbsd9bN7Xtc Vie/StM4P5qrv/ol0kQxRm0fP3R+IjmKjWel9m/f+1XU+LcT4xvKQnwj8Mvxk/lO28ln av+asMCEsrRwZWCJINKG7GpZTh1v0jJ0qfFYcyzbNNA27vKgPiLnJFl7oGijRmTeWzsm 4wNQ== 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=hlKJ+FfSVyIeAzaG/EkGK7Un9Pk3Wxr576MJ7E0I3IY=; b=iHIji7JGtqoW3UnQkfb2DGLeGlI8Shi9+jJccc9OILiJWzK62yQmTwT9zkjowYl9R1 XqDkiz92iwjQBPChVgaG2Qe/LBwTj38s3bM6VqAoEEBuu0lgoCErQ+c1IdtqMnRadMrK MwuIcMvEsfX3AdtCbjksP5o2IzRnwtiqZYMbaygXs39GoxYCoKHqdqR+yqPs4JUfWMI2 +QrxF0+yPzk+1SSftiDopvLfuwRjCie9Nz6fwzcvuPcj7mQc0Se8M2daOqk1cR9x7iAn A51o6OnkabQ5cCFZ7rQIqF8c2jz8eLDHGargLZ6RaGcEraoQ8sQdaS4s1GOjDCoIn7ao VjyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nOvXiMAl; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si2235930edw.573.2020.09.30.18.07.23; Wed, 30 Sep 2020 18:07:45 -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=@chromium.org header.s=google header.b=nOvXiMAl; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732233AbgI3XZn (ORCPT + 99 others); Wed, 30 Sep 2020 19:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732176AbgI3XZn (ORCPT ); Wed, 30 Sep 2020 19:25:43 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7026C0613D1 for ; Wed, 30 Sep 2020 16:25:42 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id 5so2304027pgf.5 for ; Wed, 30 Sep 2020 16:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hlKJ+FfSVyIeAzaG/EkGK7Un9Pk3Wxr576MJ7E0I3IY=; b=nOvXiMAlZRb1yYmHnykzlJkQbKnxwV9bDYf+wWvHWfHj0HDv1wrV0dIHsJcaRF6xB9 6IvRQ3xg0G1NMN2hzZF8NzoFqBkCXbYsA1JlYu/FAqyq4SGaLPL3KNfQ7zZK2f6xAkwC oVAqbFCmOv7bXjgEFR1YXgLTsGqgSRFnNEYuA= 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=hlKJ+FfSVyIeAzaG/EkGK7Un9Pk3Wxr576MJ7E0I3IY=; b=jFnB+wjNZvydLHZA2ZjFoSG4rrxl+V5KZnGV/x/EUmaJi3+QgTZTJUlfSvduTahJos 0uzrWb50nPePrjhaLvsrbyw1Z0NanuF1ULxWqUdGFsvsGvLzvA1MGdoUKpUpB0wh5uHA hZ7y/EMtTDkCIrAQQuEN+0UZqvnrSthX7glfxJ7p9FK8g/99dhTTzRKceOO2cPlGT/HB ZnHNOnsiTEa9NP3xjnZ5TCUurb+mZoUSjvb0xR1f0DHdU8Q4n3lBBfgrR1I/FfYAI6ff UdH2SZtREmbhM/4bVDXfHlJfd1K3bDQD2h7JjFUmaMKxrXNSjMYAmtQwRHIF2sf8gBgA Hp1g== X-Gm-Message-State: AOAM531zIjfEAqq3+jKUK5jjsmleu7/K/qa4yi1ufXbP7ePBDmE+yqvZ SQLByt6xRtV06079CyMhF9kQRw== X-Received: by 2002:a63:c04d:: with SMTP id z13mr3928899pgi.215.1601508342469; Wed, 30 Sep 2020 16:25:42 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id fz22sm3262561pjb.46.2020.09.30.16.25.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 16:25:41 -0700 (PDT) Date: Wed, 30 Sep 2020 16:25:40 -0700 From: Kees Cook To: Naresh Kamboju 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" Subject: Re: [PATCH v2 0/3] Extract run_kselftest.sh and generate stand-alone test list Message-ID: <202009301624.5698D652C4@keescook> References: <20200928202650.2530280-1-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 09:47:49PM +0530, Naresh Kamboju wrote: > On Tue, 29 Sep 2020 at 01:56, Kees Cook wrote: > > > > v2: > > - update documentation > > - include SPDX line in extracted script > > v1: https://lore.kernel.org/linux-kselftest/20200925234527.1885234-1-keescook@chromium.org/ > > > > > > Hi! > > > > I really like Hangbin Liu's intent[1] but I think we need to be a little > > more clean about the implementation. This extracts run_kselftest.sh from > > the Makefile so it can actually be changed without embeds, etc. Instead, > > generate the test list into a text file. Everything gets much simpler. > > :) > > > > And in patch 2, I add back Hangbin Liu's new options (with some extra > > added) with knowledge of "collections" (i.e. Makefile TARGETS) and > > subtests. This should work really well with LAVA too, which needs to > > manipulate the lists of tests being run. > > > > Thoughts? > > I have tested this patch set on LAVA with full run and it went well. Thank you! You can include this as a tag too, so a "b4 am" will pick it up: Tested-by: Naresh Kamboju -Kees > > > > > -Kees > > > > [1] https://lore.kernel.org/lkml/20200914022227.437143-1-liuhangbin@gmail.com/ > > > > Kees Cook (3): > > selftests: Extract run_kselftest.sh and generate stand-alone test list > > selftests/run_kselftest.sh: Make each test individually selectable > > doc: dev-tools: kselftest.rst: Update examples and paths > > > > Documentation/dev-tools/kselftest.rst | 35 +++++---- > > tools/testing/selftests/Makefile | 26 ++----- > > tools/testing/selftests/lib.mk | 5 +- > > tools/testing/selftests/run_kselftest.sh | 93 ++++++++++++++++++++++++ > > 4 files changed, 124 insertions(+), 35 deletions(-) > > create mode 100755 tools/testing/selftests/run_kselftest.sh > > > > -- > > 2.25.1 > > > > - Naresh -- Kees Cook