summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil.kumaran@linaro.org>2013-07-24 11:24:44 +0530
committerSenthil Kumaran <senthil.kumaran@linaro.org>2013-07-24 11:24:44 +0530
commitba20ac581ed2286292089a108e5fc40d90068e11 (patch)
tree07811a5b38b5b76b50c730ffc571ceb9a5f5ec75 /android
parent1fdc5b43e1d98339f8614486117aa80413ec4179 (diff)
Add gator test definition for android.
Diffstat (limited to 'android')
-rw-r--r--android/gatortest.yaml11
-rwxr-xr-xandroid/scripts/gatortest.sh38
2 files changed, 49 insertions, 0 deletions
diff --git a/android/gatortest.yaml b/android/gatortest.yaml
new file mode 100644
index 0000000..5cda2eb
--- /dev/null
+++ b/android/gatortest.yaml
@@ -0,0 +1,11 @@
+metadata:
+ format: "Lava-Test Test Definition 1.0"
+ name: gatortest
+ description: "gatortest for android."
+
+run:
+ steps:
+ - "./android/scripts/gatortest.sh"
+
+parse:
+ pattern: "^(?P<test_case_id>\\w+)=(?P<result>\\w+)$"
diff --git a/android/scripts/gatortest.sh b/android/scripts/gatortest.sh
new file mode 100755
index 0000000..e3331d5
--- /dev/null
+++ b/android/scripts/gatortest.sh
@@ -0,0 +1,38 @@
+#!/system/bin/sh
+#
+# gator test.
+#
+# Copyright (C) 2013, Linaro Limited.
+#
+# 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.
+#
+# owner: harigopal.gollamudi@linaro.org
+#
+###############################################################################
+
+if lsmod | grep "gator"
+then
+ echo "gator_daemon_check=pass"
+else
+ echo "gator_daemon_check=fail"
+fi
+
+if ps | grep "gator"
+then
+ echo "gator_module_check=pass"
+else
+ echo "gator_module_check=fail"
+fi