--- /dev/null
+[
+ {
+ "name": "bluetoothd",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check bluetoothd daemon launching",
+ "description": "Check if the bluetoothd daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh bluetoothd",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2013-12-11 16:12:02 GMT",
+ "mtime": "2014-05-13 16:02:08 GMT"
+ },
+ {
+ "name": "connmand",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check connmand daemon launching",
+ "description": "Check if the connmand daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh connmand",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2013-12-11 16:12:33 GMT",
+ "mtime": "2014-05-13 16:02:20 GMT"
+ },
+ {
+ "name": "dbus-daemon",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check dbus-daemon launching",
+ "description": "Check if the dbus-daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh dbus-daemon",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2013-12-11 16:12:54 GMT",
+ "mtime": "2014-05-13 16:02:29 GMT"
+ },
+ {
+ "name": "systemd-udevd",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check systemd-udevd daemon launching",
+ "description": "Check if the systemd-udevd daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh systemd-udevd",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2013-12-11 16:17:02 GMT",
+ "mtime": "2014-05-13 16:02:46 GMT"
+ },
+ {
+ "name": "wpa_supplicant",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check wpa_supplicant daemon launching",
+ "description": "Check if the wpa_supplicant daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh wpa_supplicant",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2013-12-11 16:17:26 GMT",
+ "mtime": "2014-05-13 16:02:55 GMT"
+ },
+ {
+ "name": "weston",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check weston-launch daemon launching",
+ "description": "Check if the weston daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh weston",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2013-12-12 15:53:34 GMT",
+ "mtime": "2014-05-13 16:03:03 GMT"
+ },
+ {
+ "name": "ofonod",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "check ofonod daemon launching",
+ "description": "Check if ofonod daemon is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh ofonod",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2014-02-05 12:51:40 GMT",
+ "mtime": "2014-05-13 16:03:18 GMT"
+ }
+]
--- /dev/null
+[
+ {
+ "name": "weston-desktop-shell",
+ "exec_type": "auto",
+ "priority": "0",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "Check if weston desktop is shown",
+ "description": "Check if the weston-desktop-shell process is launched",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "checkprocess.sh weston-desktop-shell",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2014-05-13 16:10:30 GMT",
+ "mtime": "2014-05-13 16:21:00 GMT"
+ }
+]
\ No newline at end of file
--- /dev/null
+[
+ {
+ "name": "audio-ogg",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "Check if an audio ogg file can be played",
+ "description": "Check if an audio ogg file can be played using gst-play",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "init.sh cigale.ogg",
+ "exec": "runme.sh gst.sh cigale.ogg",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "post.sh cigale.ogg",
+ "service": {},
+ "author": "qadmin",
+ "ctime": "2014-05-13 16:32:34 GMT",
+ "mtime": "2014-05-22 08:31:42 GMT"
+ },
+ {
+ "name": "video-ogg",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "Check if an video ogg file can be played",
+ "description": "Check if an video ogg file can be played using gst-play",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "init.sh short-big_buck_bunny_1080p.ogg",
+ "exec": "runme.sh gst.sh short-big_buck_bunny_1080p.ogg",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "post.sh short-big_buck_bunny_1080p.ogg",
+ "service": {},
+ "author": "qadmin",
+ "ctime": "2014-05-13 16:36:37 GMT",
+ "mtime": "2014-05-22 08:27:31 GMT"
+ }
+]
\ No newline at end of file
--- /dev/null
+#!/bin/bash -x
+
+# Copyright (c) 2013 Intel Corporation. All rights reserved.
+# Use of this source code is governed by a LGPL v2.1 license that can be
+# found in the LICENSE file in the db directory.
+# Author : Ewan Le Bideau-Canevet
+
+
+FILE=$1
+UNWANTED="No decoder available"
+COMMAND="gst-play-1.0 /$HOME/$FILE"
+
+tmplog=$(mktemp --tmpdir=/tmp multimedia-XXXXXX.log)
+trap "rm -f $tmplog" STOP INT QUIT EXIT
+echo $COMMAND
+$COMMAND &>$tmplog &
+pid=$!
+(sleep 5; [ -e /proc/$pid ] && kill $pid;) &
+while [ -e /proc/$pid ]; do
+ sleep 1
+ if grep "$UNWANTED" $tmplog ; then
+ kill $pid
+ sleep 1
+ [ -e /proc/$pid ] && kill -9 $pid
+ exit 1
+ fi
+done
+exit 0
--- /dev/null
+#!/bin/bash
+
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Authors : Ewan le Bideau Canevet <ewan.lebideau-canevet@open.eurogiciel.org>
+
+FILE=$1
+cp $FILE ~guest
--- /dev/null
+#!/bin/bash
+
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Authors : Ewan le Bideau Canevet <ewan.lebideau-canevet@open.eurogiciel.org>
+
+FILE=$1
+rm -rf ~guest/$FILE
--- /dev/null
+[
+ {
+ "name": "smack",
+ "exec_type": "auto",
+ "priority": "1",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "Check if smack is correctly enabled",
+ "description": "Check if security has been correctly enabled on the image",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "mount |grep smackfs",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "qadmin",
+ "ctime": "2014-05-22 08:07:39 GMT",
+ "mtime": "2014-05-22 08:14:56 GMT"
+ },
+ {
+ "name": "zypper-install",
+ "exec_type": "auto",
+ "priority": "0",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "Checkk that zypper can install a package",
+ "description": "Check that a package can be install with zypper ",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "zypper -n in zypper-log",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2014-05-13 16:36:37 GMT",
+ "mtime": "2014-05-13 17:09:34 GMT"
+ },
+ {
+ "name": "zypper-uninstall",
+ "exec_type": "auto",
+ "priority": "0",
+ "status": "designed",
+ "type": "functional_positive",
+ "subtype": "",
+ "objective": "Checkk that zypper can uninstall a package",
+ "description": "Check that a package can be uninstall with zypper",
+ "pre_condition": "",
+ "steps": [],
+ "post_condition": "",
+ "notes": "",
+ "bugs": "",
+ "exec_pre": "",
+ "exec": "zypper -n rm zypper-log",
+ "exec_expected_retcode": "0",
+ "exec_kill_timeout": "120",
+ "exec_post": "",
+ "service": {},
+ "author": "zingile",
+ "ctime": "2014-05-13 17:10:00 GMT",
+ "mtime": "2014-05-13 17:11:26 GMT"
+ }
+]
\ No newline at end of file
--- /dev/null
+#!/bin/bash
+
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# Authors: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
+
+PROCESS_NAME=$1
+CMD_RESULT=$(ps -fC $PROCESS_NAME |grep -v "PID");
+
+echo "$CMD_RESULT"
+
+if [[ -n "$CMD_RESULT" ]]
+then
+ exit 0;
+else
+ exit 1;
+fi
--- /dev/null
+#!/bin/bash -x
+CMD="$@"
+tmpscript=$(mktemp)
+trap "rm -rf $tmpscript" INT QUIT TERM STOP EXIT
+echo "#!/bin/bash " > $tmpscript
+tr '\0' '\n' </proc/$(pgrep tz-launcher -u guest)/environ | awk 'FS="=" {if ($1 != "_") { print "export",$0;} }' >> $tmpscript
+echo export PATH=$QAPATH:\$PATH >> $tmpscript
+#echo env >> $tmpscript
+echo $CMD >> $tmpscript
+chmod 777 $tmpscript
+su - guest -c $tmpscript
+if [ $? -eq 0 ]; then
+ exit 0
+else
+ exit 1
+fi
+++ /dev/null
-[
- {
- "name": "bluetoothd",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check bluetoothd daemon launching",
- "description": "Check if the bluetoothd daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh bluetoothd",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2013-12-11 16:12:02 GMT",
- "mtime": "2014-05-13 16:02:08 GMT"
- },
- {
- "name": "connmand",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check connmand daemon launching",
- "description": "Check if the connmand daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh connmand",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2013-12-11 16:12:33 GMT",
- "mtime": "2014-05-13 16:02:20 GMT"
- },
- {
- "name": "dbus-daemon",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check dbus-daemon launching",
- "description": "Check if the dbus-daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh dbus-daemon",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2013-12-11 16:12:54 GMT",
- "mtime": "2014-05-13 16:02:29 GMT"
- },
- {
- "name": "systemd-udevd",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check systemd-udevd daemon launching",
- "description": "Check if the systemd-udevd daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh systemd-udevd",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2013-12-11 16:17:02 GMT",
- "mtime": "2014-05-13 16:02:46 GMT"
- },
- {
- "name": "wpa_supplicant",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check wpa_supplicant daemon launching",
- "description": "Check if the wpa_supplicant daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh wpa_supplicant",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2013-12-11 16:17:26 GMT",
- "mtime": "2014-05-13 16:02:55 GMT"
- },
- {
- "name": "weston",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check weston-launch daemon launching",
- "description": "Check if the weston daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh weston",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2013-12-12 15:53:34 GMT",
- "mtime": "2014-05-13 16:03:03 GMT"
- },
- {
- "name": "ofonod",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "check ofonod daemon launching",
- "description": "Check if ofonod daemon is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh ofonod",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2014-02-05 12:51:40 GMT",
- "mtime": "2014-05-13 16:03:18 GMT"
- }
-]
+++ /dev/null
-[
- {
- "name": "weston-desktop-shell",
- "exec_type": "auto",
- "priority": "0",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "Check if weston desktop is shown",
- "description": "Check if the weston-desktop-shell process is launched",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "checkprocess.sh weston-desktop-shell",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2014-05-13 16:10:30 GMT",
- "mtime": "2014-05-13 16:21:00 GMT"
- }
-]
\ No newline at end of file
+++ /dev/null
-[
- {
- "name": "audio-ogg",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "Check if an audio ogg file can be played",
- "description": "Check if an audio ogg file can be played using gst-play",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "init.sh cigale.ogg",
- "exec": "runme.sh gst.sh cigale.ogg",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "post.sh cigale.ogg",
- "service": {},
- "author": "qadmin",
- "ctime": "2014-05-13 16:32:34 GMT",
- "mtime": "2014-05-22 08:31:42 GMT"
- },
- {
- "name": "video-ogg",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "Check if an video ogg file can be played",
- "description": "Check if an video ogg file can be played using gst-play",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "init.sh short-big_buck_bunny_1080p.ogg",
- "exec": "runme.sh gst.sh short-big_buck_bunny_1080p.ogg",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "post.sh short-big_buck_bunny_1080p.ogg",
- "service": {},
- "author": "qadmin",
- "ctime": "2014-05-13 16:36:37 GMT",
- "mtime": "2014-05-22 08:27:31 GMT"
- }
-]
\ No newline at end of file
+++ /dev/null
-#!/bin/bash -x
-
-# Copyright (c) 2013 Intel Corporation. All rights reserved.
-# Use of this source code is governed by a LGPL v2.1 license that can be
-# found in the LICENSE file in the db directory.
-# Author : Ewan Le Bideau-Canevet
-
-
-FILE=$1
-UNWANTED="No decoder available"
-COMMAND="gst-play-1.0 /$HOME/$FILE"
-
-tmplog=$(mktemp --tmpdir=/tmp multimedia-XXXXXX.log)
-trap "rm -f $tmplog" STOP INT QUIT EXIT
-echo $COMMAND
-$COMMAND &>$tmplog &
-pid=$!
-(sleep 5; [ -e /proc/$pid ] && kill $pid;) &
-while [ -e /proc/$pid ]; do
- sleep 1
- if grep "$UNWANTED" $tmplog ; then
- kill $pid
- sleep 1
- [ -e /proc/$pid ] && kill -9 $pid
- exit 1
- fi
-done
-exit 0
+++ /dev/null
-#!/bin/bash
-
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Authors : Ewan le Bideau Canevet <ewan.lebideau-canevet@open.eurogiciel.org>
-
-FILE=$1
-cp $FILE ~guest
+++ /dev/null
-#!/bin/bash
-
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Authors : Ewan le Bideau Canevet <ewan.lebideau-canevet@open.eurogiciel.org>
-
-FILE=$1
-rm -rf ~guest/$FILE
+++ /dev/null
-[
- {
- "name": "smack",
- "exec_type": "auto",
- "priority": "1",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "Check if smack is correctly enabled",
- "description": "Check if security has been correctly enabled on the image",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "mount |grep smackfs",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "qadmin",
- "ctime": "2014-05-22 08:07:39 GMT",
- "mtime": "2014-05-22 08:14:56 GMT"
- },
- {
- "name": "zypper-install",
- "exec_type": "auto",
- "priority": "0",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "Checkk that zypper can install a package",
- "description": "Check that a package can be install with zypper ",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "zypper -n in zypper-log",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2014-05-13 16:36:37 GMT",
- "mtime": "2014-05-13 17:09:34 GMT"
- },
- {
- "name": "zypper-uninstall",
- "exec_type": "auto",
- "priority": "0",
- "status": "designed",
- "type": "functional_positive",
- "subtype": "",
- "objective": "Checkk that zypper can uninstall a package",
- "description": "Check that a package can be uninstall with zypper",
- "pre_condition": "",
- "steps": [],
- "post_condition": "",
- "notes": "",
- "bugs": "",
- "exec_pre": "",
- "exec": "zypper -n rm zypper-log",
- "exec_expected_retcode": "0",
- "exec_kill_timeout": "120",
- "exec_post": "",
- "service": {},
- "author": "zingile",
- "ctime": "2014-05-13 17:10:00 GMT",
- "mtime": "2014-05-13 17:11:26 GMT"
- }
-]
\ No newline at end of file
+++ /dev/null
-#!/bin/bash
-
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Authors: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
-
-PROCESS_NAME=$1
-CMD_RESULT=$(ps -fC $PROCESS_NAME |grep -v "PID");
-
-echo "$CMD_RESULT"
-
-if [[ -n "$CMD_RESULT" ]]
-then
- exit 0;
-else
- exit 1;
-fi
+++ /dev/null
-#!/bin/bash -x
-CMD="$@"
-tmpscript=$(mktemp)
-trap "rm -rf $tmpscript" INT QUIT TERM STOP EXIT
-echo "#!/bin/bash " > $tmpscript
-tr '\0' '\n' </proc/$(pgrep tz-launcher -u guest)/environ | awk 'FS="=" {if ($1 != "_") { print "export",$0;} }' >> $tmpscript
-echo export PATH=$QAPATH:\$PATH >> $tmpscript
-#echo env >> $tmpscript
-echo $CMD >> $tmpscript
-chmod 777 $tmpscript
-su - guest -c $tmpscript
-if [ $? -eq 0 ]; then
- exit 0
-else
- exit 1
-fi
+++ /dev/null
-#!/bin/bash
-# this script was generated by /home/zingile/git/qatizen/node_modules/libqa/executors/PACKAGE.js
-
-set -e
-resdir=/tmp
-resfile=$resdir/testkit.result.xml
-
-echo '## execution script: preparing environment'
-rm -rf $resdir/*.result.xml
-
-timeout 10800 testkit-lite -f /usr/share/tests/common-sanity-suite/testkit.xml --comm localhost -o $resfile
-
-echo '## execution script: finished'
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-<test_definition>
- <suite name="00-common/A0-sanity">
- <set name="common/sanity/core">
- <testcase id="00-A0-00-01-bluetoothd" name="01-bluetoothd" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check bluetoothd daemon launching - Description: Check if the bluetoothd daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check bluetoothd daemon launching - Description: Check if the bluetoothd daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh bluetoothd;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-00-02-connmand" name="02-connmand" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check connmand daemon launching - Description: Check if the connmand daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check connmand daemon launching - Description: Check if the connmand daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh connmand;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-00-03-dbus-daemon" name="03-dbus-daemon" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check dbus-daemon launching - Description: Check if the dbus-daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check dbus-daemon launching - Description: Check if the dbus-daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh dbus-daemon;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-00-04-systemd-udevd" name="04-systemd-udevd" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check systemd-udevd daemon launching - Description: Check if the systemd-udevd daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check systemd-udevd daemon launching - Description: Check if the systemd-udevd daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh systemd-udevd;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-00-05-wpa_supplicant" name="05-wpa_supplicant" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check wpa_supplicant daemon launching - Description: Check if the wpa_supplicant daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check wpa_supplicant daemon launching - Description: Check if the wpa_supplicant daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh wpa_supplicant;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-00-06-weston" name="06-weston" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check weston-launch daemon launching - Description: Check if the weston daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check weston-launch daemon launching - Description: Check if the weston daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh weston;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-00-08-ofonod" name="08-ofonod" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check ofonod daemon launching - Description: Check if ofonod daemon is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: check ofonod daemon launching - Description: Check if ofonod daemon is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh ofonod;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- </set>
- <set name="common/sanity/gui">
- <testcase id="00-A0-01-01-weston-desktop-shell" name="01-weston-desktop-shell" priority="P0" execution_type="auto" component="common/sanity/gui" status="designed" type="functional_positive" purpose="Objective: Check if weston desktop is shown - Description: Check if the weston-desktop-shell process is launched">
- <description>
- <pre_condition>
- <![CDATA[Objective: Check if weston desktop is shown - Description: Check if the weston-desktop-shell process is launched]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/01-gui;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/01-gui:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh weston-desktop-shell;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- </set>
- <set name="common/sanity/multimedia">
- <testcase id="00-A0-02-01-audio-ogg" name="01-audio-ogg" priority="P1" execution_type="auto" component="common/sanity/multimedia" status="designed" type="functional_positive" purpose="Objective: Check if an audio ogg file can be played - Description: Check if an audio ogg file can be played using gst-play">
- <description>
- <pre_condition>
- <![CDATA[Objective: Check if an audio ogg file can be played - Description: Check if an audio ogg file can be played using gst-play]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";init.sh cigale.ogg;runme.sh gst.sh cigale.ogg;rc=$?;post.sh cigale.ogg;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-02-02-video-ogg" name="02-video-ogg" priority="P1" execution_type="auto" component="common/sanity/multimedia" status="designed" type="functional_positive" purpose="Objective: Check if an video ogg file can be played - Description: Check if an video ogg file can be played using gst-play">
- <description>
- <pre_condition>
- <![CDATA[Objective: Check if an video ogg file can be played - Description: Check if an video ogg file can be played using gst-play]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";init.sh short-big_buck_bunny_1080p.ogg;runme.sh gst.sh short-big_buck_bunny_1080p.ogg;rc=$?;post.sh short-big_buck_bunny_1080p.ogg;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- </set>
- <set name="common/sanity/system">
- <testcase id="00-A0-03-01-smack" name="01-smack" priority="P1" execution_type="auto" component="common/sanity/system" status="designed" type="functional_positive" purpose="Objective: Check if smack is correctly enabled - Description: Check if security has been correctly enabled on the image">
- <description>
- <pre_condition>
- <![CDATA[Objective: Check if smack is correctly enabled - Description: Check if security has been correctly enabled on the image]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";mount |grep smackfs;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-03-02-zypper-install" name="02-zypper-install" priority="P0" execution_type="auto" component="common/sanity/system" status="designed" type="functional_positive" purpose="Objective: Checkk that zypper can install a package - Description: Check that a package can be install with zypper ">
- <description>
- <pre_condition>
- <![CDATA[Objective: Checkk that zypper can install a package - Description: Check that a package can be install with zypper ]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";zypper -n in zypper-log;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- <testcase id="00-A0-03-03-zypper-uninstall" name="03-zypper-uninstall" priority="P0" execution_type="auto" component="common/sanity/system" status="designed" type="functional_positive" purpose="Objective: Checkk that zypper can uninstall a package - Description: Check that a package can be uninstall with zypper">
- <description>
- <pre_condition>
- <![CDATA[Objective: Checkk that zypper can uninstall a package - Description: Check that a package can be uninstall with zypper]]></pre_condition>
- <notes>
- <![CDATA[]]></notes>
- <test_script_entry test_script_expected_result="0" timeout="120">
- <![CDATA[cd /usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system;export QAPATH="/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system:/usr/share/tests/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";zypper -n rm zypper-log;rc=$?;exit $rc]]></test_script_entry>
- </description>
- </testcase>
- </set>
- </suite>
-</test_definition>
+++ /dev/null
------------------------
-Introduction
------------------------
-This suite is to check system core processes,ensure the basic quality of overall system.
-
------------------------
-How to Run
------------------------
-(Suppose you only get the source code and testkit-lite has been setup on your test machine
- if you have got ivi-dist-bat-tests RPM, you can directly go to step.4 on testing machine
- if you don't have testkit-lite, you can get it from https://github.com/testkit/testkit-lite)
-
-Steps:
-
-1. testkit-lite -f /usr/share/tests/ivi-dist-bat-tests/tests.xml --comm localhost -o ./results.xml
-
-
------------------------
-TODO
------------------------
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2010 Intel Corporation
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Authors:
-# Yu liyun <liyunx.yu@intel.com>
-# Date Created: 2011/03/24
-#
-# Modifications:
-# Modificator Date
-# Content of Modification
-#
-
-echo "*** prs_checker ***"
-echo "You supplied $# parameters [ $@ ]"
-
-if [ $# -lt 1 ]; then
- echo "Usage: prs_checker process_name"
- exit 2
-fi
-
-process=$1
-sleep 5
-pgrep "$1"
-if [ $? -ne 0 ]; then
- echo "Not find process $process."
- exit 1
-fi
-
-exit 0
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<suite name="ivi-dist-bat">\r
- <set name="process">\r
- <testcase purpose="Check if bluetoothd is started." type="functional_positive" status="design" component="Core Service" execution_type="auto" priority="P0" id="chk_bluetoothd">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker bluetoothd</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker bluetoothd</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if ofonod is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_ofonod">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker ofonod</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker ofonod</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if dbus is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_dbus">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker dbus</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker dbus</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if ambd is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_ambd">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker ambd</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker ambd</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if murphyd is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_murphyd">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker murphyd</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker murphyd</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if connmand is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_connmand">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker connmand</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker connmand</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if weston is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_weston">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker weston</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker weston</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- <testcase purpose="Check if wpa_supplicant is started." type="functional_positive" status="ready" component="Core Service" execution_type="auto" priority="P0" id="chk_supplicant">\r
- <description>\r
- <pre_condition />\r
- <post_condition />\r
- <steps>\r
- <step order="1">\r
- <step_desc>/usr/share/tests/ivi-dist-bat-tests/prs_checker wpa_supplicant</step_desc>\r
- <expected>0</expected>\r
- </step>\r
- </steps>\r
- <test_script_entry>/usr/share/tests/ivi-dist-bat-tests/prs_checker wpa_supplicant</test_script_entry>\r
- </description>\r
- <categories>\r
- <category>IVI</category>\r
- </categories>\r
- </testcase>\r
- </set>\r
-</suite>\r
Name: common-sanity-suite
Summary: Sanity suite for Tizen Common
-Version: 1.0.0
-Release: 1
+Version: 1.1
+Release: 0
License: GPL-2.0
Group: Development/Testing
Source: %{name}-%{version}.tar.gz
%description
The common-sanity-suite is the acceptance test to validate the Tizen Common image
-%package -n ivi-dist-bat-tests
-Summary: Sanity suite for Tizen Common
-Requires: testkit-lite
-
-%description -n ivi-dist-bat-tests
-Basic acceptance tests for Tizen IVI profile
-
%prep
%setup -q
%install
## common-sanity-suite
-install -d %{buildroot}/%{_datadir}/tests/%{name}
-install -m 0755 common/runtest.sh %{buildroot}/%{_datadir}/tests/%{name}
-install -m 644 common/*.xml %{buildroot}/%{_datadir}/tests/%{name}
-install -m 0644 LICENSE %{buildroot}/%{_datadir}/tests/%{name}
-cp -r common/TESTDIR %{buildroot}/%{_datadir}/tests/%{name}
-
-## ivi-dist-bat-tests
-mkdir -p %{buildroot}/%{_datadir}/tests/ivi-dist-bat-tests
-install -m 0755 ivi/prs_checker %{buildroot}/%{_datadir}/tests/ivi-dist-bat-tests
-install -m 0644 ivi/tests.xml %{buildroot}/%{_datadir}/tests/ivi-dist-bat-tests
-install -m 0644 ivi/README %{buildroot}/%{_datadir}/tests/ivi-dist-bat-tests
-install -m 0644 LICENSE %{buildroot}/%{_datadir}/tests/ivi-dist-bat-tests
+install -d %{buildroot}/%{_datadir}/tests/%{profile}/%{name}
+install -m 0755 runtest %{buildroot}/%{_datadir}/tests/%{profile}/%{name}
+install -m 644 *.xml %{buildroot}/%{_datadir}/tests/%{profile}/%{name}
+install -m 0644 LICENSE %{buildroot}/%{_datadir}/tests/%{profile}/%{name}
+cp -r TESTDIR %{buildroot}/%{_datadir}/tests/%{profile}/%{name}
%files
%manifest %{name}.manifest
%defattr(-,root,root)
-%{_datadir}/tests/%{name}
-
-%files -n ivi-dist-bat-tests
-%manifest %{name}.manifest
-%defattr(-,root,root)
-%{_datadir}/tests/ivi-dist-bat-tests
+%{_datadir}/tests/%{profile}/%{name}
--- /dev/null
+#!/bin/bash
+
+set -e
+
+resdir=""
+
+if [[ ! -z $1 ]]; then
+ resdir=$1
+else
+ exit 1
+fi
+
+resfile=$resdir/$(basename $(pwd)).result.xml
+
+timeout 10800 testkit-lite -f /usr/share/tests/common/common-sanity-suite/testkit.xml --comm localhost -o $resfile
+
+echo -e '\n## execution script: finished'
--- /dev/null
+<?xml version="1.0"?>
+<test_definition>
+ <suite name="00-common/A0-sanity">
+ <set name="common/sanity/core">
+ <testcase id="00-A0-00-01-bluetoothd" name="01-bluetoothd" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check bluetoothd daemon launching - Description: Check if the bluetoothd daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check bluetoothd daemon launching - Description: Check if the bluetoothd daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh bluetoothd;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-00-02-connmand" name="02-connmand" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check connmand daemon launching - Description: Check if the connmand daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check connmand daemon launching - Description: Check if the connmand daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh connmand;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-00-03-dbus-daemon" name="03-dbus-daemon" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check dbus-daemon launching - Description: Check if the dbus-daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check dbus-daemon launching - Description: Check if the dbus-daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh dbus-daemon;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-00-04-systemd-udevd" name="04-systemd-udevd" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check systemd-udevd daemon launching - Description: Check if the systemd-udevd daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check systemd-udevd daemon launching - Description: Check if the systemd-udevd daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh systemd-udevd;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-00-05-wpa_supplicant" name="05-wpa_supplicant" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check wpa_supplicant daemon launching - Description: Check if the wpa_supplicant daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check wpa_supplicant daemon launching - Description: Check if the wpa_supplicant daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh wpa_supplicant;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-00-06-weston" name="06-weston" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check weston-launch daemon launching - Description: Check if the weston daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check weston-launch daemon launching - Description: Check if the weston daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh weston;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-00-08-ofonod" name="08-ofonod" priority="P1" execution_type="auto" component="common/sanity/core" status="designed" type="functional_positive" purpose="Objective: check ofonod daemon launching - Description: Check if ofonod daemon is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: check ofonod daemon launching - Description: Check if ofonod daemon is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/00-core:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh ofonod;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ <set name="common/sanity/gui">
+ <testcase id="00-A0-01-01-weston-desktop-shell" name="01-weston-desktop-shell" priority="P0" execution_type="auto" component="common/sanity/gui" status="designed" type="functional_positive" purpose="Objective: Check if weston desktop is shown - Description: Check if the weston-desktop-shell process is launched">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: Check if weston desktop is shown - Description: Check if the weston-desktop-shell process is launched]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/01-gui;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/01-gui:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";checkprocess.sh weston-desktop-shell;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ <set name="common/sanity/multimedia">
+ <testcase id="00-A0-02-01-audio-ogg" name="01-audio-ogg" priority="P1" execution_type="auto" component="common/sanity/multimedia" status="designed" type="functional_positive" purpose="Objective: Check if an audio ogg file can be played - Description: Check if an audio ogg file can be played using gst-play">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: Check if an audio ogg file can be played - Description: Check if an audio ogg file can be played using gst-play]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";init.sh cigale.ogg;runme.sh gst.sh cigale.ogg;rc=$?;post.sh cigale.ogg;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-02-02-video-ogg" name="02-video-ogg" priority="P1" execution_type="auto" component="common/sanity/multimedia" status="designed" type="functional_positive" purpose="Objective: Check if an video ogg file can be played - Description: Check if an video ogg file can be played using gst-play">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: Check if an video ogg file can be played - Description: Check if an video ogg file can be played using gst-play]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/02-multimedia:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";init.sh short-big_buck_bunny_1080p.ogg;runme.sh gst.sh short-big_buck_bunny_1080p.ogg;rc=$?;post.sh short-big_buck_bunny_1080p.ogg;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ <set name="common/sanity/system">
+ <testcase id="00-A0-03-01-smack" name="01-smack" priority="P1" execution_type="auto" component="common/sanity/system" status="designed" type="functional_positive" purpose="Objective: Check if smack is correctly enabled - Description: Check if security has been correctly enabled on the image">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: Check if smack is correctly enabled - Description: Check if security has been correctly enabled on the image]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";mount |grep smackfs;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-03-02-zypper-install" name="02-zypper-install" priority="P0" execution_type="auto" component="common/sanity/system" status="designed" type="functional_positive" purpose="Objective: Checkk that zypper can install a package - Description: Check that a package can be install with zypper ">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: Checkk that zypper can install a package - Description: Check that a package can be install with zypper ]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";zypper -n in zypper-log;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ <testcase id="00-A0-03-03-zypper-uninstall" name="03-zypper-uninstall" priority="P0" execution_type="auto" component="common/sanity/system" status="designed" type="functional_positive" purpose="Objective: Checkk that zypper can uninstall a package - Description: Check that a package can be uninstall with zypper">
+ <description>
+ <pre_condition>
+ <![CDATA[Objective: Checkk that zypper can uninstall a package - Description: Check that a package can be uninstall with zypper]]></pre_condition>
+ <notes>
+ <![CDATA[]]></notes>
+ <test_script_entry test_script_expected_result="0" timeout="120">
+ <![CDATA[cd /usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system;export QAPATH="/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity/03-system:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common/A0-sanity:/usr/share/tests/common/common-sanity-suite/TESTDIR/00-common:/usr/share/tests/common/common-sanity-suite/TESTDIR";export PATH="$QAPATH:$PATH";zypper -n rm zypper-log;rc=$?;exit $rc]]></test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ </suite>
+</test_definition>