[RFC PATCH v5 5/8] selftests/damon/sysfs.sh: test quota goal complement flag file
From: SJ Park
Date: Mon Sep 28 2026 - 05:38:48 EST
Test the existence and the valid input acceptance of the newly added
quota goal complement flag sysfs file.
Signed-off-by: SJ Park <sj@xxxxxxxxxx>
---
tools/testing/selftests/damon/sysfs.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh
index b66593c9ac47..1cc7ab2d7e22 100755
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -212,6 +212,9 @@ test_goal()
ensure_write_succ "$fpath" "node_eligible_mem_bp" "valid input"
ensure_write_succ "$fpath" "hugepage_mem_bp" "valid input"
ensure_write_fail "$fpath" "foo" "invalid input"
+ ensure_file "$goal_dir/complement" "exist" "600"
+ ensure_write_succ "$goal_dir/complement" "Y" "valid input"
+ ensure_write_succ "$goal_dir/complement" "N" "valid input"
ensure_file "$goal_dir/nid" "exist" "600"
ensure_file "$goal_dir/path" "exist" "600"
}
--
2.47.3