* RE: iso-tester: Add test for bcast receiver PA bind
2023-10-16 15:47 [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2023-10-16 17:19 ` bluez.test.bot
0 siblings, 0 replies; 7+ messages in thread
From: bluez.test.bot @ 2023-10-16 17:19 UTC (permalink / raw)
To: linux-bluetooth, iulia.tanasescu
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=793606
---Test result---
Test Summary:
CheckPatch PASS 0.39 seconds
GitLint PASS 0.24 seconds
BuildEll PASS 28.44 seconds
BluezMake PASS 843.08 seconds
MakeCheck PASS 11.77 seconds
MakeDistcheck PASS 177.99 seconds
CheckValgrind PASS 271.57 seconds
CheckSmatch PASS 366.01 seconds
bluezmakeextell PASS 117.85 seconds
IncrementalBuild PASS 725.84 seconds
ScanBuild PASS 1100.28 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: iso-tester: Add test for bcast receiver PA bind
2023-10-18 14:36 [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2023-10-18 16:17 ` bluez.test.bot
0 siblings, 0 replies; 7+ messages in thread
From: bluez.test.bot @ 2023-10-18 16:17 UTC (permalink / raw)
To: linux-bluetooth, iulia.tanasescu
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=794362
---Test result---
Test Summary:
CheckPatch PASS 0.55 seconds
GitLint PASS 0.34 seconds
BuildEll PASS 28.51 seconds
BluezMake PASS 901.15 seconds
MakeCheck PASS 12.44 seconds
MakeDistcheck PASS 178.47 seconds
CheckValgrind PASS 275.42 seconds
CheckSmatch PASS 364.87 seconds
bluezmakeextell PASS 118.69 seconds
IncrementalBuild PASS 749.85 seconds
ScanBuild PASS 1114.30 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: iso-tester: Add test for bcast receiver PA bind
2023-10-19 14:50 [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2023-10-19 16:36 ` bluez.test.bot
0 siblings, 0 replies; 7+ messages in thread
From: bluez.test.bot @ 2023-10-19 16:36 UTC (permalink / raw)
To: linux-bluetooth, iulia.tanasescu
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=794779
---Test result---
Test Summary:
CheckPatch PASS 0.41 seconds
GitLint PASS 0.25 seconds
BuildEll PASS 33.82 seconds
BluezMake PASS 1161.27 seconds
MakeCheck PASS 13.17 seconds
MakeDistcheck PASS 221.42 seconds
CheckValgrind PASS 339.20 seconds
CheckSmatch PASS 467.63 seconds
bluezmakeextell PASS 146.93 seconds
IncrementalBuild PASS 1055.04 seconds
ScanBuild PASS 1431.62 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH BlueZ 0/1] iso-tester: Add test for bcast receiver PA bind
@ 2023-10-24 11:03 Iulia Tanasescu
2023-10-24 11:03 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
2023-10-24 18:50 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 7+ messages in thread
From: Iulia Tanasescu @ 2023-10-24 11:03 UTC (permalink / raw)
To: linux-bluetooth
Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
vlad.pruteanu, andrei.istodorescu, luiz.dentz, Iulia Tanasescu
This patch adds a test for binding a Broadcast Receiver to a number of
BISes after PA sync has been established.
This test depends on the kernel update introduced by
[PATCH v3 0/1] Bluetooth: ISO: Allow binding a PA sync socket.
Iulia Tanasescu (1):
iso-tester: Add test for bcast receiver PA bind
tools/iso-tester.c | 70 +++++++++++++++++++++++++++++++++-------------
1 file changed, 51 insertions(+), 19 deletions(-)
base-commit: 0c757e8eeef69ff2b1eefa59e590f171c9fe1c88
--
2.39.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH BlueZ 1/1] iso-tester: Add test for bcast receiver PA bind
2023-10-24 11:03 [PATCH BlueZ 0/1] iso-tester: Add test for bcast receiver PA bind Iulia Tanasescu
@ 2023-10-24 11:03 ` Iulia Tanasescu
2023-10-24 12:26 ` bluez.test.bot
2023-10-24 18:50 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
1 sibling, 1 reply; 7+ messages in thread
From: Iulia Tanasescu @ 2023-10-24 11:03 UTC (permalink / raw)
To: linux-bluetooth
Cc: claudia.rosu, mihai-octavian.urzica, silviu.barbulescu,
vlad.pruteanu, andrei.istodorescu, luiz.dentz, Iulia Tanasescu
This adds a test for binding a Broadcast Receiver to a number of
BISes after PA sync has been established.
---
tools/iso-tester.c | 70 +++++++++++++++++++++++++++++++++-------------
1 file changed, 51 insertions(+), 19 deletions(-)
diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index 1337229e1..ae98af775 100644
--- a/tools/iso-tester.c
+++ b/tools/iso-tester.c
@@ -412,7 +412,8 @@ struct iso_client_data {
uint8_t pkt_status;
const uint8_t *base;
size_t base_len;
- bool bcast_defer_accept;
+ bool listen_bind;
+ bool pa_bind;
};
static void mgmt_debug(const char *str, void *user_data)
@@ -1143,7 +1144,7 @@ static const struct iso_client_data bcast_16_2_1_recv_defer = {
.recv = &send_16_2_1,
.bcast = true,
.server = true,
- .bcast_defer_accept = true,
+ .listen_bind = true,
};
static const struct iso_client_data bcast_16_2_1_recv_defer_no_bis = {
@@ -1152,7 +1153,15 @@ static const struct iso_client_data bcast_16_2_1_recv_defer_no_bis = {
.defer = true,
.bcast = true,
.server = true,
- .bcast_defer_accept = false,
+};
+
+static const struct iso_client_data bcast_16_2_1_recv_defer_pa_bind = {
+ .qos = QOS_IN_16_2_1,
+ .expect_err = 0,
+ .defer = true,
+ .bcast = true,
+ .server = true,
+ .pa_bind = true,
};
static const struct iso_client_data bcast_ac_12 = {
@@ -1996,6 +2005,7 @@ static gboolean iso_connect(GIOChannel *io, GIOCondition cond,
if (err < 0) {
tester_warn("Can't get socket option : %s (%d)",
strerror(errno), errno);
+ data->step = 0;
tester_test_failed();
return FALSE;
}
@@ -2008,6 +2018,7 @@ static gboolean iso_connect(GIOChannel *io, GIOCondition cond,
if (!ret) {
tester_warn("Unexpected QoS parameter");
+ data->step = 0;
tester_test_failed();
return FALSE;
}
@@ -2028,6 +2039,7 @@ static gboolean iso_connect(GIOChannel *io, GIOCondition cond,
tester_warn("Expect error: %s (%d) != %s (%d)",
strerror(-isodata->expect_err),
-isodata->expect_err, strerror(-err), -err);
+ data->step = 0;
tester_test_failed();
} else {
data->step--;
@@ -2279,7 +2291,7 @@ static int listen_iso_sock(struct test_data *data)
bacpy(&addr->iso_bc->bc_bdaddr, (void *) dst);
addr->iso_bc->bc_bdaddr_type = BDADDR_LE_PUBLIC;
- if (!isodata->defer || isodata->bcast_defer_accept) {
+ if (!isodata->defer || isodata->listen_bind) {
addr->iso_bc->bc_num_bis = 1;
addr->iso_bc->bc_bis[0] = 1;
}
@@ -2382,9 +2394,28 @@ static bool iso_defer_accept(struct test_data *data, GIOChannel *io)
char c;
struct pollfd pfd;
const struct iso_client_data *isodata = data->test_data;
+ struct sockaddr_iso *addr = NULL;
sk = g_io_channel_unix_get_fd(io);
+ if (isodata->pa_bind) {
+ addr = malloc(sizeof(*addr) + sizeof(*addr->iso_bc));
+ memset(addr, 0, sizeof(*addr) + sizeof(*addr->iso_bc));
+ addr->iso_family = AF_BLUETOOTH;
+
+ addr->iso_bc->bc_num_bis = 1;
+ addr->iso_bc->bc_bis[0] = 1;
+
+ if (bind(sk, (struct sockaddr *) addr, sizeof(*addr) +
+ sizeof(*addr->iso_bc)) < 0) {
+ tester_warn("bind: %s (%d)", strerror(errno), errno);
+ free(addr);
+ return false;
+ }
+
+ free(addr);
+ }
+
memset(&pfd, 0, sizeof(pfd));
pfd.fd = sk;
pfd.events = POLLOUT;
@@ -2405,14 +2436,12 @@ static bool iso_defer_accept(struct test_data *data, GIOChannel *io)
data->io = io;
- if (isodata->bcast) {
+ if (isodata->bcast)
data->io_id[0] = g_io_add_watch(io, G_IO_IN,
iso_accept_cb, NULL);
- data->step++;
- } else {
+ else
data->io_id[0] = g_io_add_watch(io, G_IO_OUT,
iso_connect_cb, NULL);
- }
return true;
}
@@ -2445,20 +2474,10 @@ static gboolean iso_accept_cb(GIOChannel *io, GIOCondition cond,
}
if (isodata->bcast) {
- if (data->step > 1)
- data->step--;
- else
- data->step++;
-
iso_connect(io, cond, user_data);
if (!data->step)
return false;
-
- if (!isodata->bcast_defer_accept) {
- tester_test_passed();
- return false;
- }
}
if (!iso_defer_accept(data, io)) {
@@ -2746,6 +2765,15 @@ static void test_bcast_recv(const void *test_data)
setup_listen(data, 0, iso_accept_cb);
}
+static void test_bcast_recv_defer(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ data->step = 1;
+
+ setup_listen(data, 0, iso_accept_cb);
+}
+
static void test_connect2_suspend(const void *test_data)
{
test_connect2(test_data);
@@ -3065,11 +3093,15 @@ int main(int argc, char *argv[])
test_iso("ISO Broadcaster Receiver Defer - Success",
&bcast_16_2_1_recv_defer,
setup_powered,
- test_bcast_recv);
+ test_bcast_recv_defer);
test_iso("ISO Broadcaster Receiver Defer No BIS - Success",
&bcast_16_2_1_recv_defer_no_bis,
setup_powered,
test_bcast_recv);
+ test_iso("ISO Broadcaster Receiver Defer PA Bind - Success",
+ &bcast_16_2_1_recv_defer_pa_bind,
+ setup_powered,
+ test_bcast_recv_defer);
test_iso("ISO Broadcaster AC 12 - Success", &bcast_ac_12, setup_powered,
test_bcast);
--
2.39.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* RE: iso-tester: Add test for bcast receiver PA bind
2023-10-24 11:03 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2023-10-24 12:26 ` bluez.test.bot
0 siblings, 0 replies; 7+ messages in thread
From: bluez.test.bot @ 2023-10-24 12:26 UTC (permalink / raw)
To: linux-bluetooth, iulia.tanasescu
[-- Attachment #1: Type: text/plain, Size: 948 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=795982
---Test result---
Test Summary:
CheckPatch PASS 0.51 seconds
GitLint PASS 0.32 seconds
BuildEll PASS 34.73 seconds
BluezMake PASS 1039.19 seconds
MakeCheck PASS 14.24 seconds
MakeDistcheck PASS 218.70 seconds
CheckValgrind PASS 331.71 seconds
CheckSmatch PASS 436.15 seconds
bluezmakeextell PASS 143.71 seconds
IncrementalBuild PASS 880.74 seconds
ScanBuild PASS 1347.36 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH BlueZ 0/1] iso-tester: Add test for bcast receiver PA bind
2023-10-24 11:03 [PATCH BlueZ 0/1] iso-tester: Add test for bcast receiver PA bind Iulia Tanasescu
2023-10-24 11:03 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
@ 2023-10-24 18:50 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 7+ messages in thread
From: patchwork-bot+bluetooth @ 2023-10-24 18:50 UTC (permalink / raw)
To: Iulia Tanasescu
Cc: linux-bluetooth, claudia.rosu, mihai-octavian.urzica,
silviu.barbulescu, vlad.pruteanu, andrei.istodorescu, luiz.dentz
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 24 Oct 2023 14:03:44 +0300 you wrote:
> This patch adds a test for binding a Broadcast Receiver to a number of
> BISes after PA sync has been established.
>
> This test depends on the kernel update introduced by
> [PATCH v3 0/1] Bluetooth: ISO: Allow binding a PA sync socket.
>
> Iulia Tanasescu (1):
> iso-tester: Add test for bcast receiver PA bind
>
> [...]
Here is the summary with links:
- [BlueZ,1/1] iso-tester: Add test for bcast receiver PA bind
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a17455cdcd21
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-10-24 18:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-24 11:03 [PATCH BlueZ 0/1] iso-tester: Add test for bcast receiver PA bind Iulia Tanasescu
2023-10-24 11:03 ` [PATCH BlueZ 1/1] " Iulia Tanasescu
2023-10-24 12:26 ` bluez.test.bot
2023-10-24 18:50 ` [PATCH BlueZ 0/1] " patchwork-bot+bluetooth
-- strict thread matches above, loose matches on Subject: below --
2023-10-19 14:50 [PATCH BlueZ 1/1] " Iulia Tanasescu
2023-10-19 16:36 ` bluez.test.bot
2023-10-18 14:36 [PATCH BlueZ 1/1] " Iulia Tanasescu
2023-10-18 16:17 ` bluez.test.bot
2023-10-16 15:47 [PATCH BlueZ 1/1] " Iulia Tanasescu
2023-10-16 17:19 ` bluez.test.bot
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 NNTP newsgroup(s).