Lines Matching full:file
56 local file=$efivarfs_mount/$FUNCNAME-$test_guid
58 printf "$attrs\x00" > $file
60 if [ ! -e $file ]; then
61 echo "$file couldn't be created" >&2
65 if [ $(stat -c %s $file) -ne 5 ]; then
66 echo "$file has invalid size" >&2
67 file_cleanup $file
70 file_cleanup $file
75 local file=$efivarfs_mount/$FUNCNAME-$test_guid
77 : > $file
79 if [ ! -e $file ]; then
80 echo "$file can not be created without writing" >&2
83 file_cleanup $file
88 local file=$efivarfs_mount/$FUNCNAME-$test_guid
89 ./create-read $file
91 echo "create and read $file failed"
92 file_cleanup $file
95 file_cleanup $file
101 local file=$efivarfs_mount/$FUNCNAME-$test_guid
103 printf "$attrs\x00" > $file
105 if [ ! -e $file ]; then
106 echo "$file couldn't be created" >&2
110 file_cleanup $file
112 if [ -e $file ]; then
113 echo "$file couldn't be deleted" >&2
124 local file=$efivarfs_mount/$FUNCNAME-$test_guid
126 printf "$attrs\x00" > $file
128 if [ ! -e $file ]; then
129 echo "$file does not exist" >&2
133 chattr -i $file
134 printf "$attrs" > $file
136 if [ -e $file ]; then
137 echo "$file should have been deleted" >&2
144 local file=$efivarfs_mount/$FUNCNAME-$test_guid
145 ./open-unlink $file
156 local file=$efivarfs_mount/$f-$test_guid
158 printf "$attrs\x00" > $file
160 if [ ! -e $file ]; then
161 echo "$file could not be created" >&2
164 file_cleanup $file
191 local file=$efivarfs_mount/$f
193 printf "$attrs\x00" 2>/dev/null > $file
195 if [ -e $file ]; then
196 echo "Creating $file should have failed" >&2
197 file_cleanup $file