From patchwork Fri Oct 16 11:08:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 11841517 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1A30F14B5 for ; Fri, 16 Oct 2020 11:08:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 050122145D for ; Fri, 16 Oct 2020 11:08:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405622AbgJPLIm (ORCPT ); Fri, 16 Oct 2020 07:08:42 -0400 Received: from mga18.intel.com ([134.134.136.126]:31867 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405493AbgJPLIm (ORCPT ); Fri, 16 Oct 2020 07:08:42 -0400 IronPort-SDR: bFKPbdiXzb3830HP9aUYAKHhWAvv+D44PlNFP+HIehADxSQIM1pPK+4QS2WjOlhR/IyUAEJjQH xMhKJBWEwO9Q== X-IronPort-AV: E=McAfee;i="6000,8403,9775"; a="154382040" X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="154382040" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 04:08:41 -0700 IronPort-SDR: 97od3SZS82BBarFQZnAX5f1NE8gIIVWSEXNyU8mepRZPT5V1RuWjTvyej5tdC5RJJe5AEgLsn2 DLyMwEpoTskw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="352160260" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 16 Oct 2020 04:08:38 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id BFE96163; Fri, 16 Oct 2020 14:08:37 +0300 (EEST) From: Andy Shevchenko To: linux-kselftest@vger.kernel.org, Brendan Higgins , kunit-dev@googlegroups.com, Shuah Khan , Vitor Massaru Iha Cc: Andy Shevchenko , Mark Brown , David Gow Subject: [PATCH v3 1/3] lib/list_kunit: Follow new file name convention for KUnit tests Date: Fri, 16 Oct 2020 14:08:34 +0300 Message-Id: <20201016110836.52613-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Follow new file name convention for the KUnit tests. Since we have lib/*test*.c in a few variations, use 'kunit' suffix to distinguish usual test cases with KUnit-based ones. Cc: Mark Brown Signed-off-by: Andy Shevchenko Reviewed-by: David Gow Acked-by: Brendan Higgins --- v3: added Rb (David), expanded Cc (Mark) MAINTAINERS | 2 +- lib/Makefile | 2 +- lib/{list-test.c => list_kunit.c} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename lib/{list-test.c => list_kunit.c} (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 4538378de6f5..20facbca9388 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10188,7 +10188,7 @@ M: David Gow L: linux-kselftest@vger.kernel.org L: kunit-dev@googlegroups.com S: Maintained -F: lib/list-test.c +F: lib/list_kunit.c LIVE PATCHING M: Josh Poimboeuf diff --git a/lib/Makefile b/lib/Makefile index 5ca03ba6ee45..1a5e6a6ebe8d 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -350,6 +350,6 @@ obj-$(CONFIG_PLDMFW) += pldmfw/ # KUnit tests obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o -obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o +obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o obj-$(CONFIG_BITS_TEST) += test_bits.o diff --git a/lib/list-test.c b/lib/list_kunit.c similarity index 100% rename from lib/list-test.c rename to lib/list_kunit.c From patchwork Fri Oct 16 11:08:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 11841521 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A16214B5 for ; Fri, 16 Oct 2020 11:08:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83B7E20FC3 for ; Fri, 16 Oct 2020 11:08:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405637AbgJPLIo (ORCPT ); Fri, 16 Oct 2020 07:08:44 -0400 Received: from mga09.intel.com ([134.134.136.24]:34486 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405520AbgJPLIn (ORCPT ); Fri, 16 Oct 2020 07:08:43 -0400 IronPort-SDR: npSIgargvp+WWO/4myhLrPuJNfs+Wd5LpytP4tMc7RKwFKNWKHDxNwr/MMOlCBSTn40JzkrHes VLsvWvccTp0A== X-IronPort-AV: E=McAfee;i="6000,8403,9775"; a="166688863" X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="166688863" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 04:08:41 -0700 IronPort-SDR: zfR6fGPJ1Bia8WhSS9AebSegnToDN63oiHZT2fmrsWyfBQ7JxoUFA7SpZsF5eJnFCVE5dkETnC esHXS6lG1uWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="421460032" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 16 Oct 2020 04:08:38 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id D226EFC; Fri, 16 Oct 2020 14:08:37 +0300 (EEST) From: Andy Shevchenko To: linux-kselftest@vger.kernel.org, Brendan Higgins , kunit-dev@googlegroups.com, Shuah Khan , Vitor Massaru Iha Cc: Andy Shevchenko , Mark Brown , Matti Vaittinen , David Gow Subject: [PATCH v3 2/3] lib/linear_ranges_kunit: Follow new file name convention for KUnit tests Date: Fri, 16 Oct 2020 14:08:35 +0300 Message-Id: <20201016110836.52613-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201016110836.52613-1-andriy.shevchenko@linux.intel.com> References: <20201016110836.52613-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Follow new file name convention for the KUnit tests. Since we have lib/*test*.c in a few variations, use 'kunit' suffix to distinguish usual test cases with KUnit-based ones. Cc: Mark Brown Cc: Matti Vaittinen Signed-off-by: Andy Shevchenko Reviewed-by: David Gow Acked-by: Mark Brown --- v3: added Rb (David) MAINTAINERS | 3 +-- lib/Makefile | 2 +- lib/{test_linear_ranges.c => linear_ranges_kunit.c} | 0 3 files changed, 2 insertions(+), 3 deletions(-) rename lib/{test_linear_ranges.c => linear_ranges_kunit.c} (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 20facbca9388..249417a036f9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10069,8 +10069,7 @@ F: include/uapi/linux/lightnvm.h LINEAR RANGES HELPERS M: Mark Brown R: Matti Vaittinen -F: lib/linear_ranges.c -F: lib/test_linear_ranges.c +F: lib/linear_ranges*.c F: include/linux/linear_range.h LINUX FOR POWER MACINTOSH diff --git a/lib/Makefile b/lib/Makefile index 1a5e6a6ebe8d..5c18519d6733 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -350,6 +350,6 @@ obj-$(CONFIG_PLDMFW) += pldmfw/ # KUnit tests obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o +obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o -obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o obj-$(CONFIG_BITS_TEST) += test_bits.o diff --git a/lib/test_linear_ranges.c b/lib/linear_ranges_kunit.c similarity index 100% rename from lib/test_linear_ranges.c rename to lib/linear_ranges_kunit.c From patchwork Fri Oct 16 11:08:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 11841519 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48DF061C for ; Fri, 16 Oct 2020 11:08:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 31364207F7 for ; Fri, 16 Oct 2020 11:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405493AbgJPLIm (ORCPT ); Fri, 16 Oct 2020 07:08:42 -0400 Received: from mga09.intel.com ([134.134.136.24]:34486 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405520AbgJPLIm (ORCPT ); Fri, 16 Oct 2020 07:08:42 -0400 IronPort-SDR: l2b4fZz3R+yTrIW51eVw4o5XPbrgJj2Zn5QOb53uk+6FfJ5pNOAGGU5UVrzGTY9k6DfFdMkl3O ntE+3HMY+yzA== X-IronPort-AV: E=McAfee;i="6000,8403,9775"; a="166688861" X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="166688861" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 04:08:40 -0700 IronPort-SDR: yXblv637jCKhpm+uilUGn7I/XQWVscXvO4rDiGu2AHWXz4SmjysrDy4obbrFqJk4HKiULYIAac p54rXTLauQ2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,382,1596524400"; d="scan'208";a="331131013" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 16 Oct 2020 04:08:38 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id D8B3C1A3; Fri, 16 Oct 2020 14:08:37 +0300 (EEST) From: Andy Shevchenko To: linux-kselftest@vger.kernel.org, Brendan Higgins , kunit-dev@googlegroups.com, Shuah Khan , Vitor Massaru Iha Cc: Andy Shevchenko , Mark Brown , David Gow Subject: [PATCH v3 3/3] lib/bits_kunit: Follow new file name convention for KUnit tests Date: Fri, 16 Oct 2020 14:08:36 +0300 Message-Id: <20201016110836.52613-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201016110836.52613-1-andriy.shevchenko@linux.intel.com> References: <20201016110836.52613-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Follow new file name convention for the KUnit tests. Since we have lib/*test*.c in a few variations, use 'kunit' suffix to distinguish usual test cases with KUnit-based ones. Cc: Mark Brown Signed-off-by: Andy Shevchenko Reviewed-by: David Gow Acked-by: Brendan Higgins --- v3: added Rb (David), expanded Cc (Mark) lib/Makefile | 2 +- lib/{test_bits.c => bits_kunit.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename lib/{test_bits.c => bits_kunit.c} (100%) diff --git a/lib/Makefile b/lib/Makefile index 5c18519d6733..70a4a21ff5d6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -350,6 +350,6 @@ obj-$(CONFIG_PLDMFW) += pldmfw/ # KUnit tests obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o +obj-$(CONFIG_BITS_TEST) += bits_kunit.o obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o -obj-$(CONFIG_BITS_TEST) += test_bits.o diff --git a/lib/test_bits.c b/lib/bits_kunit.c similarity index 100% rename from lib/test_bits.c rename to lib/bits_kunit.c