summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/memtester.yaml11
-rw-r--r--android/scripts/memtester.sh28
2 files changed, 39 insertions, 0 deletions
diff --git a/android/memtester.yaml b/android/memtester.yaml
new file mode 100644
index 0000000..c7b9c50
--- /dev/null
+++ b/android/memtester.yaml
@@ -0,0 +1,11 @@
+metadata:
+ format: "Lava-Test Test Definition 1.0"
+ name: memtester
+ description: "memtester for android."
+
+run:
+ steps:
+ - "./android/scripts/memtester.sh"
+
+parse:
+ pattern: "^(?P<test_case_id>\\w+\\s+\\w+)\\s*:\\s+(?P<result>\\w+)$"
diff --git a/android/scripts/memtester.sh b/android/scripts/memtester.sh
new file mode 100644
index 0000000..3de8607
--- /dev/null
+++ b/android/scripts/memtester.sh
@@ -0,0 +1,28 @@
+#!/system/bin/sh
+#
+# memtester 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
+#
+##############################################################################
+
+memtester 1M 1 | sed -n '/ ok/p' | sed -e 's/ok/pass/g' &> stdout.log
+cat stdout.log
+rm -rf stdout.log