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

Tikhomirov Pavel snorcht at gmail.com
Fri Oct 11 12:57:35 PDT 2013


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



More information about the CRIU mailing list