Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
aaec7316
Commit
aaec7316
authored
Oct 04, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs: run posix tests generically
Change-Id: Ie50ade19cf86abbbc6d6d5710f26ca03d7873098
parent
d5e090ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
79 deletions
+15
-79
fs/simple_test.go
fs/simple_test.go
+15
-79
No files found.
fs/simple_test.go
View file @
aaec7316
...
...
@@ -137,20 +137,6 @@ func TestBasic(t *testing.T) {
}
}
func
TestFileBasic
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
FileBasic
(
t
,
tc
.
mntDir
)
}
func
TestFileTruncate
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
TruncateFile
(
t
,
tc
.
mntDir
)
}
func
TestFileFdLeak
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
suppressDebug
:
true
,
...
...
@@ -174,56 +160,6 @@ func TestFileFdLeak(t *testing.T) {
}
}
func
TestMkdir
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
MkdirRmdir
(
t
,
tc
.
mntDir
)
}
func
testRenameOverwrite
(
t
*
testing
.
T
,
destExists
bool
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
RenameOverwrite
(
t
,
tc
.
mntDir
,
destExists
)
}
func
TestRenameDestExist
(
t
*
testing
.
T
)
{
testRenameOverwrite
(
t
,
true
)
}
func
TestRenameDestNoExist
(
t
*
testing
.
T
)
{
testRenameOverwrite
(
t
,
false
)
}
func
TestNlinkZero
(
t
*
testing
.
T
)
{
// xfstest generic/035.
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
NlinkZero
(
t
,
tc
.
mntDir
)
}
func
TestParallelFileOpen
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
suppressDebug
:
true
,
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
ParallelFileOpen
(
t
,
tc
.
mntDir
)
}
func
TestSymlink
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
SymlinkReadlink
(
t
,
tc
.
mntDir
)
}
func
TestLink
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
Link
(
t
,
tc
.
mntDir
)
}
func
TestNotifyEntry
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
...
...
@@ -257,17 +193,6 @@ func TestNotifyEntry(t *testing.T) {
}
}
func
TestReadDir
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
suppressDebug
:
true
,
attrCache
:
true
,
entryCache
:
true
,
})
defer
tc
.
Clean
()
posixtest
.
ReadDir
(
t
,
tc
.
mntDir
)
}
func
TestReadDirStress
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
suppressDebug
:
true
,
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
...
...
@@ -407,11 +332,22 @@ func TestMknod(t *testing.T) {
}
}
func
TestTruncate
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{})
func
TestPosix
(
t
*
testing
.
T
)
{
noisy
:=
map
[
string
]
bool
{
"ParallelFileOpen"
:
true
,
"ReadDir"
:
true
,
}
for
nm
,
fn
:=
range
posixtest
.
All
{
t
.
Run
(
nm
,
func
(
t
*
testing
.
T
)
{
tc
:=
newTestCase
(
t
,
&
testOptions
{
suppressDebug
:
noisy
[
nm
],
attrCache
:
true
,
entryCache
:
true
})
defer
tc
.
Clean
()
posixtest
.
TruncateNoFile
(
t
,
tc
.
mntDir
)
fn
(
t
,
tc
.
mntDir
)
})
}
}
func
init
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment