]> www.infradead.org Git - users/willy/xarray.git/commitdiff
mm/damon: move kunit tests to tests/ subdirectory with _kunit suffix
authorSeongJae Park <sj@kernel.org>
Tue, 27 Aug 2024 03:03:35 +0000 (20:03 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:58 +0000 (21:15 -0700)
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

Link: https://lkml.kernel.org/r/20240827030336.7930-9-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: David Gow <davidgow@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c
mm/damon/dbgfs.c
mm/damon/sysfs.c
mm/damon/tests/core-kunit.h [moved from mm/damon/core-test.h with 100% similarity]
mm/damon/tests/dbgfs-kunit.h [moved from mm/damon/dbgfs-test.h with 100% similarity]
mm/damon/tests/sysfs-kunit.h [moved from mm/damon/sysfs-test.h with 100% similarity]
mm/damon/tests/vaddr-kunit.h [moved from mm/damon/vaddr-test.h with 100% similarity]
mm/damon/vaddr.c

index 7a87628b76ab7048f6199aa3abad9098e2418612..086294279b073cc946b8b2869d278cc30e5a433b 100644 (file)
@@ -2205,4 +2205,4 @@ static int __init damon_init(void)
 
 subsys_initcall(damon_init);
 
-#include "core-test.h"
+#include "tests/core-kunit.h"
index 51a6f1cac3854697d3218e71d7d5b3155824ea3f..b4213bc47e44ae6e7c98e161b7bb9c29edd5c52a 100644 (file)
@@ -1145,4 +1145,4 @@ out:
 
 module_init(damon_dbgfs_init);
 
-#include "dbgfs-test.h"
+#include "tests/dbgfs-kunit.h"
index cffc755e7775d6d67536a0393b6859c1c0c432a2..58145d59881dd847ec3ee4bb7313c553d7f7db99 100644 (file)
@@ -1882,4 +1882,4 @@ out:
 }
 subsys_initcall(damon_sysfs_init);
 
-#include "sysfs-test.h"
+#include "tests/sysfs-kunit.h"
index 58829baf8b5d9efbfc059b28db9db8336dcb5017..b0e8b361891d7fc48a88a251d508e53b574dc6f6 100644 (file)
@@ -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"