clean up the test suite and adapt it to common-suite-launcher v2 83/25983/1 accepted/tizen/common/20140813.152853 accepted/tizen/ivi/20140815.203836 submit/tizen/20140813.142556
authorNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Wed, 13 Aug 2014 14:22:43 +0000 (16:22 +0200)
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Wed, 13 Aug 2014 14:22:43 +0000 (16:22 +0200)
Change-Id: Id0df4d3a8aee34d381586bdbd9bd102ddbe9ee33
Signed-off-by: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
30 files changed:
TESTDIR/00-common/A0-sanity/00-core/QAMETA.json [new file with mode: 0644]
TESTDIR/00-common/A0-sanity/01-gui/QAMETA.json [new file with mode: 0644]
TESTDIR/00-common/A0-sanity/02-multimedia/QAMETA.json [new file with mode: 0644]
TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg [new file with mode: 0644]
TESTDIR/00-common/A0-sanity/02-multimedia/gst.sh [new file with mode: 0755]
TESTDIR/00-common/A0-sanity/02-multimedia/init.sh [new file with mode: 0755]
TESTDIR/00-common/A0-sanity/02-multimedia/post.sh [new file with mode: 0755]
TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg [new file with mode: 0644]
TESTDIR/00-common/A0-sanity/03-system/QAMETA.json [new file with mode: 0644]
TESTDIR/00-common/A0-sanity/checkprocess.sh [new file with mode: 0755]
TESTDIR/runme.sh [new file with mode: 0755]
common/TESTDIR/00-common/A0-sanity/00-core/QAMETA.json [deleted file]
common/TESTDIR/00-common/A0-sanity/01-gui/QAMETA.json [deleted file]
common/TESTDIR/00-common/A0-sanity/02-multimedia/QAMETA.json [deleted file]
common/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg [deleted file]
common/TESTDIR/00-common/A0-sanity/02-multimedia/gst.sh [deleted file]
common/TESTDIR/00-common/A0-sanity/02-multimedia/init.sh [deleted file]
common/TESTDIR/00-common/A0-sanity/02-multimedia/post.sh [deleted file]
common/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg [deleted file]
common/TESTDIR/00-common/A0-sanity/03-system/QAMETA.json [deleted file]
common/TESTDIR/00-common/A0-sanity/checkprocess.sh [deleted file]
common/TESTDIR/runme.sh [deleted file]
common/runtest.sh [deleted file]
common/testkit.xml [deleted file]
ivi/README [deleted file]
ivi/prs_checker [deleted file]
ivi/tests.xml [deleted file]
packaging/common-sanity-suite.spec
runtest [new file with mode: 0644]
testkit.xml [new file with mode: 0644]

diff --git a/TESTDIR/00-common/A0-sanity/00-core/QAMETA.json b/TESTDIR/00-common/A0-sanity/00-core/QAMETA.json
new file mode 100644 (file)
index 0000000..7e927f5
--- /dev/null
@@ -0,0 +1,170 @@
+[
+  {
+    "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"
+  }
+]
diff --git a/TESTDIR/00-common/A0-sanity/01-gui/QAMETA.json b/TESTDIR/00-common/A0-sanity/01-gui/QAMETA.json
new file mode 100644 (file)
index 0000000..3c8a62f
--- /dev/null
@@ -0,0 +1,26 @@
+[
+  {
+    "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
diff --git a/TESTDIR/00-common/A0-sanity/02-multimedia/QAMETA.json b/TESTDIR/00-common/A0-sanity/02-multimedia/QAMETA.json
new file mode 100644 (file)
index 0000000..6c7a138
--- /dev/null
@@ -0,0 +1,50 @@
+[
+  {
+    "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
diff --git a/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg b/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg
new file mode 100644 (file)
index 0000000..31cf2a6
Binary files /dev/null and b/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg differ
diff --git a/TESTDIR/00-common/A0-sanity/02-multimedia/gst.sh b/TESTDIR/00-common/A0-sanity/02-multimedia/gst.sh
new file mode 100755 (executable)
index 0000000..7554f6a
--- /dev/null
@@ -0,0 +1,28 @@
+#!/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
diff --git a/TESTDIR/00-common/A0-sanity/02-multimedia/init.sh b/TESTDIR/00-common/A0-sanity/02-multimedia/init.sh
new file mode 100755 (executable)
index 0000000..24599bb
--- /dev/null
@@ -0,0 +1,20 @@
+#!/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
diff --git a/TESTDIR/00-common/A0-sanity/02-multimedia/post.sh b/TESTDIR/00-common/A0-sanity/02-multimedia/post.sh
new file mode 100755 (executable)
index 0000000..a0dd115
--- /dev/null
@@ -0,0 +1,20 @@
+#!/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
diff --git a/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg b/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg
new file mode 100644 (file)
index 0000000..6520f76
Binary files /dev/null and b/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg differ
diff --git a/TESTDIR/00-common/A0-sanity/03-system/QAMETA.json b/TESTDIR/00-common/A0-sanity/03-system/QAMETA.json
new file mode 100644 (file)
index 0000000..eb7033b
--- /dev/null
@@ -0,0 +1,74 @@
+[
+  {
+    "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
diff --git a/TESTDIR/00-common/A0-sanity/checkprocess.sh b/TESTDIR/00-common/A0-sanity/checkprocess.sh
new file mode 100755 (executable)
index 0000000..eb6e9c0
--- /dev/null
@@ -0,0 +1,29 @@
+#!/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
diff --git a/TESTDIR/runme.sh b/TESTDIR/runme.sh
new file mode 100755 (executable)
index 0000000..59769d7
--- /dev/null
@@ -0,0 +1,16 @@
+#!/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
diff --git a/common/TESTDIR/00-common/A0-sanity/00-core/QAMETA.json b/common/TESTDIR/00-common/A0-sanity/00-core/QAMETA.json
deleted file mode 100644 (file)
index 7e927f5..0000000
+++ /dev/null
@@ -1,170 +0,0 @@
-[
-  {
-    "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"
-  }
-]
diff --git a/common/TESTDIR/00-common/A0-sanity/01-gui/QAMETA.json b/common/TESTDIR/00-common/A0-sanity/01-gui/QAMETA.json
deleted file mode 100644 (file)
index 3c8a62f..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-[
-  {
-    "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
diff --git a/common/TESTDIR/00-common/A0-sanity/02-multimedia/QAMETA.json b/common/TESTDIR/00-common/A0-sanity/02-multimedia/QAMETA.json
deleted file mode 100644 (file)
index 6c7a138..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-[
-  {
-    "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
diff --git a/common/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg b/common/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg
deleted file mode 100644 (file)
index 31cf2a6..0000000
Binary files a/common/TESTDIR/00-common/A0-sanity/02-multimedia/cigale.ogg and /dev/null differ
diff --git a/common/TESTDIR/00-common/A0-sanity/02-multimedia/gst.sh b/common/TESTDIR/00-common/A0-sanity/02-multimedia/gst.sh
deleted file mode 100755 (executable)
index 7554f6a..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/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
diff --git a/common/TESTDIR/00-common/A0-sanity/02-multimedia/init.sh b/common/TESTDIR/00-common/A0-sanity/02-multimedia/init.sh
deleted file mode 100755 (executable)
index 24599bb..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/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
diff --git a/common/TESTDIR/00-common/A0-sanity/02-multimedia/post.sh b/common/TESTDIR/00-common/A0-sanity/02-multimedia/post.sh
deleted file mode 100755 (executable)
index a0dd115..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/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
diff --git a/common/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg b/common/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg
deleted file mode 100644 (file)
index 6520f76..0000000
Binary files a/common/TESTDIR/00-common/A0-sanity/02-multimedia/short-big_buck_bunny_1080p.ogg and /dev/null differ
diff --git a/common/TESTDIR/00-common/A0-sanity/03-system/QAMETA.json b/common/TESTDIR/00-common/A0-sanity/03-system/QAMETA.json
deleted file mode 100644 (file)
index eb7033b..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-[
-  {
-    "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
diff --git a/common/TESTDIR/00-common/A0-sanity/checkprocess.sh b/common/TESTDIR/00-common/A0-sanity/checkprocess.sh
deleted file mode 100755 (executable)
index eb6e9c0..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/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
diff --git a/common/TESTDIR/runme.sh b/common/TESTDIR/runme.sh
deleted file mode 100755 (executable)
index 59769d7..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/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
diff --git a/common/runtest.sh b/common/runtest.sh
deleted file mode 100644 (file)
index 3455b16..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/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
diff --git a/common/testkit.xml b/common/testkit.xml
deleted file mode 100644 (file)
index f512181..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-<?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>
diff --git a/ivi/README b/ivi/README
deleted file mode 100644 (file)
index a07da90..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
------------------------
-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
------------------------
diff --git a/ivi/prs_checker b/ivi/prs_checker
deleted file mode 100755 (executable)
index 6cc64c0..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/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
diff --git a/ivi/tests.xml b/ivi/tests.xml
deleted file mode 100644 (file)
index 4364b3b..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-<?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
index f6a196c6e5e6971d656ff23a151eb335ff76bf3a..36630addf21735799d9c77ed61097d853575eb6c 100644 (file)
@@ -1,7 +1,7 @@
 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
@@ -14,13 +14,6 @@ Requires:    common-suite-launcher
 %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
@@ -32,26 +25,14 @@ cp %{SOURCE1001} .
 
 %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}
diff --git a/runtest b/runtest
new file mode 100644 (file)
index 0000000..cf96a39
--- /dev/null
+++ b/runtest
@@ -0,0 +1,17 @@
+#!/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'
diff --git a/testkit.xml b/testkit.xml
new file mode 100644 (file)
index 0000000..a427b05
--- /dev/null
@@ -0,0 +1,143 @@
+<?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>