Commit Diff


commit - ce3d3a8f2b2a0e7f03a235a68f94b01620df6d9f
commit + d75aead30ae80b74a6342b52a2f251c5f253eba0
blob - 7a6722ef136ce35674c59ee8c3a191f83551dedb
blob + a721eafb3fdc33f6e8139e95953de7457354ef17
--- regress/misc-suite.9ps
+++ regress/misc-suite.9ps
@@ -10,37 +10,3 @@ testing "fails when sending a R-message" dir "./root" 
 	send(Rversion, notag, msize, np2000)
 	should-fail recv() : "the connection should have been closed"
 }
-
-testing "walk to a directory" dir "./root" {
-	mount(0, "/")
-	walk(0, 1, "dir", "subdir")
-
-	m = recv()
-	assert (
-		m.type == Rwalk
-		m.nwqid == 2
-		m.wqid.0.type == QTDIR
-		m.wqid.1.type == QTDIR
-	)
-}
-
-testing "walk to a file" dir "./root" {
-	mount(0, "/")
-	walk(0, 1, "dir", "subdir", "file")
-
-	m = recv()
-	print("nwqid =", m.nwqid)
-	assert (
-		m.type == Rwalk
-		m.nwqid == 3
-		m.wqid.0.type == QTDIR
-		m.wqid.1.type == QTDIR
-		m.wqid.2.type == QTFILE
-	)
-}
-
-testing "walk with invalid fid" dir "./root" {
-	mount(0, "/")
-	walk(1, 2)
-	expect-error()
-}
blob - /dev/null
blob + 90e17014e75f42185c7a45bd148ea76056e802b2 (mode 644)
--- /dev/null
+++ regress/walk-suite.9ps
@@ -0,0 +1,35 @@
+include "lib.9ps"
+
+testing "walk to a directory" dir "./root" {
+	mount(0, "/")
+	walk(0, 1, "dir", "subdir")
+
+	m = recv()
+	assert (
+		m.type == Rwalk
+		m.nwqid == 2
+		m.wqid.0.type == QTDIR
+		m.wqid.1.type == QTDIR
+	)
+}
+
+testing "walk to a file" dir "./root" {
+	mount(0, "/")
+	walk(0, 1, "dir", "subdir", "file")
+
+	m = recv()
+	print("nwqid =", m.nwqid)
+	assert (
+		m.type == Rwalk
+		m.nwqid == 3
+		m.wqid.0.type == QTDIR
+		m.wqid.1.type == QTDIR
+		m.wqid.2.type == QTFILE
+	)
+}
+
+testing "walk with invalid fid" dir "./root" {
+	mount(0, "/")
+	walk(1, 2)
+	expect-error()
+}