Fuse SUCCESS

This commit is contained in:
Caleb Gardner
2022-12-03 02:45:58 -06:00
parent a015b16293
commit ffbf4ebc64
9 changed files with 320 additions and 11 deletions
+20
View File
@@ -185,3 +185,23 @@ func TestSingleFile(t *testing.T) {
}
t.Fatal("HI")
}
func TestFuse(t *testing.T) {
tmpDir := "testing"
fil, err := preTest(tmpDir)
if err != nil {
t.Fatal(err)
}
os.Remove(filepath.Base(filePath))
rdr, err := squashfs.NewReader(fil)
if err != nil {
t.Fatal(err)
}
con, err := rdr.Mount("testing/fuseTest")
if err != nil {
t.Fatal(err)
}
defer con.Close()
<-con.Ready
t.Fatal("testing")
}