Commit 5b409637 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4a4c1998
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
if test -z "$qrun_loglevel"; then if test -z "$qrun_loglevel"; then
go build # rebuild wcfs TODO also test with -race go build # rebuild wcfs TODO also test with -race
linux=${LINUX:-$HOME/src/linux/linux/arch/`uname -m`/boot/bzImage} linux=${LINUX:-$HOME/src/linux/linux/arch/`uname -m`/boot/bzImage}
exec ../t/qemu-runlinux "$linux" $0 exec ../t/qemu-runlinux "$linux" $0 "$@"
fi fi
# executed under qemu-runlinux # executed under qemu-runlinux
...@@ -14,4 +14,4 @@ py.test \ ...@@ -14,4 +14,4 @@ py.test \
`# https://stackoverflow.com/a/47893653/9456786` \ `# https://stackoverflow.com/a/47893653/9456786` \
-p no:cacheprovider \ -p no:cacheprovider \
\ \
-vsx -k test_wcfs "$@"
...@@ -1362,7 +1362,7 @@ def test_wcfs_watch_robust(): ...@@ -1362,7 +1362,7 @@ def test_wcfs_watch_robust():
" head/at (@%s); …" % (h(zf._p_oid), h(atpast), h(t.head))) " head/at (@%s); …" % (h(zf._p_oid), h(atpast), h(t.head)))
wl.close() wl.close()
# verify that watch file @at when it did not existed -> error # verify that `watch file @at` -> error, for @at when file did not existed.
@xfail # check that file exists @at @xfail # check that file exists @at
@func @func
def test_wcfs_watch_before_create(): def test_wcfs_watch_before_create():
...@@ -1386,7 +1386,7 @@ def test_wcfs_watch_before_create(): ...@@ -1386,7 +1386,7 @@ def test_wcfs_watch_before_create():
# verify that watch @at_i -> @at_j ↓ is rejected # verify that watch @at_i -> @at_j ↓ is rejected
# XXX we might want to allow going back in history. # XXX we might want to allow going back in history later.
@func @func
def test_wcfs_watch_going_back(): def test_wcfs_watch_going_back():
t = tDB(); zf = t.zfile t = tDB(); zf = t.zfile
...@@ -1452,7 +1452,7 @@ def test_wcfs_pintimeout_kill(): ...@@ -1452,7 +1452,7 @@ def test_wcfs_pintimeout_kill():
wg.wait() wg.wait()
# watch with @at > head - must wait for head to become >= at # watch with @at > head - must wait for head to become >= at.
# XXX too far ahead - reject? # XXX too far ahead - reject?
@func @func
def test_wcfs_watch_setup_ahead(): def test_wcfs_watch_setup_ahead():
...@@ -1461,7 +1461,7 @@ def test_wcfs_watch_setup_ahead(): ...@@ -1461,7 +1461,7 @@ def test_wcfs_watch_setup_ahead():
f = t.open(zf) f = t.open(zf)
at1 = t.commit(zf, {2:'c1'}) at1 = t.commit(zf, {2:'c1'})
f.assertData(['','x','c1']) # NOTE #1 not accessed f.assertData(['','x','c1']) # NOTE #1 not accessed for watch @at1 to receive no pins
wg = sync.WorkGroup(timeout()) wg = sync.WorkGroup(timeout())
dt = 100*time.millisecond dt = 100*time.millisecond
...@@ -1680,7 +1680,8 @@ def test_wcfs_watch_vs_access(): ...@@ -1680,7 +1680,8 @@ def test_wcfs_watch_vs_access():
# verify that on pin message, while under pagefault, we can mmap @at/f[blk] # verify that on pin message, while under pagefault, we can mmap @at/f[blk]
# into where head/f[blk] was mmaped. # into where head/f[blk] was mmaped; the result of original pagefaulting read
# must be from newly insterted mapping.
@func @func
def test_wcfs_remmap_on_pin(): def test_wcfs_remmap_on_pin():
t = tDB(); zf = t.zfile t = tDB(); zf = t.zfile
...@@ -1705,8 +1706,7 @@ def test_wcfs_remmap_on_pin(): ...@@ -1705,8 +1706,7 @@ def test_wcfs_remmap_on_pin():
f._assertBlk(2, 'hello', {wl: {2:at1}}, pinfunc=_) # NOTE not world f._assertBlk(2, 'hello', {wl: {2:at1}}, pinfunc=_) # NOTE not world
# verify that pin message is not sent for the same blk@at the second time, if # verify that pin message is not sent for the same blk@at twice.
# it was already sent once.
@func @func
def test_wcfs_no_pin_twice(): def test_wcfs_no_pin_twice():
t = tDB(); zf = t.zfile t = tDB(); zf = t.zfile
...@@ -1781,7 +1781,7 @@ def test_wcfs_watch_2files(): ...@@ -1781,7 +1781,7 @@ def test_wcfs_watch_2files():
# XXX new watch request while previous watch request is in progress (over the same /head/watch handle) # XXX new watch request while previous watch request is in progress (over the same /head/watch handle)
......
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