Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH_v2 5/7] android/tester: Add PAN enable PANU test case Date: Mon, 17 Mar 2014 16:00:09 +0200 Message-Id: <1395064811-5469-6-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1395064811-5469-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1395064811-5469-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/android-tester.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/android/android-tester.c b/android/android-tester.c index 71c32bb..a7d8ebb 100644 --- a/android/android-tester.c +++ b/android/android-tester.c @@ -5024,6 +5024,20 @@ static void test_pan_get_local_role_none(const void *test_data) tester_test_passed(); } +static void test_pan_enable_panu(const void *test_data) +{ + struct test_data *data = tester_get_data(); + bt_status_t bt_status; + + setup_pan(test_data); + + bt_status = data->if_pan->enable(BTPAN_ROLE_PANU); + if (bt_status != BT_STATUS_UNSUPPORTED) + tester_test_failed(); + + tester_test_passed(); +} + #define test_bredr(name, data, test_setup, test, test_teardown) \ do { \ struct test_data *user; \ @@ -5478,5 +5492,9 @@ int main(int argc, char *argv[]) NULL, NULL, test_pan_get_local_role_none, teardown); + test_bredr("PAN Enable PANU Success", + NULL, NULL, + test_pan_enable_panu, teardown); + return tester_run(); } -- 1.8.3.2