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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
5b409637
Commit
5b409637
authored
Jun 27, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4a4c1998
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
wcfs/test.sh
wcfs/test.sh
+2
-2
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+8
-8
No files found.
wcfs/test.sh
View file @
5b409637
...
...
@@ -4,7 +4,7 @@
if
test
-z
"
$qrun_loglevel
"
;
then
go build
# rebuild wcfs TODO also test with -race
linux
=
${
LINUX
:-
$HOME
/src/linux/linux/arch/
`
uname
-m
`
/boot/bzImage
}
exec
../t/qemu-runlinux
"
$linux
"
$0
exec
../t/qemu-runlinux
"
$linux
"
$0
"
$@
"
fi
# executed under qemu-runlinux
...
...
@@ -14,4 +14,4 @@ py.test \
`
# https://stackoverflow.com/a/47893653/9456786` \
-p
no:cacheprovider
\
\
-vsx
-k
test_wcfs
"
$@
"
wcfs/wcfs_test.py
View file @
5b409637
...
...
@@ -1362,7 +1362,7 @@ def test_wcfs_watch_robust():
" head/at (@%s); …"
%
(
h
(
zf
.
_p_oid
),
h
(
atpast
),
h
(
t
.
head
)))
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
@
func
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
# XXX we might want to allow going back in history.
# XXX we might want to allow going back in history
later
.
@
func
def
test_wcfs_watch_going_back
():
t
=
tDB
();
zf
=
t
.
zfile
...
...
@@ -1452,7 +1452,7 @@ def test_wcfs_pintimeout_kill():
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?
@
func
def
test_wcfs_watch_setup_ahead
():
...
...
@@ -1461,7 +1461,7 @@ def test_wcfs_watch_setup_ahead():
f
=
t
.
open
(
zf
)
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
())
dt
=
100
*
time
.
millisecond
...
...
@@ -1680,7 +1680,8 @@ def test_wcfs_watch_vs_access():
# 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
def
test_wcfs_remmap_on_pin
():
t
=
tDB
();
zf
=
t
.
zfile
...
...
@@ -1705,8 +1706,7 @@ def test_wcfs_remmap_on_pin():
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
# it was already sent once.
# verify that pin message is not sent for the same blk@at twice.
@
func
def
test_wcfs_no_pin_twice
():
t
=
tDB
();
zf
=
t
.
zfile
...
...
@@ -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)
...
...
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