3 # TODO: add a test that tries to do a walk after opening a fid for i/o.
5 testing "walk to a directory" dir "./root" {
7 walk(0, 1, "dir", "subdir")
13 m.wqid.0.type == QTDIR
14 m.wqid.1.type == QTDIR
18 testing "walk to a file" dir "./root" {
20 walk(0, 1, "dir", "subdir", "file")
26 m.wqid.0.type == QTDIR
27 m.wqid.1.type == QTDIR
28 m.wqid.2.type == QTFILE
32 testing "can't walk from a file" dir "./root" {
35 walk(0, 1, "dir", "a-file")
38 walk(1, 2, "subdir", "file")
42 testing "walk with invalid fid" dir "./root" {
48 testing "walk with empty string" dir "./root" {
54 testing "walk to a non-existant file" dir "./root" {
56 walk(0, 1, "non-exists")
60 testing "walk with an invalid component" dir "./root" {
62 walk(0, 1, "/non-exists")
66 testing "zero-path walk don't reply with a qid" dir "./root" {