Johan Hedberg
696e561c08
tools/l2cap-tester: Fix setting connectable for LE server tests
2014-03-17 22:46:40 +02:00
Johan Hedberg
ca7f6e5f92
tools/l2cap-tester: Add getpeername test case when not connected
2014-01-29 02:02:17 +02:00
Johan Hedberg
31bcaff56e
tools/l2cap-tester: Add MTU checks after successful connections
2014-01-26 00:09:42 +02:00
Johan Hedberg
36547e6aaf
tools/l2cap-tester: Fix error message for setsockopt failure
2014-01-26 00:09:42 +02:00
Anderson Lizardo
e34d1c0481
tools/l2cap-tester: Test setsockopt(BT_SECURITY) on LE client
...
Although setting a security level using setsockopt(BT_SECURITY) is
optional for LE sockets (it will default to doing
unencrypted/unauthenticated connection), it is a common operation and it
is done by BlueZ daemon and some tools.
2014-01-26 00:09:41 +02:00
Johan Hedberg
fbf6a7b793
tools/l2cap-tester: Add basic ATT Server test case
2014-01-23 15:19:58 +02:00
Johan Hedberg
de33c9823c
tools/l2cap-tester: Add basic ATT Client test case
2014-01-23 15:15:17 +02:00
Johan Hedberg
1189258e8e
tools/l2cap-tester: Fix checking for NULL test data
2014-01-23 15:15:00 +02:00
Johan Hedberg
f32b7f505c
tools/l2cap-tester: Fix indentation
2014-01-22 15:30:58 +02:00
Johan Hedberg
6edecd6f3d
tools/l2cap-tester: Implement basic command reject test for LE
2014-01-21 13:03:36 +02:00
Johan Hedberg
3c9caf5bdc
tools/l2cap-tester: Add support for custom responses for client tests
2014-01-21 12:52:18 +02:00
Johan Hedberg
dafd46e078
tools/l2cap-tester: Rename expect_req* to expect_cmd to allow reuse for client
2014-01-21 12:40:27 +02:00
Johan Hedberg
bbfd6c9576
tools/l2cap-tester: Rename send_req* to send_cmd to allow reuse for client
2014-01-21 12:38:39 +02:00
Johan Hedberg
5fa34138a4
tools/l2cap-tester: Add basic SMP test case
2014-01-20 16:26:33 +02:00
Johan Hedberg
e8f2e6710d
tools/l2cap-tester: Fix client PIN Code test case to actually work
2014-01-20 14:19:31 +02:00
Johan Hedberg
acad235b3c
client/l2cap-tester: Add basic PIN support
2014-01-20 14:15:17 +02:00
Johan Hedberg
39e1a8bf3c
tools/l2cap-tester: Merge client/server setup routines
2014-01-20 13:59:50 +02:00
Johan Hedberg
d3ca4bf9e9
tools/l2cap-tester: Remove unneeded server/client quirk for user confirmation
2014-01-20 13:46:49 +02:00
Johan Hedberg
e9eac31202
tools/l2cap-tester: Merge server/client test structs into one
2014-01-20 13:42:24 +02:00
Johan Hedberg
76685fe62f
tools/l2cap-tester: Add client test case using PIN Code
2014-01-20 13:26:17 +02:00
Johan Hedberg
d809148731
tools/l2cap-tester: Add BR/EDR client high security test case
2014-01-20 13:15:04 +02:00
Johan Hedberg
8c81f344bf
tools/l2cap-tester: Add user confirmation callback support
2014-01-20 13:15:04 +02:00
Johan Hedberg
6038dad985
tools/l2cap-tester: Add support for specifying security level
2014-01-20 13:14:28 +02:00
Johan Hedberg
4110e841dd
tools/l2cap-tester: Add server side security block test case
...
Note that this test will currently fail part of the time due to a race
on the kernel side. This is because the kernel doesn't wait for remote
feature resolution before processing incoming L2CAP signaling packets.
2014-01-14 13:19:22 +02:00
Johan Hedberg
fd25d1adb6
tools/l2cap-tester: Add two more Invalid PSM client tests for PSM 1
2014-01-14 10:00:45 +02:00
Johan Hedberg
c5e027cc26
tools/l2cap-tester: Add basic L2CAP client test with SSP enabled
2014-01-13 16:32:40 +02:00
Johan Hedberg
9e02000353
tools/l2cap-tester: Fix missing pairable setting enabling
2014-01-13 16:32:40 +02:00
Johan Hedberg
b2afb99935
tools/l2cap-tester: Add support for enabling SSP for tests
2014-01-13 16:32:39 +02:00
Marcin Kraglak
85771054da
tools/l2cap-tester: Remove not necessary bthost_set_server_psm
...
This function can be replaced with bthost_add_l2cap_server().
2013-12-20 13:02:31 +02:00
Marcin Kraglak
07cab19b2a
tools/l2cap-tester: Fix memory leak
...
Set close_on_unref on new created GIOChannel and don't close
its file descriptor.
126 (120 direct, 6 indirect) bytes in 1 blocks aredefinitely
lost in loss record 24 of 28
at 0x4A06409: malloc (in/usr/lib64/valgrind/vgpreload_memcheck
-amd64-linux.so)
by 0x3C9564D88E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3C956881F4: g_io_channel_unix_new (in/usr/lib64/libglib-
2.0.so.0.3600.3)
by 0x402A5A: l2cap_listen_cb (l2cap-tester.c:774)
by 0x3C95647DF5: g_main_context_dispatch (in/usr/lib64/
libglib-2.0.so.0.3600.3)
by 0x3C95648147: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
by 0x3C95648549: g_main_loop_run
(in/usr/lib64/libglib-2.0.so.0.3600.3)
by 0x40A67C: tester_run (tester.c:784)
by 0x4026A9: main (l2cap-tester.c:991)
2013-12-20 12:19:15 +02:00
Johan Hedberg
845a7bdf82
tools/l2cap-tester: Fix checking for read() return values
2013-12-20 10:29:28 +02:00
Johan Hedberg
33eb51c937
tools/l2cap-tester: Fix checking for write() return values
2013-12-20 10:26:18 +02:00
Marcin Kraglak
a663775dbf
tools/l2cap_tester: Add write server test case
...
These test case send data from local server to remote client.
2013-12-20 09:40:13 +02:00
Marcin Kraglak
89095eae05
tools/l2cap_tester: Add read server test case
...
This test checks data transfer from remote client to server.
2013-12-20 09:40:11 +02:00
Marcin Kraglak
120923cecd
tools/l2cap_tester: Add write client test case
...
This test case write data from client to remote server.
2013-12-20 09:40:10 +02:00
Marcin Kraglak
1746f4f6c5
tools/l2cap_tester: Add read client test case
...
This test case send data from remote device to client.
It verifies if data is passed corerctly through L2CAP socket.
2013-12-20 09:40:08 +02:00
Andrei Emeltchenko
e13bf62f66
l2cap-tester: Close sk in error path
...
This fixes resource leak warnings.
2013-12-12 09:57:08 +02:00
Johan Hedberg
44b3d5e480
tools/l2cap-server: Add basic LE Connect server test case
2013-12-01 19:18:23 +02:00
Johan Hedberg
3651a17f88
tools/l2cap-tester: Add basic LE client test cases
2013-12-01 19:18:23 +02:00
Johan Hedberg
8071e96a3e
tools/l2cap-tester: Fix command reject expected responses
...
Invalid CID responses also contain the CID(s) that were invalid.
2013-10-23 14:11:21 +03:00
Johan Hedberg
6d98c73b9c
tools/l2cap-tester: Fix closing server sockets in time
...
We should use the teardown function instead of the destroy function for
closing server sockets since otherwise tests may conflict with each
other.
2013-10-06 18:39:33 +03:00
Johan Hedberg
9debd78bfa
tools/l2cap-tester: Make setup_powered_server() enable LE advertising when necessary
2013-10-03 14:27:49 +03:00
Johan Hedberg
a98b18079c
tools/l2cap-tester: Rename generic test_bredr_server() to test_server()
2013-10-03 14:27:42 +03:00
Johan Hedberg
82574c4fee
tools/l2cap-tester: Fix passing correct psm to create_l2cap_sock()
2013-10-03 14:27:34 +03:00
Johan Hedberg
1faed0b2f5
tools/l2cap-tester: Separate server and client setup routines
2013-10-03 14:27:25 +03:00
Johan Hedberg
f203ef5eae
tools/l2cap-tester: Add LE support
2013-10-03 14:24:38 +03:00
Johan Hedberg
5d8b3ba494
emulator/bthost: Add support for creating LE connections
2013-09-25 13:51:11 +03:00
Johan Hedberg
f7ab1f6078
tools/l2cap-tester: Fix using right hciemu type
2013-09-19 20:41:50 +03:00
Johan Hedberg
bd97ccad97
tools/l2cap-tester: Add invalid config request server test
2013-09-17 08:05:54 +01:00
Johan Hedberg
6444872af4
tools/l2cap-tester: Add invalid CID server test case
2013-09-17 07:56:48 +01:00