Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4138930pxb; Mon, 1 Feb 2021 13:33:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvdlRbtCxaplJ/SzeyWR8/j04iwqY87eZLbIlVShkPtbsO7k85fgQdRdBeLwH8N0smEEW4 X-Received: by 2002:a17:906:158c:: with SMTP id k12mr19881602ejd.119.1612215219985; Mon, 01 Feb 2021 13:33:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612215219; cv=none; d=google.com; s=arc-20160816; b=wXnP5AfJS8RdiP81yqZLEb17dl0+52otF5frU58vi6UCAJE/lWEqc+CKg0aoBA9qDG JbwLnXUTixozqoGCAvHO2qwcbCsiYMLPZlcwDMUVGYLdKLRWMZezsLXuK8Acz1hlIOB8 31+ORQBvQxQGBG6YCj9O63rmPd2sFeuwXhlrksJHxthR6thvY7jYRLAhmoNVxaXimopc Gf+1P0zr8QckYudiZfcO/20gEMgSW4fjm9jnevq2kMjGWwUO/ptxMGc8B8+zMSlWzIy1 vqIlUn0qZ4POiDO6yZ/w2WxsFGGxJkARYgrR+SOC2Xu6K5fEQch2K8Ch/zmhx2KrYXhw Hf0Q== 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=XyWshTJy8JoRpyyUXEZJz9pHNXzVDwMTi0TYPALmTT4=; b=cR+v5PUAOabv101T+vNHiBIQg+sWD6sOhB/rWs6fYN69rahqV69lRvUJFfvU8kF1T2 XZP4/RkbP3azWGW8IXxcxprQRzEANFuGW8ZJyBj+lGI38t9/e0UjwwJBpcODWZ0bdBEG ZZzUBVqI7eEW3TMFriSFpy7Fz/3hmycmjyXB2uhHFQjbWHQcs4jNPN9npyiAy4TiAtJV clGpCszM8iEjG9m8tmYmJppukjzWhJu21q9P3fj319Pe2k3oNjgL2yDu0EemsvPiqUDm KAY/PKvdtkRcVwt7Ia8tiD2lv9GZjazmFDurCyHDOw0vYdbMeCFh3yBEmBqoAs5Pr9QK 6MIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Nj5DxMn/"; 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=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 dj14si10902488edb.210.2021.02.01.13.33.14; Mon, 01 Feb 2021 13:33:39 -0800 (PST) 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=@google.com header.s=20161025 header.b="Nj5DxMn/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232284AbhBAVaz (ORCPT + 99 others); Mon, 1 Feb 2021 16:30:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbhBAVax (ORCPT ); Mon, 1 Feb 2021 16:30:53 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66B26C061573 for ; Mon, 1 Feb 2021 13:30:13 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id b21so12984293pgk.7 for ; Mon, 01 Feb 2021 13:30:13 -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=XyWshTJy8JoRpyyUXEZJz9pHNXzVDwMTi0TYPALmTT4=; b=Nj5DxMn/lfkylqkBNZSlsgZ9FMeSEQ+FcyyyPkMi18wpHo+oMhLyKmsDGjCDdKTGO4 qDhaQ5AOuliPb5bmA9upxW/Xc0dcGo72EWeXHnak9PlrbgTTmlzEQYYUg46uTtT4at4Q BRuLWrRoN5g+W+EtZhsCFaULF/BUkwXusENtuGgD9Qmofqje5gYg5IMHFpnr+nilDwAO 1igHaZLA8ipAn5B4NlP7elpvX3Mg4vj/InXHzXM9b5Fh9BwZe50gJeW/h42Trz9lah4G wvzcRovQzvWZ+6mJQ1Lnf55Ss8vbB3Vvf1rnGpYAOUyilzr6/hty8USLXncFjB/n5eMz cAtQ== 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=XyWshTJy8JoRpyyUXEZJz9pHNXzVDwMTi0TYPALmTT4=; b=UfvqjDyFIB7WH6UP+L2eaEBqZeGLK6XQ4gPFGisgidPvtKbuaN9toGZJK+9x2sP75q ai0VAQ/UK/xtql2zdHyrahAG0CkjT1EhaEbhQ+ejc2mZI6H12WGNKATeNQceN37x3Ntj ZVo9yqXLpyMomESG+luG1FjtDEj71q7XUDe5Nqoih/vLbIuu1/qwuO/PEdpuC3y3dh0e 5TlMH7syegZ0+9ZTBN8V34A1EMMcyT6RxuiCjdOa08TUF7WNgNHn8V0XUw05t+CpOsS+ 7Wfji3R9y6vEtOPZWpQX/+VhzzbBgYg/bkdUv0kK4PXBg8Tz0DYjh0a3b95c2p+PXN7y PMVQ== X-Gm-Message-State: AOAM531keCS1f4t4ZIvUJ0sajZzUfskX2rn89CiKQ1LlInbtz0eYrbsv /Crs4BYHJ7BOw1RXqrmTQd5SsTgGVGUbcMFUy4p5iHJ7GPH5EA== X-Received: by 2002:a62:683:0:b029:1c9:6f5b:3d8c with SMTP id 125-20020a6206830000b02901c96f5b3d8cmr18347846pfg.1.1612215012748; Mon, 01 Feb 2021 13:30:12 -0800 (PST) MIME-Version: 1.0 References: <20210201205514.3943096-1-dlatypov@google.com> In-Reply-To: <20210201205514.3943096-1-dlatypov@google.com> From: Brendan Higgins Date: Mon, 1 Feb 2021 13:30:01 -0800 Message-ID: Subject: Re: [PATCH v2] kunit: make kunit_tool accept optional path to .kunitconfig fragment To: Daniel Latypov Cc: David Gow , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 1, 2021 at 12:55 PM Daniel Latypov wrote: > > Currently running tests via KUnit tool means tweaking a .kunitconfig > file, which you'd keep around locally and never commit. > This changes makes it so users can pass in a path to a kunitconfig. > > One of the imagined use cases is having kunitconfig fragments in-tree > to formalize interesting sets of tests for features/subsystems, e.g. > $ ./tools/testing/kunit/kunit.py run --kunticonfig=fs/ext4/kunitconfig > > For now, this hypothetical fs/ext4/kunitconfig would contain > CONFIG_KUNIT=y > CONFIG_EXT4_FS=y > CONFIG_EXT4_KUNIT_TESTS=y > > At the moment, it's not hard to manually whip up this file, but as more > and more tests get added, this will get tedious. > > It also opens the door to documenting how to run all the tests relevant > to a specific subsystem or feature as a simple one-liner. > > This can be seen as an analogue to tools/testing/selftests/*/config > But in the case of KUnit, the tests live in the same directory as the > code-under-test, so it feels more natural to allow the kunitconfig > fragments to live anywhere. (Though, people could create a separate > directory if wanted; this patch imposes no restrictions on the path). > > Signed-off-by: Daniel Latypov Reviewed-by: Brendan Higgins