Commit 3bf9cf0d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 43b113bf
...@@ -173,14 +173,14 @@ test.vgdrd: $(TESTS:%=%.vgdrdrun) ...@@ -173,14 +173,14 @@ test.vgdrd: $(TESTS:%=%.vgdrdrun)
# run python tests # run python tests
PYTEST_IGNORE := --ignore=3rdparty --ignore=build --ignore=t PYTEST_IGNORE := --ignore=3rdparty --ignore=build --ignore=t
test.py : bigfile/_bigfile.so test.py : bigfile/_bigfile.so wcfs/wcfs
$(PYTEST) $(PYTEST_IGNORE) $(PYTEST) $(PYTEST_IGNORE)
# test.py via Valgrind (very slow) # 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)) $(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)) $(call vgxrun,--tool=drd, $(PYTEST) $(PYTEST_IGNORE))
...@@ -201,5 +201,5 @@ bench : bench.t bench.py ...@@ -201,5 +201,5 @@ bench : bench.t bench.py
bench.t : $(BENCHV.C:%=%.trun) bench.t : $(BENCHV.C:%=%.trun)
bench.py: bigfile/_bigfile.so bench.py: bigfile/_bigfile.so wcfs/wcfs
$(PYBENCH) $(PYTEST_IGNORE) $(PYBENCH) $(PYTEST_IGNORE)
...@@ -274,6 +274,7 @@ func main() { ...@@ -274,6 +274,7 @@ func main() {
// add entries to / // add entries to /
mkfile(root, ".wcfs", NewStaticFile([]byte(zurl))) mkfile(root, ".wcfs", NewStaticFile([]byte(zurl)))
//mkdir(root, "bigfile", ...)
server.Serve() // XXX Serve returns no eror server.Serve() // XXX Serve returns no eror
} }
...@@ -32,6 +32,10 @@ def setup_module(): ...@@ -32,6 +32,10 @@ def setup_module():
def teardown_module(): def teardown_module():
testdb.teardown() testdb.teardown()
# readfile reads file @ path.
def readfile(path):
with open(path) as f:
return f.read()
def test_join(): def test_join():
zstor = testdb.getZODBStorage() zstor = testdb.getZODBStorage()
...@@ -40,7 +44,7 @@ def test_join(): ...@@ -40,7 +44,7 @@ def test_join():
wcfs.join(zurl, autostart=False) wcfs.join(zurl, autostart=False)
wc = wcfs._start(zurl) wc = wcfs._start(zurl)
assert isinstance(wc, wcfs.WCFS) assert readfile(wc.mountpoint + "/.wcfs") == zurl
#wc = wcfs.join(zurl, autostart=False) #wc = wcfs.join(zurl, autostart=False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment