]> www.infradead.org Git - users/willy/xarray.git/commitdiff
selftests/damon/sysfs: test tried_regions/total_bytes file
authorSeongJae Park <sj@kernel.org>
Wed, 2 Aug 2023 21:32:19 +0000 (21:32 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:34 +0000 (13:37 -0700)
Update sysfs.sh DAMON selftest for checking existence of 'total_bytes'
file under the 'tried_regions' directory of DAMON sysfs interface.

Link: https://lkml.kernel.org/r/20230802213222.109841-4-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>
tools/testing/selftests/damon/sysfs.sh

index bcd4734ca094327d36438ce2e7f8d9a559189625..967e272675499896e327045e754fcb7e7362fc3f 100644 (file)
@@ -84,6 +84,7 @@ test_tried_regions()
 {
        tried_regions_dir=$1
        ensure_dir "$tried_regions_dir" "exist"
+       ensure_file "$tried_regions_dir/total_bytes" "exist" "400"
 }
 
 test_stats()