1 #!/bin/bash 1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 source _debugfs_common.sh 4 source _debugfs_common.sh 5 5 6 # Test attrs file 6 # Test attrs file 7 # =============== 7 # =============== 8 8 9 file="$DBGFS/attrs" 9 file="$DBGFS/attrs" 10 orig_content=$(cat "$file") 10 orig_content=$(cat "$file") 11 11 12 test_write_succ "$file" "1 2 3 4 5" "$orig_con 12 test_write_succ "$file" "1 2 3 4 5" "$orig_content" "valid input" 13 test_write_fail "$file" "1 2 3 4" "$orig_conte 13 test_write_fail "$file" "1 2 3 4" "$orig_content" "no enough fields" 14 test_write_fail "$file" "1 2 3 5 4" "$orig_con 14 test_write_fail "$file" "1 2 3 5 4" "$orig_content" \ 15 "min_nr_regions > max_nr_regions" 15 "min_nr_regions > max_nr_regions" 16 test_content "$file" "$orig_content" "1 2 3 4 16 test_content "$file" "$orig_content" "1 2 3 4 5" "successfully written" 17 echo "$orig_content" > "$file" 17 echo "$orig_content" > "$file"
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.