selftests/damon/sysfs.sh: test quota goal complement flag file

Test the existence and the valid input acceptance of the newly added
quota goal complement flag sysfs file.

Link: https://lore.kernel.org/20260929080113.41708-6-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Shuah Khan <shuah@kernel.org>
This commit is contained in:
SJ Park 2026-09-29 01:01:08 -07:00 committed by Andrew Morton
parent aeebce981d
commit 1aa52bdc45

View File

@ -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"
}