Commit cb9b6de3 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: add ability to execute restore with the restore_sibling option

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b840ce4a
# Make 3 iteration of dump/restore for each test
source `dirname $0`/criu-lib.sh &&
prep &&
make -C test -j 4 ZDTM_ARGS="-C --restore-sibling" zdtm &&
true || fail
......@@ -349,6 +349,7 @@ START_ONLY=0
BATCH_TEST=0
SPECIFIED_NAME_USED=0
START_FROM="."
RESTORE_SIBLING=""
zdtm_sep()
{ (
......@@ -639,6 +640,7 @@ run_test()
local gen_args=$*
local tname=`basename $test`
local tdir=`dirname $test`
local rst_args=
DUMP_PATH=""
if [ $COMPILE_ONLY -eq 1 ]; then
......@@ -683,6 +685,10 @@ EOF
ps_args="--auto-dedup"
fi
if [ -n "$RESTORE_SIBLING" ]; then
rst_args="$rst_args --restore-sibling"
fi
if echo $tname | fgrep -q 'irmap'; then
gen_args="$gen_args --force-irmap"
fi
......@@ -790,7 +796,7 @@ EOF
rm -f $TPID || true
echo Restore
setsid $CRIU restore -D $ddump -o restore.log -v4 -d $gen_args || return 2
setsid $CRIU restore -D $ddump -o restore.log -v4 -d $gen_args $rst_args || return 2
cat $ddump/restore.log* | grep Error
[ -n "$PIDNS" ] && PID=`cat $TPID`
......@@ -1061,6 +1067,10 @@ while :; do
}
shift
;;
--restore-sibling)
RESTORE_SIBLING=1
shift
;;
-*)
echo "Unrecognized option $1, aborting!" 1>&2
usage
......
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