Linux-Bluetooth Archive mirror
 help / color / mirror / Atom feed
From: Pauli Virtanen <pav@iki.fi>
To: linux-bluetooth@vger.kernel.org
Cc: Pauli Virtanen <pav@iki.fi>
Subject: [PATCH BlueZ 2/3] tools: disable running TX timestamping tests for now
Date: Tue, 14 May 2024 23:41:49 +0300	[thread overview]
Message-ID: <2913ef3da3faabea047ff977c579329a873cbff4.1715719254.git.pav@iki.fi> (raw)
In-Reply-To: <d832a406db3b7f8509fdc67d0e9f2775c6ea7b6d.1715719254.git.pav@iki.fi>

Disable the TX timestamping related tests for now, as the feature will
need some further work.
---
 tools/iso-tester.c   | 5 +++++
 tools/l2cap-tester.c | 6 ++++++
 tools/sco-tester.c   | 6 ++++++
 3 files changed, 17 insertions(+)

diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index d54fa56ec..e80c2159c 100644
--- a/tools/iso-tester.c
+++ b/tools/iso-tester.c
@@ -690,6 +690,11 @@ static void test_pre_setup(const void *test_data)
 	struct test_data *data = tester_get_data();
 	const struct iso_client_data *isodata = test_data;
 
+	if (isodata && isodata->so_timestamping) {
+		if (tester_pre_setup_skip_by_default())
+			return;
+	}
+
 	data->mgmt = mgmt_new_default();
 	if (!data->mgmt) {
 		tester_warn("Failed to setup management interface");
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index 02d1571d2..c34080654 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
@@ -214,6 +214,12 @@ static void read_index_list_callback(uint8_t status, uint16_t length,
 static void test_pre_setup(const void *test_data)
 {
 	struct test_data *data = tester_get_data();
+	const struct l2cap_data *l2data = test_data;
+
+	if (l2data && l2data->so_timestamping) {
+		if (tester_pre_setup_skip_by_default())
+			return;
+	}
 
 	data->mgmt = mgmt_new_default();
 	if (!data->mgmt) {
diff --git a/tools/sco-tester.c b/tools/sco-tester.c
index ff8a3613f..a56cb9153 100644
--- a/tools/sco-tester.c
+++ b/tools/sco-tester.c
@@ -197,6 +197,12 @@ static void read_index_list_callback(uint8_t status, uint16_t length,
 static void test_pre_setup(const void *test_data)
 {
 	struct test_data *data = tester_get_data();
+	const struct sco_client_data *scodata = test_data;
+
+	if (scodata && scodata->so_timestamping) {
+		if (tester_pre_setup_skip_by_default())
+			return;
+	}
 
 	data->mgmt = mgmt_new_default();
 	if (!data->mgmt) {
-- 
2.45.0


  reply	other threads:[~2024-05-14 20:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-14 20:41 [PATCH BlueZ 1/3] shared/tester: add ability to skip tests unless explicitly selected Pauli Virtanen
2024-05-14 20:41 ` Pauli Virtanen [this message]
2024-05-14 20:41 ` [PATCH BlueZ 3/3] Revert "mgmt-tester: update for Poll Errqueue experimental fature" Pauli Virtanen
2024-05-14 23:29 ` [BlueZ,1/3] shared/tester: add ability to skip tests unless explicitly selected bluez.test.bot
2024-05-15 17:40 ` [PATCH BlueZ 1/3] " patchwork-bot+bluetooth

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=2913ef3da3faabea047ff977c579329a873cbff4.1715719254.git.pav@iki.fi \
    --to=pav@iki.fi \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).