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
16dccd5c
Commit
16dccd5c
authored
Dec 08, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jenkins: Fix CRIT test to skip non-criu images and provide cumulative output
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
2c747325
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
crit.sh
test/jenkins/crit.sh
+25
-8
No files found.
test/jenkins/crit.sh
View file @
16dccd5c
...
...
@@ -4,25 +4,42 @@ source `dirname $0`/criu-lib.sh
prep
./test/zdtm.py run
--all
-f
best
-x
maps04
-x
cgroup02
--norst
--keep
always
||
fail
FAIL_LIST
=
""
images_list
=
$(
find
"test/dump/"
-name
'*.img'
)
crit
=
"./crit"
function
note
()
{
FAIL_LIST
=
"
${
FAIL_LIST
}
\n
$*
"
}
for
x
in
$images_list
do
[[
"
$(
basename
$x
)
"
==
pages
*
]]
&&
continue
[[
"
$(
basename
$x
)
"
==
route
*
]]
&&
continue
[[
"
$(
basename
$x
)
"
==
ifaddr
*
]]
&&
continue
[[
"
$(
basename
$x
)
"
==
iptables
*
]]
&&
continue
[[
"
$(
basename
$x
)
"
==
ip6tables
*
]]
&&
continue
[[
"
$(
basename
$x
)
"
==
*
tar.gz
*
]]
&&
continue
echo
"Check
$x
"
$crit
decode
-o
"
$x
"".json"
<
$x
||
fail
$crit
encode
-i
"
$x
"".json"
>
"
$
x
"".json.img"
||
fail
cmp
"
$x
"
"
${
x
}
.json.img"
||
_exit
$x
$crit
decode
-o
"
$x
"".json"
<
"
$x
"
||
note
"dec
$x
"
$crit
encode
-i
"
$x
"".json"
>
"
$
{
x
}
.json.img"
||
note
"enc
$x
"
cmp
"
$x
"
"
${
x
}
.json.img"
||
note
"cmp
$x
"
rm
-f
"
${
x
}
.json.img"
$crit
decode
-o
"
$x
"".json"
--pretty
<
$x
||
fail
$crit
encode
-i
"
$x
"".json"
>
"
$
x
"".json.img"
||
fail
cmp
"
$x
"
"
${
x
}
.json.img"
||
fail
$crit
decode
-o
"
$x
"".json"
--pretty
<
"
$x
"
||
note
"show
$x
"
$crit
encode
-i
"
$x
"".json"
>
"
$
{
x
}
.json.img"
||
note
"enc2
$x
"
cmp
"
$x
"
"
${
x
}
.json.img"
||
note
"cmp2
$x
"
rm
-f
"
${
x
}
.json.img"
done
echo
"PASS"
exit
0
if
[
-z
"
$FAIL_LIST
"
]
;
then
echo
"PASS"
exit
0
fi
echo
-e
"
$FAIL_LIST
"
echo
"FAIL"
exit
1
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