diff options
| author | SJ Park <sj@kernel.org> | 2026-09-29 01:01:08 -0700 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-14 17:20:15 -0700 |
| commit | ff7e1c8781a50e2bc7db1d2906628ebb48cdc2a4 (patch) | |
| tree | 7e38ebc0c3850284f82b75737b4778b2aab58c96 | |
| parent | a12fef54bd9af0c939540cd0c0fbff080f584765 (diff) | |
| download | linux-next-ff7e1c8781a50e2bc7db1d2906628ebb48cdc2a4.tar.gz linux-next-ff7e1c8781a50e2bc7db1d2906628ebb48cdc2a4.zip | |
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>
| -rwxr-xr-x | tools/testing/selftests/damon/sysfs.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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" } |
