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:
parent
8895729906
commit
682b9d672c
27
test/app-emu/screen/run.sh
Normal file
27
test/app-emu/screen/run.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user