mirror-linux/tools/testing/selftests/damon
Enze Li 79509ec1d2 selftests/damon/_damon_sysfs: skip testcases if CONFIG_DAMON_SYSFS is disabled
When CONFIG_DAMON_SYSFS is disabled, the selftests fail with the following
outputs,

not ok 2 selftests: damon: sysfs_update_schemes_tried_regions_wss_estimation.py # exit=1
not ok 3 selftests: damon: damos_quota.py # exit=1
not ok 4 selftests: damon: damos_quota_goal.py # exit=1
not ok 5 selftests: damon: damos_apply_interval.py # exit=1
not ok 6 selftests: damon: damos_tried_regions.py # exit=1
not ok 7 selftests: damon: damon_nr_regions.py # exit=1
not ok 11 selftests: damon: sysfs_update_schemes_tried_regions_hang.py # exit=1

The root cause of this issue is that all the testcases above do not check
the sysfs interface of DAMON whether it exists or not.  With this patch
applied, all the testcases above now pass successfully.

Link: https://lkml.kernel.org/r/20250531093937.1555159-1-lienze@kylinos.cn
Signed-off-by: Enze Li <lienze@kylinos.cn>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-05-31 22:46:15 -07:00
..
.gitignore selftests/damon: remove tests for DAMON debugfs interface 2025-01-25 20:22:29 -08:00
Makefile selftests/damon: remove the remaining test scripts for DAMON debugfs interface 2025-05-11 17:48:30 -07:00
_damon_sysfs.py selftests/damon/_damon_sysfs: skip testcases if CONFIG_DAMON_SYSFS is disabled 2025-05-31 22:46:15 -07:00
access_memory.c selftests/damon/access_memory: use user-defined region size 2024-07-03 19:30:28 -07:00
access_memory_even.c selftests/damon/access_memory_even: remove unused variables 2024-11-05 16:56:30 -08:00
config selftests/damon/config: remove configs for DAMON debugfs interface selftests 2025-01-25 20:22:29 -08:00
damon_nr_regions.py selftests/damon/damon_nr_regions: sort collected regiosn before checking with min/max boundaries 2025-03-05 21:36:16 -08:00
damos_apply_interval.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00
damos_quota.py selftests/damon/damos_quota: make real expectation of quota exceeds 2025-03-05 21:36:16 -08:00
damos_quota_goal.py selftests/damon/damos_quota_goal: handle minimum quota that cannot be further reduced 2025-03-05 21:36:12 -08:00
damos_tried_regions.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00
lru_sort.sh selftests/damon: Add executable permission to test scripts 2023-09-26 19:24:44 -06:00
reclaim.sh selftests/damon: Add executable permission to test scripts 2023-09-26 19:24:44 -06:00
sysfs.sh selftests/damon: test quota goals directory 2023-12-12 10:57:04 -08:00
sysfs_update_removed_scheme_dir.sh selftests/damon: Add executable permission to test scripts 2023-09-26 19:24:44 -06:00
sysfs_update_schemes_tried_regions_hang.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00
sysfs_update_schemes_tried_regions_wss_estimation.py selftests/damon: add execute permissions to test scripts 2024-09-03 21:15:57 -07:00