Linux bluetooth development
 help / color / mirror / Atom feed
From: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Subject: [PATCH 9/9] android/tester: Remove old test cases
Date: Fri, 18 Jul 2014 11:50:21 +0200	[thread overview]
Message-ID: <1405677021-18877-9-git-send-email-jakub.tyszkowski@tieto.com> (raw)
In-Reply-To: <1405677021-18877-1-git-send-email-jakub.tyszkowski@tieto.com>

Those tests are now in the newer tester.
---
 android/android-tester.c | 438 -----------------------------------------------
 1 file changed, 438 deletions(-)

diff --git a/android/android-tester.c b/android/android-tester.c
index ff14fc8..2b72bd8 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -2163,289 +2163,6 @@ static void test_dummy(const void *test_data)
 	tester_test_passed();
 }
 
-static void test_discovery_start_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-	bt_status_t status;
-
-	init_test_conditions(data);
-
-	status = data->if_bluetooth->start_discovery();
-	check_expected_status(status);
-}
-
-static void test_discovery_stop_done(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-	bt_status_t status;
-
-	init_test_conditions(data);
-
-	status = data->if_bluetooth->cancel_discovery();
-	check_expected_status(status);
-}
-
-static void test_discovery_stop_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_discovery_start_done(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_discovery_device_found(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprops_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_bdname_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_uuids_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_cod_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_tod_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_rssi_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_timestamp_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_bdaddr_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_servrec_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_scanmode_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_bondeddev_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_disctimeout_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_verinfo_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_getprop_fname_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_fname_success(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_bdname_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_uuids_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_cod_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_tod_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_rssi_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_timestamp_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_bdaddr_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_servrec_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_scanmode_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_bondeddev_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
-static void test_dev_setprop_disctimeout_fail(const void *test_data)
-{
-	struct test_data *data = tester_get_data();
-
-	init_test_conditions(data);
-
-	data->if_bluetooth->start_discovery();
-}
-
 static void bond_device_auth_fail_callback(uint16_t index, uint16_t length,
 							const void *param,
 							void *user_data)
@@ -3659,161 +3376,6 @@ int main(int argc, char *argv[])
 
 	tester_init(&argc, &argv);
 
-	test_bredrle("Bluetooth BR/EDR Discovery Start - Success",
-				&bluetooth_discovery_start_success_test,
-				setup_enabled_adapter,
-				test_discovery_start_success, teardown);
-
-	test_bredrle("Bluetooth BR/EDR Discovery Start - Success 2",
-				&bluetooth_discovery_start_success2_test,
-				setup_enabled_adapter,
-				test_discovery_start_done, teardown);
-
-	test_bredrle("Bluetooth BR/EDR Discovery Stop - Success",
-				&bluetooth_discovery_stop_success_test,
-				setup_enabled_adapter,
-				test_discovery_stop_success, teardown);
-
-	test_bredrle("Bluetooth BR/EDR Discovery Stop - Success 2",
-				&bluetooth_discovery_stop_success2_test,
-				setup_enabled_adapter,
-				test_discovery_stop_done, teardown);
-
-	test_bredr("Bluetooth BR/EDR Discovery Device Found",
-				&bluetooth_discovery_device_found_test,
-				setup_enabled_adapter,
-				test_discovery_device_found, teardown);
-
-	test_bredr("Bluetooth Device Get Props - Success",
-					&bt_dev_getprops_success_test,
-					setup_enabled_adapter,
-					test_dev_getprops_success, teardown);
-
-	test_bredr("Bluetooth Device Get BDNAME - Success",
-				&bt_dev_getprop_bdname_success_test,
-				setup_enabled_adapter,
-				test_dev_getprop_bdname_success, teardown);
-
-	test_bredr("Bluetooth Device Get UUIDS - Success",
-				&bt_dev_getprop_uuids_success_test,
-				setup_enabled_adapter,
-				test_dev_getprop_uuids_success, teardown);
-
-	test_bredr("Bluetooth Device Get COD - Success",
-					&bt_dev_getprop_cod_success_test,
-					setup_enabled_adapter,
-					test_dev_getprop_cod_success, teardown);
-
-	test_bredr("Bluetooth Device Get TOD - Success",
-					&bt_dev_getprop_tod_success_test,
-					setup_enabled_adapter,
-					test_dev_getprop_tod_success, teardown);
-
-	test_bredr("Bluetooth Device Get RSSI - Success",
-				&bt_dev_getprop_rssi_success_test,
-				setup_enabled_adapter,
-				test_dev_getprop_rssi_success, teardown);
-
-	test_bredr("Bluetooth Device Get TIMESTAMP - Success",
-				&bt_dev_getprop_timpestamp_success_test,
-				setup_enabled_adapter,
-				test_dev_getprop_timestamp_success, teardown);
-
-	test_bredr("Bluetooth Device Get BDADDR - Fail",
-				&bt_dev_getprop_bdaddr_fail_test,
-				setup_enabled_adapter,
-				test_dev_getprop_bdaddr_fail, teardown);
-
-	test_bredr("Bluetooth Device Get SERVICE_RECORD - Fail",
-				&bt_dev_getprop_servrec_fail_test,
-				setup_enabled_adapter,
-				test_dev_getprop_servrec_fail, teardown);
-
-	test_bredr("Bluetooth Device Get SCAN_MODE - Fail",
-				&bt_dev_getprop_scanmode_fail_test,
-				setup_enabled_adapter,
-				test_dev_getprop_scanmode_fail, teardown);
-
-	test_bredr("Bluetooth Device Get BONDED_DEVICES - Fail",
-				&bt_dev_getprop_bondeddev_fail_test,
-				setup_enabled_adapter,
-				test_dev_getprop_bondeddev_fail, teardown);
-
-	test_bredr("Bluetooth Device Get DISCOVERY_TIMEOUT - Fail",
-				&bt_dev_getprop_disctimeout_fail_test,
-				setup_enabled_adapter,
-				test_dev_getprop_disctimeout_fail, teardown);
-
-	test_bredr("Bluetooth Device Get VERSION_INFO - Fail",
-				&bt_dev_getprop_verinfo_fail_test,
-				setup_enabled_adapter,
-				test_dev_getprop_verinfo_fail, teardown);
-
-	test_bredr("Bluetooth Device Get FRIENDLY_NAME - Fail",
-					&bt_dev_getprop_fname_fail_test,
-					setup_enabled_adapter,
-					test_dev_getprop_fname_fail, teardown);
-
-	test_bredr("Bluetooth Device Set FRIENDLY_NAME - Success",
-				&bt_dev_setprop_fname_success_test,
-				setup_enabled_adapter,
-				test_dev_setprop_fname_success, teardown);
-
-	test_bredr("Bluetooth Device Set BDNAME - Fail",
-					&bt_dev_setprop_bdname_fail_test,
-					setup_enabled_adapter,
-					test_dev_setprop_bdname_fail, teardown);
-
-	test_bredr("Bluetooth Device Set UUIDS - Fail",
-					&bt_dev_setprop_uuids_fail_test,
-					setup_enabled_adapter,
-					test_dev_setprop_uuids_fail, teardown);
-
-	test_bredr("Bluetooth Device Set COD - Fail",
-					&bt_dev_setprop_cod_fail_test,
-					setup_enabled_adapter,
-					test_dev_setprop_cod_fail, teardown);
-
-	test_bredr("Bluetooth Device Set TOD - Fail",
-					&bt_dev_setprop_tod_fail_test,
-					setup_enabled_adapter,
-					test_dev_setprop_tod_fail, teardown);
-
-	test_bredr("Bluetooth Device Set RSSI - Fail",
-				&bt_dev_setprop_rssi_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_rssi_fail, teardown);
-
-	test_bredr("Bluetooth Device Set TIMESTAMP - Fail",
-				&bt_dev_setprop_timpestamp_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_timestamp_fail, teardown);
-
-	test_bredr("Bluetooth Device Set BDADDR - Fail",
-				&bt_dev_setprop_bdaddr_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_bdaddr_fail, teardown);
-
-	test_bredr("Bluetooth Device Set SERVICE_RECORD - Fail",
-				&bt_dev_setprop_servrec_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_servrec_fail, teardown);
-
-	test_bredr("Bluetooth Device Set SCAN_MODE - Fail",
-				&bt_dev_setprop_scanmode_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_scanmode_fail, teardown);
-
-	test_bredr("Bluetooth Device Set BONDED_DEVICES - Fail",
-				&bt_dev_setprop_bondeddev_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_bondeddev_fail, teardown);
-
-	test_bredr("Bluetooth Device Set DISCOVERY_TIMEOUT - Fail",
-				&bt_dev_setprop_disctimeout_fail_test,
-				setup_enabled_adapter,
-				test_dev_setprop_disctimeout_fail, teardown);
-
 	test_bredr("Bluetooth Create Bond PIN - Success",
 					&bt_bond_create_pin_success_test,
 					setup_enabled_adapter,
-- 
1.9.1


  parent reply	other threads:[~2014-07-18  9:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18  9:50 [PATCH 1/9] emulator: Add flags param to advertise enabling function Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 2/9] android/tester-ng: Add remote device found case Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 3/9] android/tester-ng: Add get remote properties case Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 4/9] android/tester-ng: Replace action result with status Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 5/9] android/tester-ng: Add get remote props cases Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 6/9] android/tester-ng: Add get remote property failing cases Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 7/9] android/tester-ng: Add set remote friendly name success case Jakub Tyszkowski
2014-07-18  9:50 ` [PATCH 8/9] android/tester-ng: Add remote device set property fail cases Jakub Tyszkowski
2014-07-18  9:50 ` Jakub Tyszkowski [this message]
2014-07-18 11:37 ` [PATCH 1/9] emulator: Add flags param to advertise enabling function Szymon Janc
  -- strict thread matches above, loose matches on Subject: below --
2014-07-17  8:29 [PATCH 1/9] android/tester-ng: Use action and callback defining macros Jakub Tyszkowski
2014-07-17  8:29 ` [PATCH 9/9] android/tester: Remove old test cases Jakub Tyszkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1405677021-18877-9-git-send-email-jakub.tyszkowski@tieto.com \
    --to=jakub.tyszkowski@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox