Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1234225pxu; Sat, 24 Oct 2020 04:47:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9I1sJJSGeNQJ76aY2CVfUSbpK/CA1dWMoBm9iQ3+76x028GGRcPTrh7mORuFO528yKPb+ X-Received: by 2002:aa7:da4d:: with SMTP id w13mr317509eds.266.1603540049027; Sat, 24 Oct 2020 04:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603540049; cv=none; d=google.com; s=arc-20160816; b=lC0F3vC4wlg2akekJX02oaImyt7398nbt1ORXNUPUXEuTdZsIHHz9QI7Lmn0M0NgQ8 on7FPW0Ps8xW61vxwwS/5lEgIj9r/ZI3R6vL2+kQ0ZOXJwaMPhDYCn87g9e1m6eatTVY osN7QMi6gy+U4QmLdkTpn9NELmF8HjsoJkSsLuJ2x3RWb08tzC/k7wmOc+jpiZiIEp2n eFJye815TcmmWOaEF93+1/sJ/XOrCZuU8AsWqDyTw04pEBmCX9vh9gaT9UhO/RgrVvCo p7NvFYQ96Ebsh9mXrjNq/GyKnfLMpefbczNZ6ti6J/+0z+M5pD7jCXbbYmQVd6s0Kl2m zRXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=uerM/CfLEPpF45Ttw5MUfhfJDVGud3I86y2qOg/I9i0=; b=ChW4+myQSDHJKkXqit8pPfH7E/n5lsphuIuKzyGFWK4Vl+S7TC+UDsRYHsYL6Z/cbH h+7QjqwdS04XVqkc6qXYnrY1NlEVOep+PBvFeKv4tGN43Kb6jv0zJWoQ26Tawt0T4UiY 8OusGROQ6Sx2FhOaP+lJLElhVyDl3GeysMZ4pDIhsILTbc9tsmFZiRwFy2yZ35v13HXF cvuhyjguyl5CZ0c5QOLlGe8wfvk44HXlyqrFzeDUoa6GUIEe6SClyLjxdHLtnccTc2Nl 2iKg/iZwzap6G04tZat4RdrxemTomBR7RKg8hvHvcopizQEh9alueUQv0VRqj6UENPe9 nt4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zo20si2907356ejb.748.2020.10.24.04.47.07; Sat, 24 Oct 2020 04:47:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759943AbgJXHyA (ORCPT + 99 others); Sat, 24 Oct 2020 03:54:00 -0400 Received: from mail.parknet.co.jp ([210.171.160.6]:41508 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756214AbgJXHx7 (ORCPT ); Sat, 24 Oct 2020 03:53:59 -0400 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id C2DCB1B3B63; Sat, 24 Oct 2020 16:53:58 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-20) with ESMTPS id 09O7rvgf003004 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 24 Oct 2020 16:53:58 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-20) with ESMTPS id 09O7rvAW028044 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 24 Oct 2020 16:53:57 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id 09O7rtrT028043; Sat, 24 Oct 2020 16:53:55 +0900 From: OGAWA Hirofumi To: David Gow Cc: Brendan Higgins , shuah@kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6] fat: Add KUnit tests for checksums and timestamps References: <20201024055955.2553966-1-davidgow@google.com> <20201024060558.2556249-1-davidgow@google.com> Date: Sat, 24 Oct 2020 16:53:55 +0900 In-Reply-To: <20201024060558.2556249-1-davidgow@google.com> (David Gow's message of "Fri, 23 Oct 2020 23:05:58 -0700") Message-ID: <87ft64ys8c.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Gow writes: > diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig > index 66532a71e8fd..4e66f7e8defc 100644 > --- a/fs/fat/Kconfig > +++ b/fs/fat/Kconfig > @@ -115,3 +115,15 @@ config FAT_DEFAULT_UTF8 > Say Y if you use UTF-8 encoding for file names, N otherwise. > > See for more information. > + > +config FAT_KUNIT_TEST > + tristate "Unit Tests for FAT filesystems" if !KUNIT_ALL_TESTS > + depends on KUNIT && (MSDOS_FS || VFAT_FS) > + default KUNIT_ALL_TESTS > + help > + This builds the FAT KUnit tests > + > + For more information on KUnit and unit tests in general, please refer > + to the KUnit documentation in Documentation/dev-tools/kunit > + > + If unsure, say N Maybe, the following would be better? With this, it looks like kunit works whether depends on or select. Thanks. diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig index ca31993..c1229d4 100644 --- a/fs/fat/Kconfig 2020-09-02 20:48:54.967175266 +0900 +++ b/fs/fat/Kconfig 2020-10-24 16:44:07.734324397 +0900 @@ -77,7 +77,7 @@ config VFAT_FS config FAT_DEFAULT_CODEPAGE int "Default codepage for FAT" - depends on MSDOS_FS || VFAT_FS + depends on FAT_FS default 437 help This option should be set to the codepage of your FAT filesystems. @@ -115,3 +115,15 @@ config FAT_DEFAULT_UTF8 Say Y if you use UTF-8 encoding for file names, N otherwise. See for more information. + +config FAT_KUNIT_TEST + tristate "Unit Tests for FAT filesystems" if !KUNIT_ALL_TESTS + depends on KUNIT && FAT_FS + default KUNIT_ALL_TESTS + help + This builds the FAT KUnit tests + + For more information on KUnit and unit tests in general, please refer + to the KUnit documentation in Documentation/dev-tools/kunit + + If unsure, say N _ -- OGAWA Hirofumi