mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-07 06:14:24 +08:00
9ab3b0c8ef
Currently, the single test program, debugfs.sh, contains all test cases for DAMON. When one of the cases fails, finding which case is failed from the test log is not so easy, and all remaining tests will be skipped. To improve the situation, this commit splits the single program into small test programs having their own names. Link: https://lkml.kernel.org/r/20211201150440.1088-12-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendanhiggins@google.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 lines
368 B
Bash
14 lines
368 B
Bash
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
source _debugfs_common.sh
|
|
|
|
# Test empty targets case
|
|
# =======================
|
|
|
|
orig_target_ids=$(cat "$DBGFS/target_ids")
|
|
echo "" > "$DBGFS/target_ids"
|
|
orig_monitor_on=$(cat "$DBGFS/monitor_on")
|
|
test_write_fail "$DBGFS/monitor_on" "on" "orig_monitor_on" "empty target ids"
|
|
echo "$orig_target_ids" > "$DBGFS/target_ids"
|