diff options
author | Andrew Vagin <avagin@virtuozzo.com> | 2016-02-27 02:06:57 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@virtuozzo.com> | 2016-02-29 11:35:26 +0300 |
commit | f6d9d8d41a725198583743603735befa09078fc7 (patch) | |
tree | e74051392216f0c231c46a5e034bc91c402c55cb /test/others/app-emu.sh | |
parent | eb49e69d990712cedaf90e557e0f707cd748a068 (diff) |
tests: move app-emu in test/others/
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'test/others/app-emu.sh')
-rwxr-xr-x | test/others/app-emu.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/others/app-emu.sh b/test/others/app-emu.sh new file mode 100755 index 000000000..4432b90f9 --- /dev/null +++ b/test/others/app-emu.sh @@ -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 |