Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Joshua
wendelin.core
Commits
3bf9cf0d
Commit
3bf9cf0d
authored
Jun 27, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
43b113bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
Makefile
Makefile
+4
-4
wcfs/wcfs.go
wcfs/wcfs.go
+1
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+5
-1
No files found.
Makefile
View file @
3bf9cf0d
...
...
@@ -173,14 +173,14 @@ test.vgdrd: $(TESTS:%=%.vgdrdrun)
# run python tests
PYTEST_IGNORE
:=
--ignore
=
3rdparty
--ignore
=
build
--ignore
=
t
test.py
:
bigfile/_bigfile.so
test.py
:
bigfile/_bigfile.so
wcfs/wcfs
$(PYTEST)
$(PYTEST_IGNORE)
# test.py via Valgrind (very slow)
test.py.vghel
:
bigfile/_bigfile.so
test.py.vghel
:
bigfile/_bigfile.so
wcfs/wcfs
$(
call
vgxrun,--tool
=
helgrind,
$(PYTEST)
$(PYTEST_IGNORE)
)
test.py.drd
:
bigfile/_bigfile.so
test.py.drd
:
bigfile/_bigfile.so
wcfs/wcfs
$(
call
vgxrun,--tool
=
drd,
$(PYTEST)
$(PYTEST_IGNORE)
)
...
...
@@ -201,5 +201,5 @@ bench : bench.t bench.py
bench.t
:
$(BENCHV.C:%=%.trun)
bench.py
:
bigfile/_bigfile.so
bench.py
:
bigfile/_bigfile.so
wcfs/wcfs
$(PYBENCH)
$(PYTEST_IGNORE)
wcfs/wcfs.go
View file @
3bf9cf0d
...
...
@@ -274,6 +274,7 @@ func main() {
// add entries to /
mkfile
(
root
,
".wcfs"
,
NewStaticFile
([]
byte
(
zurl
)))
//mkdir(root, "bigfile", ...)
server
.
Serve
()
// XXX Serve returns no eror
}
wcfs/wcfs_test.py
View file @
3bf9cf0d
...
...
@@ -32,6 +32,10 @@ def setup_module():
def
teardown_module
():
testdb
.
teardown
()
# readfile reads file @ path.
def
readfile
(
path
):
with
open
(
path
)
as
f
:
return
f
.
read
()
def
test_join
():
zstor
=
testdb
.
getZODBStorage
()
...
...
@@ -40,7 +44,7 @@ def test_join():
wcfs
.
join
(
zurl
,
autostart
=
False
)
wc
=
wcfs
.
_start
(
zurl
)
assert
isinstance
(
wc
,
wcfs
.
WCFS
)
assert
readfile
(
wc
.
mountpoint
+
"/.wcfs"
)
==
zurl
#wc = wcfs.join(zurl, autostart=False)
...
...
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