DAMON sysfs essential file operations test (sysfs.sh) was extended to
test DAMON probes sysfs directory, by commit 14885da09b0f
("selftests/damon/sysfs.sh: test probes dir").  Unlike other DAMON sysfs
files, it is testing only a single directory case.  Extend it for
multiple directories.

Signed-off-by: SeongJae Park <[email protected]>
---
 tools/testing/selftests/damon/sysfs.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/testing/selftests/damon/sysfs.sh 
b/tools/testing/selftests/damon/sysfs.sh
index 2eaaa5ae3c5ed..d528dfea44c3b 100755
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -346,8 +346,13 @@ test_probes()
        ensure_write_succ "$probes_dir/nr_probes" "1" "valid input"
        test_probe "$probes_dir/0"
 
+       ensure_write_succ "$probes_dir/nr_probes" "2" "valid input"
+       test_probe "$probes_dir/0"
+       test_probe "$probes_dir/1"
+
        ensure_write_succ "$probes_dir/nr_probes" "0" "valid input"
        ensure_dir "$probes_dir/0" "not_exist"
+       ensure_dir "$probes_dir/1" "not_exist"
 }
 
 test_monitoring_attrs()
-- 
2.47.3

Reply via email to