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
fb70a9f3
Commit
fb70a9f3
authored
Apr 06, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
posixtest: export list of tests
parent
e8bb4a00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
posixtest/test.go
posixtest/test.go
+23
-0
No files found.
posixtest/test.go
View file @
fb70a9f3
...
...
@@ -19,6 +19,21 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
var
All
=
map
[
string
]
func
(
*
testing
.
T
,
string
){
"SymlinkReadlink"
:
SymlinkReadlink
,
"FileBasic"
:
FileBasic
,
"TruncateFile"
:
TruncateFile
,
"TruncateNoFile"
:
TruncateNoFile
,
"FdLeak"
:
FdLeak
,
"MkdirRmdir"
:
MkdirRmdir
,
"NlinkZero"
:
NlinkZero
,
"ParallelFileOpen"
:
ParallelFileOpen
,
"Link"
:
Link
,
"RenameOverwriteDestNoExist"
:
RenameOverwriteDestNoExist
,
"RenameOverwriteDestExist"
:
RenameOverwriteDestExist
,
"ReadDir"
:
ReadDir
,
}
// SymlinkReadlink tests basic symlink functionality
func
SymlinkReadlink
(
t
*
testing
.
T
,
mnt
string
)
{
err
:=
os
.
Symlink
(
"/foobar"
,
mnt
+
"/link"
)
...
...
@@ -252,6 +267,14 @@ func Link(t *testing.T, mnt string) {
}
}
func
RenameOverwriteDestNoExist
(
t
*
testing
.
T
,
mnt
string
)
{
RenameOverwrite
(
t
,
mnt
,
false
)
}
func
RenameOverwriteDestExist
(
t
*
testing
.
T
,
mnt
string
)
{
RenameOverwrite
(
t
,
mnt
,
true
)
}
func
RenameOverwrite
(
t
*
testing
.
T
,
mnt
string
,
destExists
bool
)
{
if
err
:=
os
.
Mkdir
(
mnt
+
"/dir"
,
0755
);
err
!=
nil
{
t
.
Fatalf
(
"Mkdir: %v"
,
err
)
...
...
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