Skip to content

Commit 5965d56

Browse files
sjp38akpm00
authored andcommitted
selftests/damon: classify tests for functionalities and regressions
DAMON selftests can be classified into two categories: functionalities and regressions. Functionality tests are for checking if the function is working as specified, while the regression tests are basically reproducers of previously reported and fixed bugs. The tests of the categories are mixed in the selftests Makefile. Separate those for easier understanding of the types of tests. Link: https://lkml.kernel.org/r/20240503180318.72798-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 06cf8ce commit 5965d56

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tools/testing/selftests/damon/Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ TEST_GEN_FILES += debugfs_target_ids_pid_leak
77
TEST_GEN_FILES += access_memory
88

99
TEST_FILES = _chk_dependency.sh _debugfs_common.sh
10+
11+
# functionality tests
1012
TEST_PROGS = debugfs_attrs.sh debugfs_schemes.sh debugfs_target_ids.sh
13+
TEST_PROGS += sysfs.sh
14+
TEST_PROGS += sysfs_update_schemes_tried_regions_wss_estimation.py
15+
TEST_PROGS += damos_quota.py damos_quota_goal.py damos_apply_interval.py
16+
TEST_PROGS += reclaim.sh lru_sort.sh
17+
18+
# regression tests (reproducers of previously found bugs)
1119
TEST_PROGS += debugfs_empty_targets.sh debugfs_huge_count_read_write.sh
1220
TEST_PROGS += debugfs_duplicate_context_creation.sh
1321
TEST_PROGS += debugfs_rm_non_contexts.sh
1422
TEST_PROGS += debugfs_target_ids_read_before_terminate_race.sh
1523
TEST_PROGS += debugfs_target_ids_pid_leak.sh
16-
TEST_PROGS += sysfs.sh sysfs_update_removed_scheme_dir.sh
24+
TEST_PROGS += sysfs_update_removed_scheme_dir.sh
1725
TEST_PROGS += sysfs_update_schemes_tried_regions_hang.py
18-
TEST_PROGS += sysfs_update_schemes_tried_regions_wss_estimation.py
19-
TEST_PROGS += damos_quota.py damos_quota_goal.py damos_apply_interval.py
20-
TEST_PROGS += reclaim.sh lru_sort.sh
2126

2227
include ../lib.mk

0 commit comments

Comments
 (0)