From patchwork Tue Aug 27 03:03:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778788 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8AF3C5321D for ; Tue, 27 Aug 2024 03:04:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 388F86B0098; Mon, 26 Aug 2024 23:03:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 33A2C6B0099; Mon, 26 Aug 2024 23:03:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1FFE06B009A; Mon, 26 Aug 2024 23:03:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id F18306B0098 for ; Mon, 26 Aug 2024 23:03:57 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A6662A1585 for ; Tue, 27 Aug 2024 03:03:57 +0000 (UTC) X-FDA: 82496530914.10.9BF7F3C Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf25.hostedemail.com (Postfix) with ESMTP id 5497AA0010 for ; Tue, 27 Aug 2024 03:03:54 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=IczrbT6R; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724727739; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=oeHVhJ1EwVImZBWJIsUOR1OVXRcxDKqMJgCLcnKyJjc=; b=USVHrEYdeH3yLbq9oI1DfCYpwt8phSixp8IgJbSEKG50ZFebz3it6bLeHRfQTjOI5C/gEk etmkwoiHWuEt3gy4XZu4A6BO/6O33/+W9QjlVy1+TjCCXef7Nkd5A6b2SclTj3NNsRomVk jyfKJ11QfkO2phIg7Y9nKlESs9Jx4Ew= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727739; a=rsa-sha256; cv=none; b=F0tmE5uil/jE9kuD7WPequjXXx7ns1yCV4GT9J15sUYDXc77jQ69mTfrHA++LKLkRe1zaF IyyM2lTjGr9zmD+tubq+IPrdVQbMPIKNpboEwf338JOkcqwGAWOZ4C+rSuxHT/zSTv1RDh PhuZNC+WlMWPHP0KtLOy/ANhWw0xUd8= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=IczrbT6R; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 0DE77CE0FEB; Tue, 27 Aug 2024 03:03:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EC5BC8B7A6; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727831; bh=JEhQGi/c3/4g839WuUytPNlve2LqyXNGTGf1ZogtfsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IczrbT6R+LHP3ZBa3JKJtLLiR6WHgbj/C9Dboh6+GCb+92z9+N24+xktUiYK6dYqi 25HkOqFpJRytB/Apso5kbvD3+Lv1RuFa/jXhFTg7ezFuIl6OJyW8RCUB2VDncsmIq+ UPArIf1ELVzUZo31/xUklNdSlYz4Yi1XVT6wU83ASR+T/fiiDMntcItT9CeZotzia0 h0FQaXZq02txTzXKE1V5lA0nN0pZkTIp2o99e6ZMMex/oG+S2iHjMc7bIcXSYoJtdQ kB6YyrTdtUCUB9SlI0c+PTFKumZSx+n0ZPkm2SuBNdnFP2cM2xH83hJZ0HV3NIcCxR T+4iHExScOahw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Brendan Higgins , David Gow , damon@lists.linux.dev, linux-mm@kvack.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/9] mm/damon: move kunit tests to tests/ subdirectory with _kunit suffix Date: Mon, 26 Aug 2024 20:03:35 -0700 Message-Id: <20240827030336.7930-9-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5497AA0010 X-Stat-Signature: xxsqgzi1g7o63nu888jwicrd9rkukpyi X-Rspam-User: X-HE-Tag: 1724727834-699810 X-HE-Meta: U2FsdGVkX1/OjbeYDLw/ni32Q0c7DnaV3M+2d2Hq7gja3bPiQ7pDQ/G5ay0FFZho5/UDtIPbRToZKvMdUGLlgi3Gew/TwU0OUYv6cE18RBBSxM3i/tR52HTRooQqYOYRuYsVUn/7YyCJQuXfEmU0N7mq1rWgwPrwATQ73OkOo+PBj6YcxM8l7r17hRSyqSW02gx7cnv3PkzJNUyW5iixLEqJ6fZtUK05VD6B2fciCI7te1mZiy87vVgAVao9wMFdg2LeKd+VbdKuXiyqbsRw00RScQN3SERKivfvEL/9ZtNAHZo2vFrSEokNJFVUrptONpW6ilqguOj1gz12aiFKpL9BrQzEjaYzXPe9XQk+HpWlfgLacIAsUEy6sd+rAvAdudzjp3kkvxW/LDSC/a53QpVuxoFdwpP4kMiWMrnaP72+HPGZwU8xrOwuvaEjW3xJ0SRcj72mOPXprJxiKQJJ0B9X1Cd5ZNTK2mifi2bnJh8i0KWdidELQVyY6oW/T3OABh1DdG9lk1kSl/VYUtO/wdC7SirieJj94Kg0kfnJ8WcRP3Qod+9TfZAEpy9vwcYWUx7S4xJnQbm4W1r8xRtshK1EqPLWC8Oj5t/lHP64A1QaRpcdt5avFIID91PYmyrvO0xzjw5ub8zLRoxEbVOlRm1cc05xqOH2Sep2SEgt1TPoqxhosIlSpljNj0C9FEnfDF+T+TWROohPp8QF9TJ88ckzWepcHC16dcOFitBg3Pv6gtl8YVzhHusPQrTUQKPIn3sB6jeK3hpsDVHErW1KeMlmhZywgPzWUxNM+MSOdx8CtYvboNpbV0BIfdbe95yRgc+XcZPPGsA1D5JF0q5Hhq2uC/9aJcshovpqe83c2wSYXST9+AN/DnBBoi10TQWuBx/YhmQE6rBPJrJKVP4fbeaHsRX89NnbBI/HWl2iOzFJFjH3ZxQH6tPR9/gRkSydyGA32l3XGetlamgINU1 B6CyU1G3 +RqypnwH94Ngb1NKuipRep1SetE5U4qFXMmfCDGkmJ38G4f7oNh2SoObZ+9ddC3X5WzT7jeUpo3VQMf0I242JSm0ijMErMoQdq3z5yuMnwZD+rdKudQ0/tqd9b7h+cFduJmPjw3SD1afTF9+tRZF2KUUr+aZZbQ3UuJwxA1nV43CW1+LWbaNRnNsP0fDx0Us7qLqO+orIHfSUC4Ve1iOIIvsXCcOgR1tvwMqXsmLC8Fawqs39xVsBg3C8QwlG3f7otW+Y1Be+DXIC0sT5WJGgclX3B4F1bsGWQZS2wAdMH+K2xRR1lTysx1hkkg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: There was a discussion about better places for kunit test code[1] and test file name suffix[2]. Folowwing the conclusion, move kunit tests for DAMON to mm/damon/tests/ subdirectory and rename those. [1] https://lore.kernel.org/CABVgOS=pUdWb6NDHszuwb1HYws4a1-b1UmN=i8U_ED7HbDT0mg@mail.gmail.com [2] https://lore.kernel.org/CABVgOSmKwPq7JEpHfS6sbOwsR0B-DBDk_JP-ZD9s9ZizvpUjbQ@mail.gmail.com Signed-off-by: SeongJae Park --- mm/damon/core.c | 2 +- mm/damon/dbgfs.c | 2 +- mm/damon/sysfs.c | 2 +- mm/damon/{core-test.h => tests/core-kunit.h} | 0 mm/damon/{dbgfs-test.h => tests/dbgfs-kunit.h} | 0 mm/damon/{sysfs-test.h => tests/sysfs-kunit.h} | 0 mm/damon/{vaddr-test.h => tests/vaddr-kunit.h} | 0 mm/damon/vaddr.c | 2 +- 8 files changed, 4 insertions(+), 4 deletions(-) rename mm/damon/{core-test.h => tests/core-kunit.h} (100%) rename mm/damon/{dbgfs-test.h => tests/dbgfs-kunit.h} (100%) rename mm/damon/{sysfs-test.h => tests/sysfs-kunit.h} (100%) rename mm/damon/{vaddr-test.h => tests/vaddr-kunit.h} (100%) diff --git a/mm/damon/core.c b/mm/damon/core.c index a1c32becfc73..1d2c4daef157 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -2275,4 +2275,4 @@ static int __init damon_init(void) subsys_initcall(damon_init); -#include "core-test.h" +#include "tests/core-kunit.h" diff --git a/mm/damon/dbgfs.c b/mm/damon/dbgfs.c index 51a6f1cac385..b4213bc47e44 100644 --- a/mm/damon/dbgfs.c +++ b/mm/damon/dbgfs.c @@ -1145,4 +1145,4 @@ static int __init damon_dbgfs_init(void) module_init(damon_dbgfs_init); -#include "dbgfs-test.h" +#include "tests/dbgfs-kunit.h" diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index ecf0835e34b8..4daac92be30b 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -1908,4 +1908,4 @@ static int __init damon_sysfs_init(void) } subsys_initcall(damon_sysfs_init); -#include "sysfs-test.h" +#include "tests/sysfs-kunit.h" diff --git a/mm/damon/core-test.h b/mm/damon/tests/core-kunit.h similarity index 100% rename from mm/damon/core-test.h rename to mm/damon/tests/core-kunit.h diff --git a/mm/damon/dbgfs-test.h b/mm/damon/tests/dbgfs-kunit.h similarity index 100% rename from mm/damon/dbgfs-test.h rename to mm/damon/tests/dbgfs-kunit.h diff --git a/mm/damon/sysfs-test.h b/mm/damon/tests/sysfs-kunit.h similarity index 100% rename from mm/damon/sysfs-test.h rename to mm/damon/tests/sysfs-kunit.h diff --git a/mm/damon/vaddr-test.h b/mm/damon/tests/vaddr-kunit.h similarity index 100% rename from mm/damon/vaddr-test.h rename to mm/damon/tests/vaddr-kunit.h diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c index 58829baf8b5d..b0e8b361891d 100644 --- a/mm/damon/vaddr.c +++ b/mm/damon/vaddr.c @@ -730,4 +730,4 @@ static int __init damon_va_initcall(void) subsys_initcall(damon_va_initcall); -#include "vaddr-test.h" +#include "tests/vaddr-kunit.h"