Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1800903rwd; Tue, 13 Jun 2023 14:34:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Xtinlb3MvWC3LtWBljI6KsVPk89vkfI/OfnG73gPjq5jPHxXDXKrUrS6rJaUj08o7Gbr/ X-Received: by 2002:a17:907:1622:b0:96a:90bb:a2d3 with SMTP id hb34-20020a170907162200b0096a90bba2d3mr14797008ejc.71.1686692098839; Tue, 13 Jun 2023 14:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686692098; cv=none; d=google.com; s=arc-20160816; b=cJDw+tCeJtQ+QFzfPyM86JCgJHTtfkeQaJ3HPqRHlGYePrkknxk8SGDaiBVSOPILRS 4vAVj5909Z/InFp3xD53fWciofziWsSuDNYZPt7Ifsz8y+z3kVHFns+TSuR/vq49bvbk JIpHSxBjPyZlca5Y+QNAO8f8IkC38qj67YIEb0LtOTvQLoGyFs6yAsjYM8Eyjak1pw3j j/FeQW4DFq8EsBTpXWxuhbR59CjkzWARf5+ynkYQw5Cr1ltbH9Sy/dPZ7rxcD1h4nFg9 /KIQq0kmgfbNuJc18IqlB6vAewCNDnoadxJZwElNIO1sD0f11hOIE9Y76Nj5kgkjIFoh QdeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IAKJIDFpZuSxjbq11Sivsx7j8EhbMPSluCQPJIPFOeY=; b=nINHlSJ+gP/iijMyPCtkdO5EmKkNHtbhuJunvDsuqUOh3DSqRnIxc3io/YM04Winbr /yUlj+D1vdtPL6vEPxMtK9znPlNdtKLkXMSuLgyVUnVG71GF/iJbdp2PI9yeFhvEoNKT KSf07jqbpdQnYpq2CoUK6wV0fNKjzWUpoenip3k1piX4IDgq1nAzvqgJbRe6zLRUxOzP De4O3OiKeU1575zFjMrwXj9N75uqgIqOny90uTUXhLA0VIRYJR9A27641FL2npXGsD6d Fp63EHUVVZLunROBNZtgdT9gG93LmEK2AFiKS9UT8VGJ+I66ghJkIlpZU1wcxUAIMZ1y s+uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=3wvY99jV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a170906375000b009823e26acaesi1415918ejc.367.2023.06.13.14.34.33; Tue, 13 Jun 2023 14:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=3wvY99jV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234910AbjFMU6r (ORCPT + 99 others); Tue, 13 Jun 2023 16:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjFMU6o (ORCPT ); Tue, 13 Jun 2023 16:58:44 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C790199C for ; Tue, 13 Jun 2023 13:58:43 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-51400fa347dso3830a12.0 for ; Tue, 13 Jun 2023 13:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686689921; x=1689281921; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IAKJIDFpZuSxjbq11Sivsx7j8EhbMPSluCQPJIPFOeY=; b=3wvY99jVUR4aRlrh2JJ3n4XR/82x8Kmm6awdM03ZnnU+AjfX8vl1vS9BU6SUoQOgWL yKQCBUjxJf9WazFAHgYv7mpumPoB44lvFBO6dsdaC+eQAw6ciu8hD5HacFQ5P4OkRt1H LZSb1MZD5UgpFuigznxpri1Q17ISsXb7ZJto36DI2PBRcHgk4y6fu6W3PKWvFPqK5WoZ dtXqxEwL0K09H1j8crTja0ZJGkZTXFE/+QL5t4Ojh2wze1SDTwbkZn2rEUGBqVwT7z8Q 3YX0m4SZaALjPCmLp/hQvKb/7ohYWQj60SUKXEisBqd4oyHujuXiHDO4iz0dFsiiwPp2 9Xxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686689921; x=1689281921; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IAKJIDFpZuSxjbq11Sivsx7j8EhbMPSluCQPJIPFOeY=; b=dnqfOsHn/dEst8MjrWiyp5WsCGSYIHpLdiVFxt8UeneHLdyLbr/knIP6cKBydUVRqK DKI/RBWxRbGR15HfSBxwZ0aleV4lIW0+8O4D3FjhQEasC7iDyRuHm7r/5ikhNCQPAlba wd/e9256tvMkopTu61qSJXGrg+rhTxOL0dHJth1eW+3e1y3XaM5lTqVKdrl19uivrRVy GndlCqHxtiwJ1oXqKd+cVfRS4yGOlixEYHr/p62GyRCl69H6WQGYsHniMkhClDeaRLBb 4KRharwjDYjF7BOapG9CJ7ZFLtWcxixeBSmRGZ/NcTuNAIbsBZs1HXCTHbGBjUL0Uvxm /5Qw== X-Gm-Message-State: AC+VfDybRhhkb2T50wGhH8LovMwG3zrD5MonnFdKq0lltEkmY/CSrd6j HZ5lm5XcV04HQl7ZpcI0egxI/n5OPuryCxZHGtJ2kw== X-Received: by 2002:a50:baa9:0:b0:510:b2b7:8a78 with SMTP id x38-20020a50baa9000000b00510b2b78a78mr17708ede.5.1686689921506; Tue, 13 Jun 2023 13:58:41 -0700 (PDT) MIME-Version: 1.0 References: <20230610005149.1145665-1-rmoar@google.com> <20230610005149.1145665-4-rmoar@google.com> <202306131324.5B69ABC@keescook> In-Reply-To: <202306131324.5B69ABC@keescook> From: Rae Moar Date: Tue, 13 Jun 2023 16:58:30 -0400 Message-ID: Subject: Re: [RFC v1 3/6] kunit: Add ability to filter attributes To: Kees Cook Cc: shuah@kernel.org, davidgow@google.com, dlatypov@google.com, brendan.higgins@linux.dev, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 13, 2023 at 4:26=E2=80=AFPM Kees Cook w= rote: > > On Sat, Jun 10, 2023 at 12:51:46AM +0000, Rae Moar wrote: > > Add filtering of test attributes. Users can filter tests using a > > module_param_array called "filter". This functionality will be added to > > kunit.py in the next patch. > > > > The filters will be imputed in the format: > > "" > > > > Example: "speed>slow" > > > > Operations include: >, <, >=3D, <=3D, !=3D, and =3D. These operations d= o not need > > to act the same for every attribute. > > How is the "default" filter specified? Is explicitly unfiltered? (i.e. > "slow" stuff will run by default?) Or should there be a default filter > of "speed > But yes, I'm a fan of this whole series! I would much prefer this to > having one-off CONFIGs for slow tests. :) > Hello! Great to hear that you are happy to see this series. Currently if no filter is specified, tests will run unfiltered (so the slow tests will run by default). But I think the idea of having a "default" filter is really interesting. I would definitely be open to adding a default filter that only runs tests with speeds faster than slow, which could then be overridden by any filter input. This also means there could be suite specific default filters but that may be a future implementation since we currently only have one attribute. Or alternatively we could have a file that includes a list of default filters that could then be inputted and altered based on suite. Thanks! Rae > -- > Kees Cook