1
# Copyright (c) 2012 Linaro
3
# Author: Linaro Android Team <linaro-android@lists.linaro.org>
5
# This file is part of LAVA Android Test.
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.
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.
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/>.
22
binder test "bctest" that is pre-intalled on Juice Android builds.
24
**URL:** https://wiki.linaro.org/Internal/Projects/Juice
26
**Default options:** "publish 1"
29
import lava_android_test.config
30
import lava_android_test.testdef
34
DEFAULT_OPTIONS='publish 1'
36
INSTALL_STEPS_ADB_PRE = []
37
ADB_SHELL_STEPS = ['bctest $(OPTIONS)']
38
PATTERN = "(?P<test_case_id>.*ioctl)\s(?P<result>(PASS|FAIL)?).*"
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,
49
default_options=DEFAULT_OPTIONS)