Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
12715226
Commit
12715226
authored
Nov 12, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jenkins: Make criu-snap test use zdtm.py
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
cc378b90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
criu-snap.sh
test/jenkins/criu-snap.sh
+6
-7
zdtm.py
test/zdtm.py
+6
-2
No files found.
test/jenkins/criu-snap.sh
View file @
12715226
# Check snapshots
source
`
dirname
$0
`
/criu-lib.sh
&&
prep
&&
mkdir
-p
test
/dump
&&
mount
-t
tmpfs dump
test
/dump
&&
make
-C
test
-j
4
ZDTM_ARGS
=
"-s -i 3 -C -x '
\(
unlink
\|
socket-tcp
\)
'"
zdtm
&&
true
||
fail
set
-e
source
`
dirname
$0
`
/criu-lib.sh
prep
mount_tmpfs_to_dump
./test/zdtm.py run
--all
--report
report
--parallel
4
--pre
3
--snaps
-x
'maps04'
||
fail
./test/zdtm.py run
--all
--report
report
--parallel
4
--pre
3
--snaps
--page-server
-x
'maps04'
||
fail
test/zdtm.py
View file @
12715226
...
...
@@ -584,7 +584,10 @@ def cr(cr_api, test, opts):
for
i
in
iters
[
0
]:
pres
=
iter_parm
(
opts
[
'pre'
],
0
)
for
p
in
pres
[
0
]:
cr_api
.
dump
(
"pre-dump"
)
if
opts
[
'snaps'
]:
cr_api
.
dump
(
"dump"
,
opts
=
[
"--leave-running"
])
else
:
cr_api
.
dump
(
"pre-dump"
)
time
.
sleep
(
pres
[
1
])
if
opts
[
'norst'
]:
...
...
@@ -709,7 +712,7 @@ class launcher:
self
.
__nr
+=
1
self
.
__show_progress
()
nd
=
(
'nocr'
,
'norst'
,
'pre'
,
'iters'
,
'page_server'
,
'sibling'
,
'fault'
,
'keep_img'
,
'report'
)
nd
=
(
'nocr'
,
'norst'
,
'pre'
,
'iters'
,
'page_server'
,
'sibling'
,
'fault'
,
'keep_img'
,
'report'
,
'snaps'
)
arg
=
repr
((
name
,
desc
,
flavor
,
{
d
:
self
.
__opts
[
d
]
for
d
in
nd
}))
log
=
name
.
replace
(
'/'
,
'_'
)
+
".log"
sub
=
subprocess
.
Popen
([
"./zdtm_ct"
,
"zdtm.py"
],
\
...
...
@@ -913,6 +916,7 @@ rp.add_argument("-x", "--exclude", help = "Exclude tests from --all run", action
rp
.
add_argument
(
"--sibling"
,
help
=
"Restore tests as siblings"
,
action
=
'store_true'
)
rp
.
add_argument
(
"--pre"
,
help
=
"Do some pre-dumps before dump (n[:pause])"
)
rp
.
add_argument
(
"--snaps"
,
help
=
"Instead of pre-dumps do full dumps"
,
action
=
'store_true'
)
rp
.
add_argument
(
"--nocr"
,
help
=
"Do not CR anything, just check test works"
,
action
=
'store_true'
)
rp
.
add_argument
(
"--norst"
,
help
=
"Don't restore tasks, leave them running after dump"
,
action
=
'store_true'
)
rp
.
add_argument
(
"--iters"
,
help
=
"Do CR cycle several times before check (n[:pause])"
)
...
...
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