Android: ashmem and binder Tests

315 views
Skip to first unread message

Naresh Kamboju

unread,
Nov 14, 2012, 2:22:27 PM11/14/12
to rl...@google.com, android...@googlegroups.com, android-...@googlegroups.com
Hi,

Greeting from QA Services Linaro.

I have a plan to develop test cases to test functionality of ashmem and binder. here I would like to ensure developed test cases are going to cover 95% of ashmem and binder code.

Before i start this activity I would like to know, any one has already done this (or drafted any test cases)? if yes where can i find test code or test doc?
 
OTOH, The developers who have developed ashmem and binder functionality should have unit test cases. this could give initial idea on test development and I can take forward and can implement  functionality, stress tests and make run them in automated way.

Best regards
Naresh Kamboju
QA services Expert

raja pavan

unread,
Nov 17, 2012, 1:20:51 AM11/17/12
to android...@googlegroups.com
Hi
 
Best way to start on test cases for ashmem and binder drivers is android source code.
 
android source code and ashmem driver
I reviewed the android source code and found that ashmem and binder are also opened like any other linux device.
They are opened like any linux device.
 
Interfaces to ashmem driver
So if you can understand other interfaces, you can test most of the functionality of these drivers.
ashmem_create() for instance
 
You can also review the driver code to understand if there are any ioctl interfaces.
 
 
I can post the source code snippets in another mail may be in a day or two.
 
Cheers
Pavan

 

Reply all
Reply to author
Forward
0 new messages