Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp791178pxu; Thu, 15 Oct 2020 17:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyolpQe6gcFVqSGxt5nbtbeOjs4eLV6Qj/7/eBEFjPdq22W/2qSOgRSg5gDsGVKlk8NfMZ X-Received: by 2002:a17:906:1246:: with SMTP id u6mr978716eja.432.1602807358969; Thu, 15 Oct 2020 17:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602807358; cv=none; d=google.com; s=arc-20160816; b=HOT6Zi4OPrslyoZKuiw0F/pb3avRQhZcEd8QwREvDFd+z8O4p7tghRGDc5jG51qBzw /fNQeVzpwFcfYHsmV9Dh/ieMGHEjvxA+E7q3ZcuIYBv+n69J5cr9rffGWIYVFl730wQ0 YBpEL/MgrJeZOp5s1JuQ/GVFib90i8nMYZFfpvru/Ne/arM/+PSwA3Kas5egQhKOply1 xq+VnJinEwlsTQB0kGh5tr4MAEQjSbQmPsHSlumCQsW0qRakachtHXA00TBPhb36K9z/ AXEUM5SKAUBZ7V0BqS2XqDzDdbtugHqmo5Rr0te35Cscj8q4njiSHGPDeFH3ihPV3BmF 42TQ== 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=+HirN9imkTNenxnF1fARCZ++oG/BPbJh5tZatzn08Pk=; b=GYUvtSZZhNtq+pUl9cNn7BhypwDUqPI/ZMzz9OFmYVktQQ819UOC/F4u03qHbvoMqJ amLHzHLzT7zEra4mSPfq9KoeBZYnSld+ciBgPqjzFk2U123hMblkZQIYCLN8eHtX9pa3 k7z3cDONixl8dbeZd8i2xM0kE++1M+Eb/MBN9ijTq5V1uXriGOn2cFUh86U7YULD5wZM XTDLXPKupdlqMmPN+MQ0PYpKJTgcTDSbbfCzxL15uLGMuRev0UE5gXP3ESKLazChSfK9 UzRy03qYM1tQBPzRO6bL5HLjzmpcKtAGkA1KEcd7IM4CPF1Cd+3Lb+7fMafNwUyDcYQp X/VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NryStx+0; 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 t21si375104edy.511.2020.10.15.17.14.45; Thu, 15 Oct 2020 17:15:58 -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=NryStx+0; 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 S1728428AbgJOV53 (ORCPT + 99 others); Thu, 15 Oct 2020 17:57:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbgJOV53 (ORCPT ); Thu, 15 Oct 2020 17:57:29 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2686CC061755 for ; Thu, 15 Oct 2020 14:57:29 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id b26so251859pff.3 for ; Thu, 15 Oct 2020 14:57:29 -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=+HirN9imkTNenxnF1fARCZ++oG/BPbJh5tZatzn08Pk=; b=NryStx+0D7n93j4bJ+39S+L/RJOrazFnYAsRRDiVE7ats47+CyDN/3kJNv+f9sea/O Z8oyFOqrLTFunDVsds0hgV3+nIDFIcdrfJOjZWTaww0wJnqZppeXwDX6IGcC5sZtBghw CukaZ4IKfMNGzJRKasMyR1cyCQ3ioP0G2omcw= 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=+HirN9imkTNenxnF1fARCZ++oG/BPbJh5tZatzn08Pk=; b=F48zBaFx9Y6rxAR9jFMNm+qbSQ3gVWKRxpI7sO3Li5zBtDq+4SABrfogsHMIFYKLlV PaYgSiSBse7lOkX3b0VaqZgl+lRhg40rnJ1IWW0i6H2eQsONBmQJWol4XvyXF/VeUIN2 xPqMlUWcLaj+melF2IygrHYCDSQmMEY9HPSMMBIT1LF+X3TzbncpQMT4XJAEOuAbVIrd epuYnBFAzq6GxRNqm0DmfeRBkEH6HecuigrIiTjSvVnYBohpcbIfc1/NUN3VQXygsRE7 YFatCBPP7GoiL8YFoWIMxntJrTL7SFlXgESdHdR9c2YelMvXAIKZQiHEWb6cqZtLTYt2 ZeZg== X-Gm-Message-State: AOAM533MECTFOSA3LfCYRtEeyEj518RIhb3PB9BQykiR25NsbB6gXk4A mUgV+2tMOEWftQ7pBetd8bBScHhqpBYEIQ== X-Received: by 2002:aa7:9828:0:b029:152:192d:9237 with SMTP id q8-20020aa798280000b0290152192d9237mr624696pfl.80.1602799048599; Thu, 15 Oct 2020 14:57:28 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id bx22sm278682pjb.40.2020.10.15.14.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 14:57:27 -0700 (PDT) Date: Thu, 15 Oct 2020 14:57:26 -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 2/3] selftests/run_kselftest.sh: Make each test individually selectable Message-ID: <202010151336.3B30332@keescook> References: <20200928202650.2530280-1-keescook@chromium.org> <20200928202650.2530280-3-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 Thu, Oct 15, 2020 at 02:57:34PM +0530, Naresh Kamboju wrote: > 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". > > > While testing this patch set on LAVA the skip test functionality is not working. > We may have to revisit test definitions kselftest skip logic > or else > may add one more option to skip a given test on run_kselftest.sh script. > > ref: > https://github.com/Linaro/test-definitions/blob/master/automated/linux/kselftest/kselftest.sh#L196 Yes, LAVA's hack to skip tests needs to be adjusted. Here's what it should probably look like: https://github.com/Linaro/test-definitions/pull/231 -- Kees Cook