mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
18378b0e49
When running the test for the damon subsystem, there are a lot of warnings because test scripts do not have executable permission, for example: Warning: file debugfs_attrs.sh is not executable Warning: file debugfs_schemes.sh is not executable Warning: file debugfs_target_ids.sh is not executable ... This patch adds executable permission to test scripts to eliminate these warnings. Signed-off-by: Juntong Deng <juntong.deng@outlook.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
20 lines
552 B
Bash
Executable File
20 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
source _debugfs_common.sh
|
|
|
|
# Test schemes file
|
|
# =================
|
|
|
|
file="$DBGFS/schemes"
|
|
orig_content=$(cat "$file")
|
|
|
|
test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0 1 2 3 1 100 3 2 1" \
|
|
"$orig_content" "valid input"
|
|
test_write_fail "$file" "1 2
|
|
3 4 5 6 3 0 0 0 1 2 3 1 100 3 2 1" "$orig_content" "multi lines"
|
|
test_write_succ "$file" "" "$orig_content" "disabling"
|
|
test_write_fail "$file" "2 1 2 1 10 1 3 10 1 1 1 1 1 1 1 1 2 3" \
|
|
"$orig_content" "wrong condition ranges"
|
|
echo "$orig_content" > "$file"
|