diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2014-07-03 18:00:07 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-07-14 16:58:37 +0200 |
commit | cd9a6e7a441321f96f6c78548fe38d2a5b6390d5 (patch) | |
tree | af522b914477d34465162ee6ddc75e1f362b0466 /android/tester-bluetooth.c | |
parent | 204fb41d73309b4664baeb0d5cac98fe886a4aaa (diff) | |
download | bluez-cd9a6e7a441321f96f6c78548fe38d2a5b6390d5.tar.gz |
android/tester-bluetooth: Add initial test case
This also adds handle of test steps in android tester framework like:
initializing, matching, verifyng and generic test action which
performes first step action.
Diffstat (limited to 'android/tester-bluetooth.c')
-rw-r--r-- | android/tester-bluetooth.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c index 9acf999d8..c912d7dbb 100644 --- a/android/tester-bluetooth.c +++ b/android/tester-bluetooth.c @@ -19,10 +19,24 @@ static struct queue *list; /* List of bluetooth test cases */ +static struct step dummy_steps[] = { + { + .action = dummy_action, + }, +}; +static struct test_case bluetooth_init = { + .step = dummy_steps, + .title = "Bluetooth Init", + .step_num = get_test_case_step_num(dummy_steps), +}; + struct queue *get_bluetooth_tests(void) { list = queue_new(); + if (!queue_push_tail(list, &bluetooth_init)) + return NULL; + return list; } |