Lines Matching refs:file

13 set testdir [file dirname $argv0]
18 # 1.*: That file names are correctly extracted from URIs.
33 # Test that file names are correctly extracted from URIs.
35 foreach {tn uri file} {
37 2 file:test.db test.db
38 3 file://PWD/test.db test.db
39 4 file:PWD/test.db test.db
40 5 file:test.db?mork=1 test.db
41 6 file:test.db?mork=1&tonglor=2 test.db
42 7 file:test.db?mork=1#boris test.db
43 8 file:test.db#boris test.db
45 10 file:test%2Edb test.db
46 11 file file
48 13 file:test.db%00extra test.db
49 14 file:testdb%00.db%00extra testdb
52 16 file://localhostPWD/test.db%3Fhello test.db?hello
64 # NOTE: Due to limits on legal characters for file names imposed by
66 # question mark is illegal in a file name on Windows).
72 # the file name no longer tries to access an alternate data stream
73 # (ADS) named "test.db" for the "http" file, causing some spurious
87 if {[file isdir $file]} {error "$file is a directory"}
88 forcedelete $file
89 do_test 1.$tn.1 { file exists $file } 0
91 do_test 1.$tn.2 { file exists $file } 1
93 forcedelete $file
95 do_test 1.$tn.3 { file exists $file } 0
98 do_test 1.$tn.4 { file exists $file } 1
110 proc open_method {method file arglist} {
114 1 file:test.db?hello=world {hello world}
115 2 file:test.db?hello&world {hello {} world {}}
116 3 file:test.db?hello=1&world=2&vfs=tvfs {hello 1 world 2 vfs tvfs}
117 4 file:test.db?hello=1&world=2&vfs=tvfs2 {}
118 5 file:test.db?%68%65%6C%6C%6F=%77%6F%72%6C%64 {hello world}
119 6 file:testdb%00.db?hello%00extra=world%00ex {hello world}
120 7 file:testdb%00.db?hello%00=world%00 {hello world}
121 8 file:testdb%00.db?=world&xyz=abc {xyz abc}
122 9 file:test.db?%00hello=world&xyz=abc {xyz abc}
123 10 file:test.db?hello=%00world&xyz= {hello {} xyz {}}
124 11 file:test.db?=#ravada {}
125 12 file:test.db?&&&&&&&&hello=world&&&&&&& {hello world}
157 list [catch { sqlite3 db "file:test.db?vfs=nosuchvfs" } msg] $msg
172 set A(0) {1 {unable to open database file}}
174 list [catch {sqlite3 db "file:test.db?mode=$mode"} msg] $msg
186 sqlite3 db "file:test.db?mode=$mode"
193 list [catch {sqlite3 db "file:test.db?mode=$mode" -readonly 1} msg] $msg
215 sqlite3 db "file:test.db?$options"
230 list [catch {sqlite3 db "file:test.db?mode=rc"} msg] $msg
233 list [catch {sqlite3 db "file:test.db?cache=public"} msg] $msg
250 # set, where X is the file-name the method is called on. Calls to the above
258 set ::T1([file tail $filename]) 1
265 set ::T2([file tail $filename]) 1
272 sqlite3 db file:test.db1?vfs=tvfs1
274 ATTACH 'file:test.db2?vfs=tvfs2' AS aux;
301 1 "file://localhost/PWD/test.db" {not an error}
302 2 "file:///PWD/test.db" {not an error}
303 3 "file:/PWD/test.db" {not an error}
304 4 "file://l%6Fcalhost/PWD/test.db" {invalid uri authority: l%6Fcalhost}
305 5 "file://lbcalhost/PWD/test.db" {invalid uri authority: lbcalhost}
306 6 "file://x/PWD/test.db" {invalid uri authority: x}
335 sqlite3 db file:test.db?mode=ro
336 execsql { ATTACH 'file:test.db2?mode=rw' AS aux }