Commit a77d0034 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

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

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f8d6dad7
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment