[7/9] selftests/damon/sysfs: test DAMOS apply intervals

Message ID 20230916020945.47296-8-sj@kernel.org
State New
Headers
Series mm/damon: implement DAMOS apply intervals |

Commit Message

SeongJae Park Sept. 16, 2023, 2:09 a.m. UTC
  Update DAMON selftests to test existence of the file for reading/writing
DAMOS apply interval under each scheme directory.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 tools/testing/selftests/damon/sysfs.sh | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh
index 60a9a305aef0..56f0230a8b92 100644
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -175,6 +175,7 @@  test_scheme()
 	ensure_dir "$scheme_dir" "exist"
 	ensure_file "$scheme_dir/action" "exist" "600"
 	test_access_pattern "$scheme_dir/access_pattern"
+	ensure_file "$scheme_dir/apply_interval_us" "exist" "600"
 	test_quotas "$scheme_dir/quotas"
 	test_watermarks "$scheme_dir/watermarks"
 	test_filters "$scheme_dir/filters"