Commit Graph

1825 Commits

Author SHA1 Message Date
Marcel Holtmann
ceaf091426 tools: Add command to clear long term keys 2014-02-15 15:42:45 -08:00
Marcel Holtmann
849cc4f912 tools: Use shared btsnoop.h header file for utility 2014-02-11 11:55:06 -08:00
Johan Hedberg
eda66f7074 tools/smp-tester: Fix expected key distribution to match latest bluetooth-next 2014-02-03 07:44:18 +02:00
Marcel Holtmann
c60216b08b tools: Add command to btmgmt to enable/disable debug keys setting 2014-02-02 00:02:34 -08:00
Marcel Holtmann
9f79f00116 tools: Decode debug keys feature within btmgmt info command 2014-02-01 23:53:42 -08:00
Marcel Holtmann
373c0231d2 tools: Remove test for invalid key_type for long term keys 2014-02-01 23:08:59 -08:00
Marcel Holtmann
b5321e29db tools: Adjust mgmt-tester to new default supported features 2014-02-01 23:06:19 -08:00
Marcel Holtmann
dc5be1d094 tools: Correct a few typos in mgmt-tester 2014-01-31 18:31:23 -08:00
Johan Hedberg
ca7f6e5f92 tools/l2cap-tester: Add getpeername test case when not connected 2014-01-29 02:02:17 +02:00
Marcel Holtmann
1d2504d871 tools: Make btio/btio.h include local 2014-01-25 20:31:48 -08:00
Marcel Holtmann
a6dc9bddad tools: Use full include path for header files 2014-01-25 20:10:58 -08:00
Marcel Holtmann
857421a6a8 tools: Use direct include from shared files in src directory 2014-01-25 16:58:24 -08: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
Marcel Holtmann
007ad371c7 tools: Use be32toh, htobe32, be64toh and htobe64 functions 2014-01-24 21:18:17 -08:00
Marcel Holtmann
231301ca1a hcidump: Use be32toh, htobe32, be64toh and htobe64 functions 2014-01-24 21:16:27 -08:00
Andrei Emeltchenko
e27ca4c13d btproxy: Fix resource leak
Close file descriptors before leaving.
2014-01-23 15:24:29 +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
Marcel Holtmann
8b8a5315a9 tools: Close file descriptors in the calling function 2014-01-22 07:53:35 -08:00
Andrei Emeltchenko
d8af57d80a btproxy: Fix resource leak
Close file descriptors if setup_proxy fails.
2014-01-22 15:50:13 +02:00
Johan Hedberg
f32b7f505c tools/l2cap-tester: Fix indentation 2014-01-22 15:30:58 +02:00
Johan Hedberg
1a9051e9ee Rename glib-helper to uuid-helper 2014-01-21 14:12:47 +02:00
Johan Hedberg
4cae6340cf tools/btmgmt: Remove unneeded GLib include 2014-01-21 13:59:14 +02:00
Johan Hedberg
a10af97063 tools/btmgmt: Remove src/eir.c dependency 2014-01-21 13:59:14 +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
a28de5e990 tools/mgmt-tester: Add some SSP Pairing Acceptor test cases 2014-01-20 11:27:11 +02:00
Johan Hedberg
bfe073141d tools/mgmt-tester: Add some Link Security Pairing Acceptor test cases 2014-01-20 11:10:24 +02:00
Johan Hedberg
472cc0a910 tools/rfcomm-tester: Clean up coding style 2014-01-16 12:23:16 +02:00
Johan Hedberg
dda90d0739 tools/rfcomm-tester: Don't enable SSP (as it's not necessary) 2014-01-16 12:23:15 +02:00
Johan Hedberg
809b0c2462 tools/rfcomm-tester: Only BR/EDR is relevant for RFCOMM 2014-01-16 12:23:15 +02:00
Johan Hedberg
33dcb461da tools/rfcomm-tester: Update callback to match new API 2014-01-16 12:23:15 +02:00
Marcin Kraglak
5574590647 tools/rfcomm-tester: Add RFCOMM server negative test case
This test case create RFCOMM server and reject incoming connection
from bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
b0fee95e07 tools/rfcomm-tester: Add RFCOMM server test case
This test case create RFCOMM server and accept incoming connection from
client bthost.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
96283b9a5b tools/rfcomm-tester: Add Connection refused client test case
This will test RFCOMM client connection to wrong server channel.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
292cd05057 tools/rfcomm-tester: Implement client test case
This will test RFCOMM client connection.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
9b36ebbd23 tools/rfcomm-tester: Add basic rfcomm test case
This test case verifies creating rfcomm socket.
2014-01-16 12:23:15 +02:00
Marcin Kraglak
11bd593fd7 tools/rfcomm-tester: Initial version of rfcomm-tester
Add rfcomm-tester to tree.
2014-01-16 12:23:15 +02:00
Marcel Holtmann
81294e5f5a tools: Remove --smd option from proxy utility 2014-01-16 00:27:30 -08:00
Johan Hedberg
5b3860aac1 tools/mgmt-tester: Add auth failure mgmt event to pair_device test conditions 2014-01-15 15:28:09 +02:00
Johan Hedberg
21acd8257b tools/mgmt-tester: Add new link key mgmt event to pair_device test conditions 2014-01-15 15:28:09 +02:00
Johan Hedberg
10f21eb69f tools/mgmt-tester: Add basic pairing acceptor failure test 2014-01-15 15:21:29 +02:00
Johan Hedberg
120d0577b6 tools/mgmt-tester: Wait for link key event in pairing acceptor test 2014-01-15 15:21:29 +02:00
Johan Hedberg
b2c6b75fbf tools/mgmt-tester: Allow checking for mgmt events in pairing acceptor tests 2014-01-15 15:21:29 +02:00
Johan Hedberg
0d350f379f tools/mgmt-tester: Make expected mgmt event content checking optional 2014-01-15 15:21:29 +02:00
Johan Hedberg
fa8aa7b269 tools/mgmt-tester: Add simple pairing acceptor test case 2014-01-15 14:48:37 +02:00
Johan Hedberg
3b7d6cae7b tools/mgmt-tester: Include PIN callback as a necessary test condition 2014-01-15 14:48:12 +02:00
Johan Hedberg
126be2509f tools/mgmt-tester: Fix BR/EDR disable callback if it's the last setting changed 2014-01-15 12:27:30 +02:00
Marcel Holtmann
c99f14615e tools: Do not modify the available features 2014-01-14 13:43:12 -08:00
Andrei Emeltchenko
6edaf7105e l2test: Use correct buffer size 2014-01-14 13:25:21 +02:00
Andrei Emeltchenko
605739bdb5 scotest: Use correct buffer size 2014-01-14 13:25:21 +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
Marcel Holtmann
6f10ace263 tools: Add support activating/deactivating traces 2014-01-14 03:14:38 -08: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
Marcel Holtmann
5bf4196468 shared: Add address and features configuration support 2014-01-13 22:57:14 -08:00
Marcel Holtmann
54b9036ef9 tools: Add Bluemoon configuration utility 2014-01-13 20:57:10 -08:00
Johan Hedberg
d31e9cf074 tools/mgmt-tester: Add basic non-pairable SSP test case 2014-01-13 17:00:31 +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
Johan Hedberg
b976acfe9a tools/mgmt-tester: Add Security Mode 3 rejection test cases 2014-01-13 14:38:59 +02:00
Johan Hedberg
180e202c1a tools/mgmt-tester: Add basic SSP rejection test cases 2014-01-13 14:32:26 +02:00
Johan Hedberg
e8f2389065 tools/mgmt-tester: Add remote PIN rejection test case 2014-01-13 14:00:14 +02:00
Johan Hedberg
aa7df805bf tools/mgmt-tester: Add basic PIN code rejection test case 2014-01-13 13:58:27 +02:00
Johan Hedberg
889221acac tools/mgmt-tester: Separate client (bthost) pairing parameters 2014-01-13 13:35:58 +02:00
Johan Hedberg
b42e5fcbf8 tools/mgmt-tester: Add basinc User Confirmation SSP test case 2014-01-13 13:24:17 +02:00
Sebastian Chlad
1d7c6a807d tools/bluetooth-player: check path validity
Bluetooth-player change-folder cmd approves any argument however it
can be and then should a valid path only. Failing in providing
a valid path crashes bluetooth-player thus argument should be
checked if it's a valid path.
2014-01-13 12:12:59 +02:00
Marcel Holtmann
20016a169c tools: Add first controller test case from HCI test specification 2014-01-13 00:52:30 -08:00
Szymon Janc
5ba9b51e8c tools: Stop converting file if write failed in seq2bseq
If write failed converted file would be broken. This make sure that
user is being informed about it.
2014-01-13 10:48:11 +02:00
Szymon Janc
3dc5c7866b tools: Fix build error in seq2bseq
Don't ignore return value of write. This fix following build error on
Ubuntu:

tools/seq2bseq.c: In function ‘convert_line’:
tools/seq2bseq.c:52:8: error: ignoring return value of ‘write’,
     declared with attribute warn_unused_result [-Werror=unused-result]
   write(fd, &val, 1);
2014-01-13 10:47:36 +02:00
Andrei Emeltchenko
37d5f0be31 tools/btproxy: Fix double close
setup_streams() already makes close()
2014-01-13 10:41:59 +02:00
Marcel Holtmann
138f1386c4 tools: Add test case for creating HCI connections 2014-01-12 19:46:06 -08:00
Marcel Holtmann
4e8ff0b5c8 tools: Check status of HCI Inquiry Complete event 2014-01-12 17:31:32 -08:00
Marcel Holtmann
b39f74c2d8 tools: Add simple Limited Inquiry test case to HCI testing 2014-01-12 17:28:31 -08:00
Marcel Holtmann
9e6322ab7b tools: Add informational HCI commands to test coverage 2014-01-12 16:42:46 -08:00
Marcel Holtmann
7ba4515fb6 tools: Add skeleton for HCI controller testing 2014-01-12 16:00:47 -08:00
Marcel Holtmann
d94debd256 tools: Remove GLib mainloop requirement from btmgmt utility 2014-01-12 02:23:01 -08:00
Marcel Holtmann
505693c878 tools: Change MSBC into mSBC for test case descriptions 2014-01-11 20:21:40 -08:00
Marcel Holtmann
b17127349f tools: Add management test cases for secure connections support 2014-01-11 20:12:50 -08:00
Marcel Holtmann
67269189ca tools: Add support for setting Secure Connection Only mode 2014-01-11 16:02:48 -08:00
Marcel Holtmann
fc217fc53f tools: Add firmware conversion utility 2014-01-11 00:50:41 -08:00
Marcel Holtmann
267247507b tools: Make use of generic endian conversion macros 2014-01-10 13:06:08 -08:00
Johan Hedberg
64488fbf77 tools/mgmt-tester: Add basic SSP test case 2014-01-10 16:05:09 +02:00
Johan Hedberg
7a01a6d36d tools/mgmt-tester: Add support for enabling client side SSP 2014-01-10 16:05:06 +02:00
Johan Hedberg
427df23bb2 tools/mgmt-tester: Add support for runtime based HCI data checks 2014-01-10 16:05:05 +02:00