Lines Matching full:file

8         """Test mock operations on a remote file"""
25 "platform file open /some/file.txt -v 0755", [r"File Descriptor = 16"]
28 "platform file read 16 -o 11 -c 13",
31 self.match("platform file write 16 -o 11 -d teststring", [r"Return = 10"])
32 self.match("platform file close 16", [r"file 16 closed."])
54 "platform file open /some/file.txt -v 0755",
59 "platform file read 16 -o 11 -c 13",
64 "platform file write 16 -o 11 -d teststring",
68 self.match("platform file close 16", [enosys_regex], error=True)
88 "platform get-size /some/file.txt",
89 [r"File size of /some/file\.txt \(remote\): 4096"],
113 "platform get-size /some/file.txt",
114 [r"File size of /some/file\.txt \(remote\): 66051"],
134 "platform get-size /other/file.txt",
135 [r"File size of /other/file\.txt \(remote\): 66051"],
161 "platform get-permissions /some/file.txt",
162 [r"File permissions of /some/file\.txt \(remote\): 0o0644"],
190 "platform get-permissions /some/file.txt",
191 [r"File permissions of /some/file\.txt \(remote\): 0o0644"],
205 """Test 'platform file-exists'"""
214 "platform file-exists /some/file.txt",
215 [r"File /some/file\.txt \(remote\) exists"],
224 """Test 'platform file-exists' with non-existing file"""
233 "platform file-exists /some/file.txt",
234 [r"File /some/file\.txt \(remote\) does not exist"],
243 """Test 'platform file-exists' fallback to open"""
256 "platform file-exists /some/file.txt",
257 [r"File /some/file\.txt \(remote\) exists"],
268 """Test 'platform file-exists' fallback to open with non-existing file"""
279 "platform file-exists /some/file.txt",
280 [r"File /some/file\.txt \(remote\) does not exist"],