Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp307706pxu; Thu, 15 Oct 2020 04:38:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKEmoTCvqrWMZF+uHS2aZ8YOkf0JEP9+yfTcrqyyXIbkQeiT4OjfDoB3yiiy6cybjxoPou X-Received: by 2002:a17:906:1e45:: with SMTP id i5mr3828521ejj.203.1602761921212; Thu, 15 Oct 2020 04:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602761921; cv=none; d=google.com; s=arc-20160816; b=090ASwXJy5l16macdnU12na5IGRMwferKjfav916s2ADIu8koTXJmD7JEgfrSkC5MP /6+nt0HTxCymY9NlnF5LAxaT5g7EfyLOnuWVQLvjxkBNoQv7fCKTZexTW8FcO540BVG+ /yNR+5vl9UOXqn8WbBi9d6Y/HJ+diuk4dLIltq4vlDi0/DpLc1l4IN/yxbP8fY9xTyAZ Wx5l4Rz6cmut6UerA1ozzawZxlUp7Zv5ih/qdKtjpU0mBC1zk0fywsYOYU34oA+fGB5/ fqwHDO7mSABjHwg+eMKFIjvmeYZ/MznEqilLprw87k4i6Alxu9Zat647ooqhX1gD6pPg kcAw== 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=U/oWxjxOfWlAIEhqMrrUligmtkGSiaLafGJiqZMoZ+A=; b=WRxT8pSriP0wUVjWes7s5qfFxjW8i7M6IuCuuHUxXluzuA8aVPW4I5mAGFw0AzvbVO PUtyxHmm7szCHaRRH4tYCoTHR9NCAyM8NvN7xWlMvojLbnzzv915V3Atf29mbR0GZ9zf IGvgV5Yt3DfFl3gmMsxVrauJgqzSKJ4otUN7ZT9usFOK3uvOVC+DKIbW6Vphosj0EgzT whEE5vr6yMsnXrmyHG+HA9TAdkWnEqmUNxGlC3Du2nMS2qMY8YwEJcXDQNDsgV5XBOsv voRm2tPwBRWc6xDilfOZSkN541pYc3lq8HsnWnlwk03nTs3rFB1ALWSwiPNeN7M03SQv Qhjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RddR1mJz; 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 m26si1775290edq.372.2020.10.15.04.38.18; Thu, 15 Oct 2020 04:38:41 -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=RddR1mJz; 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 S1727753AbgJOJ1t (ORCPT + 99 others); Thu, 15 Oct 2020 05:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730623AbgJOJ1s (ORCPT ); Thu, 15 Oct 2020 05:27:48 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F902C0613D3 for ; Thu, 15 Oct 2020 02:27:47 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id w17so3288483ilg.8 for ; Thu, 15 Oct 2020 02:27:47 -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=U/oWxjxOfWlAIEhqMrrUligmtkGSiaLafGJiqZMoZ+A=; b=RddR1mJzacpz//w0bbpREDVk2eN/vNgniNb6ER0bp7XU7rzMAGfibxLc8KB+4j3HgM VxyYVpeJhgZOKcY0ck8LDt6tJeKzoIA94Hd8AKYNqZT+edFGr1QkFWLwtRcZtYD7c1bR qAOadY/5erawCDQQ6KuuFjyTJkKCObwnTNJJXS/jEr+gDKIywgWypFwcnyK7dPNJcQ2r 9bE8icpeivGjjlj0wsJ2OsgYsbBESIRVaSt9rfmGq8V+cvo23lVYsXIDVHwvMo3G4SOP 5Tt++WXzi+2GdCwWS4bk+Ku5SyYY4gALETMT5xiWsEmDCJjIxrvSfZhkly8S+YSTG6gM 3Vxg== 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=U/oWxjxOfWlAIEhqMrrUligmtkGSiaLafGJiqZMoZ+A=; b=jNrD+wisZhiPk5Q+8lUVRr7qK7m6c9R5a/8kcOfx5S1lNXDpA+4WRfq9Nb5nnpFZ5w mH9Nr+F2iWtSZ9+uqYNwS5KFXWSseMWR6ces12GIQd6H7SHD9eAFKbJZeiFic6553T2w Da1ygAsX493AkwPnl8OTpbSsKHTv6n4M/qgLCW4P5ozY2P5Zf9MMzUUpnIBS3DQ2li/N r4TnqPBW4S6JJIQEbVzaRdWRjZ7BgBc5sKIqfTPQcUNAOTtTg8nzYHkZm/CRju0u80QS l+LmLisSmg3onIiwb+PrxqyW0nsBFwRqKz9zPx10pJZzvvMRHjXxBmaoF4gd6M0jOV7a WMlg== X-Gm-Message-State: AOAM5317dsCC8qMvWTXDZSD2xK9kex5Am4nbsnWkHeEKLUpCW4GRMAWp eeImdqZh7YyxkvIgZhykLVV6aJ1OsB8XpbWbCRryrQ== X-Received: by 2002:a05:6e02:5ad:: with SMTP id k13mr2483422ils.71.1602754066287; Thu, 15 Oct 2020 02:27:46 -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, 15 Oct 2020 14:57:34 +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". 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 - Naresh