Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1508658pxf; Fri, 2 Apr 2021 12:32:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc1TFlhBXX4Iedyuwavmqi9XLmKqAJQLioGY2HML5bBKX7d50A+aQI49AUx/jkEHef+Yj7 X-Received: by 2002:a05:6402:5113:: with SMTP id m19mr17438788edd.78.1617391937410; Fri, 02 Apr 2021 12:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617391937; cv=none; d=google.com; s=arc-20160816; b=ptw3dbrFlYgr2nMjSgh0V8sePcUYE18VI10tVjt33NJH5tf9VvHhv6cqYKx/DeAMAT WLl19w/WIssvplARqGJapIxmYe7vwk6+cn/xXv6YB3U80VY5a3NNCE2qa7oa+D7R9qDb KE8nj0jHeGSHRrR4Gna/iZWHtICwgrl6vRTrwM786DIi5ZZz0ABcoDL0JLv5lr5U//5P WAEKU94NoojNpVaWmA2NUaLS4xpQEhCr33toa5jBwxaCUJnqUbmYF00KMMaanN6lFfmI TOyu0Y59rnoVF1o5JsMcoqKnR4NRwBR3fy/OYyf3RlyxlR41U/6HYYBt5f6hh5ghck2i 2w/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3ZsTSai2xloiVtA0UuM7lgfymSzT+xeULqDLkqQxO1Q=; b=UqxduLn32gws23KrgRVykPBUI4RUOg+E97eagCGK6eNosNV+uBX3DQ0RHtxARlV8A5 lGT34vmdyCP6qhoIyXwHJyEUGMQi6Rdkcssv7tH7cF4AEE+PHEOH583WdQO42RDBe6ze cEQdwJM7G+6EkFyd5nL2OBkNLahU86d3oUnz21N0qMj7cLtCnYNt6dpBTt+w3MM7sGW9 HYE029AmebzB/rBV0sh9+DS6Pf1AU/SvpHAxY5WmRxiYO3OwcnR8gmuZwIJipnPsllAn qrn5p5SOPlPm6TN+yX7dsL6Uf2+yceuRG/wa0tqI1rQOlobDW7l/iKK+3P1hFnNbtNUf BikA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=R9W5aaLJ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si6847816edw.62.2021.04.02.12.31.54; Fri, 02 Apr 2021 12:32:17 -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=@linuxfoundation.org header.s=google header.b=R9W5aaLJ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbhDBTbW (ORCPT + 99 others); Fri, 2 Apr 2021 15:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235392AbhDBTbU (ORCPT ); Fri, 2 Apr 2021 15:31:20 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 446F4C061788 for ; Fri, 2 Apr 2021 12:31:19 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id k8so3840909iop.12 for ; Fri, 02 Apr 2021 12:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3ZsTSai2xloiVtA0UuM7lgfymSzT+xeULqDLkqQxO1Q=; b=R9W5aaLJd1+ic4GJqwXPY/w6fu7NdzXyyGcr1e1jlS3/rc7dGI0cpKLDCtaimfbzVZ zH2J+C/XtYlMRx0DF+OgPKZnK93OMeDc6P6Hv6ZNs60Ufu9mdhaTMl3ApzHXzre3oYbd 3wdS6aSAZURN3IJvUTaC4Tu1lqCGU+SWOjmlA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3ZsTSai2xloiVtA0UuM7lgfymSzT+xeULqDLkqQxO1Q=; b=L9Q+EW497qjwwxwYqS8zunZqhFAG51kzEjfj6km91MfraXviw9luUHUJgWtd/Ojacx A3KDLp31Oh+LUKBjBYM25t/v4Qd7vWbcmL+PopKdGn0k2m5le367XjJZITxMNc4wHKMX qZg1HvFqMcRnvrw/d2abCgDfNNWcm9v7oJ1/0CrgKt7paL9dyEtu+dGoEvOsa+kQznMy 9aHJ56FQVMNrVfP5dmaYF2WN2gMwmmmBTgE0AiUHqQd6BotXd14rbaAefTI33dNdrCiM +rvjPbvBcCJQJp/3BO2Je55wjsKGXsTOq+tZu9LpLmVUOSA68Ha/vb878Zf7igbbuYXx leQQ== X-Gm-Message-State: AOAM530HCfjDfo19yhPTR6lBh1He4wQT4bcilDgns1zVEUaDxpTI9qeh vatTuSlePEdz6i6odhExLnXqqWDu3rFZxA== X-Received: by 2002:a05:6602:280f:: with SMTP id d15mr11705250ioe.127.1617391878792; Fri, 02 Apr 2021 12:31:18 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id t9sm2877122ilp.65.2021.04.02.12.31.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Apr 2021 12:31:18 -0700 (PDT) Subject: Re: [PATCH] kunit: tool: make --kunitconfig accept dirs, add lib/kunit fragment To: Daniel Latypov Cc: Brendan Higgins , David Gow , KUnit Development , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , Theodore Ts'o , Shuah Khan References: <20210222225241.201145-1-dlatypov@google.com> <20210402093228.755260-1-brendanhiggins@google.com> <38510e93-843c-b0e0-5ad5-4953660de79b@linuxfoundation.org> From: Shuah Khan Message-ID: <97706798-cf13-a21f-fdbf-5cecd9f7d6d0@linuxfoundation.org> Date: Fri, 2 Apr 2021 13:31:17 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/2/21 1:27 PM, Daniel Latypov wrote: > On Fri, Apr 2, 2021 at 11:00 AM Shuah Khan wrote: >> >> On 4/2/21 3:32 AM, Brendan Higgins wrote: >>>> TL;DR >>>> $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit >>>> >>>> Per suggestion from Ted [1], we can reduce the amount of typing by >>>> assuming a convention that these files are named '.kunitconfig'. >>>> >>>> In the case of [1], we now have >>>> $ ./tools/testing/kunit/kunit.py run --kunitconfig=fs/ext4 >>>> >>>> Also add in such a fragment for kunit itself so we can give that as an >>>> example more close to home (and thus less likely to be accidentally >>>> broken). >>>> >>>> [1] https://lore.kernel.org/linux-ext4/YCNF4yP1dB97zzwD@mit.edu/ >>>> >>>> Signed-off-by: Daniel Latypov >>> >>> Reviewed-by: Brendan Higgins >>> >> >> Should this be captured in documentation. Especially since this >> is file is .* file. >> >> Do you want to include doc in this patch? Might be better that way. > > It definitely should be documented, yes. > The only real example hadn't landed yet when I sent this patch > (fs/ext4/.kunitconfig was going in through the ext4 tree), but now > it's in linus/master. > > There's still some uncertainties about what best practices for this > feature should be, i.e. > * how granular should these be? > * how should configs in parent dirs be handled? Should they be > supersets of all the subdirs? > * E.g. should fs/.kunitconfig be a superset of > fs/ext4/.kunitconfig and any other hypothetical subdir configs? > * Should we wait on saying "you should do this" until we have > "import" statements/other mechanisms to make this less manual? > * how should we handle non-UML tests, like the KASAN tests? > * ideally, kunit.py run will eventually support running tests on x86 > (using qemu) > > If it's fine with you, I was hoping to come back and add a section to > kunit/start.rst when we've had some of those questions more figured > out. > Sound good. I will apply this patch and you can document later. thanks, -- Shuah