diff options
author | Senthil Kumaran <senthil.kumaran@linaro.org> | 2013-07-25 19:42:08 +0530 |
---|---|---|
committer | Senthil Kumaran <senthil.kumaran@linaro.org> | 2013-07-25 19:42:08 +0530 |
commit | c30a43f0a3d4568395655c00850d322aa6557f05 (patch) | |
tree | 74bcbc2e25ee95cf3822e174722f46d25f3de3e9 /android | |
parent | 436ca893f455b2772b3dc335e87b231e2fe031f7 (diff) |
Add memtester test definition to android.
Diffstat (limited to 'android')
-rw-r--r-- | android/memtester.yaml | 11 | ||||
-rw-r--r-- | android/scripts/memtester.sh | 28 |
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 |