aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-extended/persistence-administrator
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2016-08-25 18:41:49 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2016-08-26 18:18:29 +0900
commit4248ecf683a27cbb75fa584e63cd786f18ad0013 (patch)
treeeac8d0e3e4fd0d1bd1a392841813622529b7f3ea /meta-ivi-test/recipes-extended/persistence-administrator
parentd0a6b5cc769394e9184a53c724fa2eba11965e65 (diff)
downloadmeta-ivi-4248ecf683a27cbb75fa584e63cd786f18ad0013.tar.gz
meta-ivi-4248ecf683a27cbb75fa584e63cd786f18ad0013.tar.bz2
meta-ivi-4248ecf683a27cbb75fa584e63cd786f18ad0013.zip
test-fw: 2nd updateM-0.2
- reduce messages when test is run in batch mode - add node-health-monitor, node-startup-controller, vsomeip Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Diffstat (limited to 'meta-ivi-test/recipes-extended/persistence-administrator')
-rw-r--r--meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc29
1 files changed, 23 insertions, 6 deletions
diff --git a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
index 0e3a65c..d9ff540 100644
--- a/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
+++ b/meta-ivi-test/recipes-extended/persistence-administrator/persistence-administrator/persistence-administrator_t.inc
@@ -7,21 +7,38 @@ get_title() {
echo "persistence-administrator"
}
+_run_dir=/opt/tests/persistence-administrator
+_run_1() {
+ persadmin_tool install /Data/Data.tar.gz > /tmp/t
+ ${_run_dir}/pers_admin_test_framework
+}
+
run_1() {
- echo "error!"
- echo "segfault at 7fa2ac0b6010 ip 000000364d88e130 sp 00007fa2ae0f2aa8 error 4 in libc-2.23.so[364d800000+197000]"
- exit -1
+ echo "[ FAILED ] segfault at 7fa2ac0b6010 ip 000000364d88e130 sp 00007fa2ae0f2aa8 error 4 in libc-2.23.so[364d800000+197000]"
+ return 0
if [ ! -d /tmp/PAS ]; then
rm -f /tmp/PAS
mkdir -p /tmp/PAS
fi
- cp /opt/tests/persistence-administrator/resource*.tar.gz /tmp/PAS/
+ cp ${_run_dir}/resource*.tar.gz /tmp/PAS/
systemctl restart dlt-dbus
systemctl restart dlt-example-user
systemctl restart pas-daemon
systemctl restart node-startup-controller
- persadmin_tool install /Data/Data.tar.gz
- /opt/tests/persistence-administrator/pers_admin_test_framework
+ if [ "x${1}" != "x" ]; then
+ _run_1 > /tmp/t
+ _c1=`cat /tmp/t | grep :P: | wc -l`
+ _c2=`cat /tmp/t | grep :F: | wc -l`
+ if [ "x${_c1}" = "x0" ]; then
+ echo "[ FAILED ] ${_c2} tests."
+ elif [ "x${_c2}" = "x0" ]; then
+ echo "[ PASSED ] ${_c1} tests."
+ else
+ echo " ${_c1} PASSED, ${_c2} FAILED"
+ fi
+ else
+ _run_1
+ fi
}