[CRIU] [PATCH 3/3] test: add a script for executing all app-emu test cases
Andrey Vagin
avagin at openvz.org
Thu Nov 22 05:14:27 EST 2012
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/app-emu.sh | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100755 test/app-emu.sh
diff --git a/test/app-emu.sh b/test/app-emu.sh
new file mode 100755
index 0000000..4432b90
--- /dev/null
+++ b/test/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
--
1.7.11.7
More information about the CRIU
mailing list