[CRIU] [PATCH 5/5] deduplication: test

Pavel Emelyanov xemul at parallels.com
Tue Oct 15 00:22:02 PDT 2013


On 10/13/2013 04:22 PM, Tikhomirov Pavel wrote:
> in mem-snap.sh use dedup on dump/3 before restoring
> 
> Signed-off-by: Tikhomirov Pavel <snorcht at gmail.com>
> ---
>  test/mem-snap/run-snap.sh |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/test/mem-snap/run-snap.sh b/test/mem-snap/run-snap.sh
> index d2a6207..704ef82 100755
> --- a/test/mem-snap/run-snap.sh
> +++ b/test/mem-snap/run-snap.sh
> @@ -64,6 +64,11 @@ for SNAP in $(seq 1 $NRSNAP); do
>  	fi
>  done
>  
> +echo "Dedup test"
> +ls -has "${IMGDIR}/$NRSNAP"/parent/pages-*.img
> +${CRIU} dedup -D "${IMGDIR}/$NRSNAP/"
> +ls -has "${IMGDIR}/$NRSNAP"/parent/pages-*.img

It's not a test. Test should _check_ something and _report_ whether the check
passed or not.

> +
>  echo "Restoring"
>  ${CRIU} restore -D "${IMGDIR}/$NRSNAP/" -o restore.log -d -v4 || fail "Fail to restore server"
>  
> 




More information about the CRIU mailing list