2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

app-test: check screen application

Add test for screen c/r.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2012-09-12 20:03:01 +04:00 committed by Pavel Emelyanov
parent 8895729906
commit 682b9d672c

View File

@ -0,0 +1,27 @@
#!/bin/bash
crtools="../../../crtools"
set -x
echo "Creating reference objects"
screen -d -m -S crtools-zdtm
pid=$(screen -list | grep '\<crtools-zdtm\>.*Detached' | sed 's/\s*\([0-9]*\).*/\1/');
echo PID=$pid
mkdir dump
${crtools} dump -D dump -o dump.log -v 4 -t ${pid} || {
echo "Dump failed"
exit 1
}
echo "Dumped, restoring and waiting for completion"
${crtools} restore -d -D dump -o restore.log -v 4 -t ${pid} || {
echo "Restore failed"
exit 1
}
echo PASS