Commit Graph

40 Commits

Author SHA1 Message Date
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
Johan Hedberg
fd6f39b0f2 tools/l2cap-tester: Fix sending right req code in tests 2013-09-17 07:54:26 +01:00
Johan Hedberg
a4ddde38bf tools/l2cap-tester: Add expected response data to nval PDU test 2013-09-17 07:38:30 +01:00
Johan Hedberg
c682b0872f tools/l2cap-tester: Use PSM 0x1001 instead of 0x0001
Using the SDP PSM isn't a good idea since bluetoothd could be running
and interfere with the test results.
2013-05-31 22:17:02 +03:00
Johan Hedberg
157afa4ebd tools/l2cap-tester: Add invalid PSM client test case 2013-05-29 14:33:59 +03:00
Johan Hedberg
8b112301e5 tools/l2cap-tester: Refactor to enable per-test test data 2013-05-29 13:58:48 +03:00
Johan Hedberg
dc2ad05587 tools/l2cap-tester: Add invalid L2CAP PDU test case 2013-05-29 12:16:55 +03:00
Johan Hedberg
1cb6d14459 emulator: Add callback mechanism for L2CAP requests 2013-05-29 12:10:37 +03:00
Johan Hedberg
391dbdefa0 emulator: Make bthost L2CAP sender strictly only for requests 2013-05-29 11:05:32 +03:00
Johan Hedberg
33308f4eb0 tools/l2cap-tester: Take advantage of the new hciemu_client_get_host API 2013-05-29 10:34:33 +03:00
Johan Hedberg
6a4f5ce413 tools/l2cap-tester: Add basic server socket test case 2013-05-28 11:14:16 +03:00
Johan Hedberg
09bea07aaf tools/l2cap-tester: Add basic L2CAP connect failure test case 2013-05-27 12:03:24 +03:00
Johan Hedberg
ee37ebe7d0 tools/l2cap-tester: Refactor L2CAP socket functions 2013-05-27 11:56:31 +03:00
Johan Hedberg
55e458e9ad tools/l2cap-tester: Add basic connect test case 2013-05-27 11:48:23 +03:00
Johan Hedberg
3f86576f48 tools/l2cap-tester: Add connectable enabling for hciemu client 2013-05-25 18:26:18 -07:00
Johan Hedberg
dd61a43f45 tools: Add L2CAP end-to-end test tool 2013-05-24 14:30:37 -07:00