2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

test: add a script for executing all app-emu test cases

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2012-11-22 19:08:29 +04:00
committed by Pavel Emelyanov
parent f8d6dad7f8
commit a77d00347a

29
test/app-emu.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/sh
TEST_LIST="
vnc
java/HelloWorld
screen
tarbz
make
"
[ -n "$1" ] && TEST_LIST="$1"
BASE_DIR=`pwd`/`dirname $0`
for t in $TEST_LIST; do
dir=$BASE_DIR/app-emu/$t
log=$dir/run.log
(
cd $dir
bash ./run.sh
) 2>&1 | tee $log
grep PASS $log || {
echo "Test: $t"
echo "====================== ERROR ======================"
echo "Run log : $log"
echo "$t "
exit 1
}
done