Lines Matching refs:file
5 file=$1
11 echo "$content" > "$file"
14 echo "writing $content to $file doesn't return $expected"
16 echo "$orig_content" > "$file"
30 file=$1
35 content=$(cat "$file")
38 echo "reading $file expected $expected but $content"
40 echo "$orig_content" > "$file"
50 file="$DBGFS/attrs"
51 orig_content=$(cat "$file")
53 test_write_succ "$file" "1 2 3 4 5" "$orig_content" "valid input"
54 test_write_fail "$file" "1 2 3 4" "$orig_content" "no enough fields"
55 test_write_fail "$file" "1 2 3 5 4" "$orig_content" \
57 test_content "$file" "$orig_content" "1 2 3 4 5" "successfully written"
58 echo "$orig_content" > "$file"
63 file="$DBGFS/schemes"
64 orig_content=$(cat "$file")
66 test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0 1 2 3 1 100 3 2 1" \
68 test_write_fail "$file" "1 2
70 test_write_succ "$file" "" "$orig_content" "disabling"
71 echo "$orig_content" > "$file"
76 file="$DBGFS/target_ids"
77 orig_content=$(cat "$file")
79 test_write_succ "$file" "1 2 3 4" "$orig_content" "valid input"
80 test_write_succ "$file" "1 2 abc 4" "$orig_content" "still valid input"
81 test_content "$file" "$orig_content" "1 2" "non-integer was there"
82 test_write_succ "$file" "abc 2 3" "$orig_content" "the file allows wrong input"
83 test_content "$file" "$orig_content" "" "wrong input written"
84 test_write_succ "$file" "" "$orig_content" "empty input"
85 test_content "$file" "$orig_content" "" "empty input written"
86 echo "$orig_content" > "$file"
93 for file in "$DBGFS/"*
95 ./huge_count_read_write "$file"