~liuyq0307/lava-android-test/cts-logcat-hostlog

« back to all changes in this revision

Viewing changes to lava_android_test/test_definitions/bctest.py

  • Committer: Yongqin Liu
  • Date: 2013-02-26 09:34:18 UTC
  • mfrom: (236.1.1 lava-android-test)
  • Revision ID: yongqin.liu@linaro.org-20130226093418-e8jicljvz7wyxw1n
merge with Amit Pundir branch for bctest binder test

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 2012 Linaro
 
2
 
 
3
# Author: Linaro Android Team <linaro-android@lists.linaro.org>
 
4
#
 
5
# This file is part of LAVA Android Test.
 
6
#
 
7
#
 
8
# This program is free software: you can redistribute it and/or modify
 
9
# it under the terms of the GNU General Public License as published by
 
10
# the Free Software Foundation, either version 3 of the License, or
 
11
# (at your option) any later version.
 
12
#
 
13
# This program is distributed in the hope that it will be useful,
 
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
# GNU General Public License for more details.
 
17
#
 
18
# You should have received a copy of the GNU General Public License
 
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 
 
21
"""
 
22
binder test "bctest" that is pre-intalled on Juice Android builds.
 
23
 
 
24
**URL:** https://wiki.linaro.org/Internal/Projects/Juice
 
25
 
 
26
**Default options:** "publish 1"
 
27
"""
 
28
 
 
29
import lava_android_test.config
 
30
import lava_android_test.testdef
 
31
 
 
32
test_name = 'bctest'
 
33
 
 
34
DEFAULT_OPTIONS='publish 1'
 
35
 
 
36
INSTALL_STEPS_ADB_PRE = []
 
37
ADB_SHELL_STEPS = ['bctest $(OPTIONS)']
 
38
PATTERN = "(?P<test_case_id>.*ioctl)\s(?P<result>(PASS|FAIL)?).*"
 
39
 
 
40
inst = lava_android_test.testdef.AndroidTestInstaller(
 
41
                                steps_adb_pre=INSTALL_STEPS_ADB_PRE)
 
42
run = lava_android_test.testdef.AndroidTestRunner(
 
43
                                    adbshell_steps=ADB_SHELL_STEPS)
 
44
parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
 
45
testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
 
46
                                    installer=inst,
 
47
                                    runner=run,
 
48
                                    parser=parser,
 
49
                                    default_options=DEFAULT_OPTIONS)