Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1137320pxb; Wed, 10 Feb 2021 00:34:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwDlFk01mBJDXFGD752zflZlRZPpCP7iAjpkDrSTJwVEYk0WhWIO8Lefu+undcykey40mV X-Received: by 2002:a17:906:1118:: with SMTP id h24mr1870895eja.145.1612946055745; Wed, 10 Feb 2021 00:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946055; cv=none; d=google.com; s=arc-20160816; b=EhxiyGyWdFjgkabt3ZuUs4mI3zwoopW8I5cW7p0O2fFJbGP9wGL2dML+J3a+m5FDgX DxuNrrRU5Zj7ELzETHcH7ER7/5JrP+yhIO5o1EgBI5niAZVWITyUw2LrQWLJD8tPF8v6 jT6iBLu/t459ZAxZCLqPrP+ogIDe1mn2CTw+6va3a7Jc4YAH3uzg+kx5LSQ9rfK45tEs jAYgD6ioWESiYQxYD2LCRlNcLCHUfgViAIjKihuIXClgFcRk4NP76F0ebFbZhjH2YyQS 4854wMNHMMPavVKT0F0F9MHJPouQFIAsTiV7CNEUEljd9o+o+FCw1GpcjkwlbUqtv57I BMyw== 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=KxU8IRCGR97Dvk+7yTC7hx+Kq4dL2ppiigmq6snofR0=; b=WYRUjKxczT1RTsxUbyGfWt6e8X7dbSZXzDwTJy5FACr1cXF05/kTyPB2m5YKVucfSh kGklYtUJoHJCsMTplnfI7Q3v4voifap/e9AAtU4jtu1zmESaZDdVmIj5aKB/PJ2oRwwo d2Y4Wmd30r3oDwWEky1J1/1Xqvo8Rfed/HthLz2+gAVPym6bTxT28E+OoqXU0waMjxLd kjaboi6zY87/aY3qjxi3WWYLC2ecV+MkZ+F+cQetUk8InG6xgbhqPQyP8v7JIOUTYo3y u10hl28dVs7No0zENIDL9MJqpNwzPiELnukot9hsxS6aZlAfTr0Ty+J2ikJcaZpD+Ja4 qj4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ul0PbOnI; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si935406edr.441.2021.02.10.00.33.51; Wed, 10 Feb 2021 00:34:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@google.com header.s=20161025 header.b=Ul0PbOnI; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S231439AbhBJFpL (ORCPT + 99 others); Wed, 10 Feb 2021 00:45:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbhBJFpJ (ORCPT ); Wed, 10 Feb 2021 00:45:09 -0500 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AE96C0613D6 for ; Tue, 9 Feb 2021 21:44:29 -0800 (PST) Received: by mail-io1-xd31.google.com with SMTP id f6so709604ioz.5 for ; Tue, 09 Feb 2021 21:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KxU8IRCGR97Dvk+7yTC7hx+Kq4dL2ppiigmq6snofR0=; b=Ul0PbOnIGdeH63m0gJ+cUttf5WrJNBWQwEhcSLnozxqvGCSAltPPWZ8t3U4Lnb4KgP yX9jMMv5qoCQWCk/k/iQgyq4P74jQIQFSihpOoVsLnJGfIQiB5uSrAWTC0ac0OK83xHC a9eW3CDfMsdSpgsL9atO7fPm9JRXFEioHHq76Wwe8kuUT5bg4xD6SP/mYBgnvKh2XWnO G31Wbj3VmQcMNpM++f/5qLd50NxvY6VXz2XcdEfdLnPgWgv4uypAxfL0g9CfGVAXY/P1 oLG0fidBYW9GERPlTnpltvbSnISXpx4TGl606aQIlxN0JJuvRKujHFVFfWZD+HGPGRm6 VOrA== 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=KxU8IRCGR97Dvk+7yTC7hx+Kq4dL2ppiigmq6snofR0=; b=SIYw+w9J+vWH/j6ICQHZxdQxa2SklksJm572jRgpj2IraUI9kVOpCnc20Bwf+szVFY jjCxIBn5PRoEe5kiMJYW4Nf+omxWryiAGZz9WAIlNZndaqYm3jRPodDyxaBuHO/Mpugs Q+ub7BpQP/OcEP0V9a4rb3rJbpmuDlQmT40kxuZc7zwdiQ522d372NztPLk9qCDfBrfS o+hDoZ+zrlx8cNvzJkBKRkGh+bdNRNnh/PHsn6k7jttroFU0Un6zGolCedEr8lAgqIIz 9DDVc9aB7gVNfI8X/e5oe8uXvxCWZZQnTsv/NHYwjWeyO4EyEXUHwLylJtH0kVhBISPX rMcQ== X-Gm-Message-State: AOAM532wmDSpFKkfdfvyEK8BCIlJP3hx1m9zd7BKF1yoYTNDYf4dLdbt eVtCwCnASkOfuYw97gjuX7pJDbQ2/MCs6yNDiz6D/w== X-Received: by 2002:a6b:da0f:: with SMTP id x15mr1167410iob.48.1612935868235; Tue, 09 Feb 2021 21:44:28 -0800 (PST) MIME-Version: 1.0 References: <20210210013206.136227-1-dlatypov@google.com> In-Reply-To: From: Daniel Latypov Date: Tue, 9 Feb 2021 21:44:16 -0800 Message-ID: Subject: Re: [PATCH] ext4: add .kunitconfig fragment to enable ext4-specific tests To: "Theodore Ts'o" Cc: brendanhiggins@google.com, davidgow@google.com, linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org, kunit-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Feb 9, 2021 at 6:33 PM Theodore Ts'o wrote: > > On Tue, Feb 09, 2021 at 05:32:06PM -0800, Daniel Latypov wrote: > > > > After [2]: > > $ ./tools/testing/kunit.py run --kunitconfig=fs/ext4/.kunitconfig > > Any chance that in the future this might become: > > $ ./tools/testing/kunit.py run --kunitconfig=fs/ext4 I've been in favor of something like that for a while, but haven't gotten folks to agree on the details. Using bazel-like syntax for a bit, I'd really like it if we had some easy way to do $ kunit test //fs/... # run all fs tests across all subdirs But since there's the possibility of having tests w/ incompatible requirements, I don't know that kunit.py can support it. (Tbh, I think just concatenating fragments would probably just work 99% of the time so kunit.py could get away with doing that). So --kunitconfig= is currently a compromise to give us a less controversial way of providing one-liners for testing a whole subdirectory. I don't think there'd be too much opposition for --kunitconfig to automatically append ".kunitconfig" when passed a directory. But there might be some, since a reader might think --kunitconfig=dir/ means it's recursing over all subdirs. > > Or better yet, syntactic sugar like: > > $ ./tools/testing/kunit.py test fs/ext4 The positional argument for run/exec is probably going to be taken by: https://lore.kernel.org/linux-kselftest/20210206000854.2037923-1-dlatypov@google.com/ https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git/commit/?h=kunit&id=5d31f71efcb6bce56ca3ab92eed0c8f2dbcc6f9a So we'd see something like: $ ./tools/testing/kunit.py run --kunitconfig=fs/ext4 '*inode*' Or if we set and followed naming conventions: $ ./tools/testing/kunit.py run --alltests "ext4-*" (this would take a lot longer to build however...) Filtering could also let us curate only a few, less granular .kunitconfig fragments (at the cost of higher build time). E.g. $ ./tools/testing/kunit.py run --kunitconfig=fs/ "ext4-*" > > would be really nice. > > - Ted