Commit Graph

20 Commits

Author SHA1 Message Date
Grzegorz Kolodziejczyk
f0613a3786 android/tester: Add verification for test case list creators
To be safe it must be chcecked if queue_new and add test case to list
was successful.
2014-12-18 18:37:17 +01:00
Grzegorz Kolodziejczyk
43370aec61 android/tester: Refreactor tester-main header includes
Profile testers should contain necessary headers include instead
of tester-main header.
2014-12-18 18:17:11 +01:00
Szymon Janc
f1f2ee1032 android/tester: Use default SSP handler in socket tests 2014-09-04 14:48:09 +02:00
Jakub Tyszkowski
85cd289922 android/tester-ng: Remove not needed include 2014-07-25 14:34:45 +03:00
Jakub Tyszkowski
af32306684 android/tester-ng: Fix not initializing step
This fixes the following vagrind report:

==12708== 4 errors in context 1 of 1:
==12708== Conditional jump or move depends on uninitialised value(s)
==12708==    at 0x40E359: verify_step (tester-main.c:416)
==12708==    by 0x40E5FD: verify_action (tester-main.c:540)
==12708==    by 0x5083CE4: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12708==    by 0x5084047: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12708==    by 0x5084309: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12708==    by 0x40D51C: tester_run (tester.c:812)
==12708==    by 0x40251E: main (tester-main.c:1496)
2014-07-25 14:34:44 +03:00
Jakub Tyszkowski
4af83746c3 android/tester-ng: Add socket connect success cases
Adding socket connect cases requires to set up the the l2cap and
rfcomm servers on the emulated device. For this, the bthost_l2cap_connect_cb
type had to exposed in tester-main.h and pulled some bthost dependencies
along.
2014-07-24 13:14:13 +03:00
Jakub Tyszkowski
324a38c73d android/tester-ng: Add various socket connect fail cases
Thiose test verifies socket porofile behaviour in case of invalid
parameters passed to 'connect' command.
2014-07-24 13:14:09 +03:00
Jakub Tyszkowski
f3b42a16ff android/tester-ng: Add socket double listen fail case 2014-07-24 13:14:08 +03:00
Jakub Tyszkowski
c603589f74 android/tester-ng: Add socket listen - close than listen case
This checks for another successfull listen after closing previous fd.
2014-07-24 13:14:07 +03:00
Jakub Tyszkowski
85ef0439b9 android/tester-ng: Add socket listen - verify channel case 2014-07-24 13:14:06 +03:00
Jakub Tyszkowski
e4229f7469 android/tester-ng: Add socket listen - verify fd case 2014-07-24 13:14:05 +03:00
Jakub Tyszkowski
fb876ac887 android/tester-ng: Add socket listen - invalid channel case 2014-07-24 13:14:04 +03:00
Jakub Tyszkowski
6f9532dffe android/tester-ng: Add socket listen - invalid param cases 2014-07-24 13:14:03 +03:00
Jakub Tyszkowski
a646cdb8fe android/tester-ng: Allow test framework user to choose emu type
This allows to set emulated adapter type for each test case in place
where tests are defined. Previously this was hardcoded in the framework.
2014-07-21 11:44:03 +03:00
Jakub Tyszkowski
103aa3250a android/tester-ng: Use array of statics instead of case pointers
This is yet another macro that hides the test implementation details and
shortens the amount of code that needs to be written for each test case.
2014-07-18 09:49:12 +02:00
Jakub Tyszkowski
3f93ade572 android/tester-ng: Add test declaration helper macro
This replaces test cases declaration with simplier macro call.
2014-07-18 09:49:12 +02:00
Jakub Tyszkowski
fb49bdf691 android/tester-ng: Use action and callback defining macros
This significantly shortens the action definitions.
2014-07-18 09:49:12 +02:00
Jakub Tyszkowski
0bcf025146 android/tester-ng: Use loop for adding cases to the queue
It will be simplier to add new cases.
2014-07-16 16:40:13 +02:00
Grzegorz Kolodziejczyk
01e8fc9e03 android/tester-socket: Add initial test case
This is patch with initial test case testing setup for socket hal test
cases.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
aa9cbddcd0 android/tester-socket: Initial socket tester
This is initial patch for android socket HAL tester. It'll contain test
cases for socket hal.
2014-07-14 16:58:38 +02:00