summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test/simple-endpoint: Add support for LC3 endpointsLuiz Augusto von Dentz2022-08-291-0/+17
| | | | This adds support for LC3 sink/source endpoints.
* test: changes for Python3Diego Rondini2022-04-198-14/+14
| | | | | | | Remove some leftover usage of Python2 code. In particular replace iteritems() with items() to fix the following error: AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'
* test/mesh: Add support for testing more OOB authBrian Gix2021-05-191-0/+23
| | | | | | | To pass IOP testing, we need to be able to support Input OOB and Out of band Public Key exchange, This patch adds agent methods to support those capabilities, but are turned off because the test code uses insecure fixed values instead of randomized values.
* test: Fix AdvMonitor RSSI filter propertiesManish Mandlik2021-03-301-7/+8
| | | | | | | | | | | Update the creation of Advertisement Monitor object as per the decoupled RSSIThresholdsAndTimers strucure. More info: doc/advertisement-monitor-api.txt Reviewed-by: apusaka@chromium.org Reviewed-by: howardchung@chromium.org Reviewed-by: mcchou@chromium.org Signed-off-by: Manish Mandlik <mmandlik@google.com>
* test/test-mesh: Generate correct value for Device UUIDInga Stotland2021-02-161-4/+3
| | | | | This ensures that the value of Device UUID when invoking Join method is compliant with RFC 4122.
* test: add test app for Advertisement Monitor APIManish Mandlik2020-12-171-0/+402
| | | | | | | | | | | | The python test app to test working of the Advertisement Monitor API. This app: - registers itself with bluez by invoking the RegisterMonitor with the app root path - exposes multiple monitor objects with both valid and invalid monitor parameters - implements Activate/Release/DeviceFound/DeviceLost methods on the monitor object
* test: Add test app for Battery Provider APISonny Sasaka2020-11-301-0/+232
| | | | | | | The python test app simulates an application registering to BlueZ as a Battery Provider providing three fake batteries drained periodically. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
* test: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-2137-14/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 35 License: LGPL-2.1-or-later test/agent.py test/bluezutils.py test/dbusdef.py test/example-advertisement test/example-endpoint test/example-gatt-client test/example-gatt-server test/example-player test/exchange-business-cards test/ftp-client test/get-managed-objects test/get-obex-capabilities test/list-devices test/list-folders test/map-client test/monitor-bluetooth test/opp-client test/pbap-client test/sap_client.py test/simple-endpoint test/simple-obex-agent test/simple-player test/test-adapter test/test-device test/test-discovery test/test-gatt-profile test/test-health test/test-health-sink test/test-hfp test/test-manager test/test-mesh test/test-nap test/test-network test/test-profile test/test-sap-server
* test/test-mesh: Add "options" to Send/PublishInga Stotland2020-08-261-2/+9
| | | | | This adds a new dictionary paramenter (empty by default) when invoking Send() or Publish() methods.
* test/test-mesh: Add options to "Models" propertyInga Stotland2020-07-011-9/+12
| | | | | This adds options dictionary to "Models" property to stay in sync with mesh-api changes.
* mesh: Add "node is busy" check for Leave() & Attach()Inga Stotland2020-06-101-2/+0
| | | | | | | | | | | | | | | This introduces the following behavior change for those methods on Network interface that specify node token as an input parameter Leave() method: If Leave method is called for a node that is being processed as a result of a Create, Import, Join or Attach method calls in progress, node removal is not allowed and org.bluez.mesh.Error.Busy error is returned. Attach() method: If Attach method is called for a node that is being processed as a result of a Create, Import or Join method calls in progress, node attachment is not allowed and org.bluez.mesh.Error.Busy error is returned.
* test/example-advertisement: Fix include_tx_powerAlvar Penning2020-05-211-3/+3
| | | | | | | | Adding the Tx Power Level is no longer done via IncludeTxPower, but via the tx-power value in the Includes array. The previous code did not throw an error, but neither led to the insertion of the value. As a result of this change, include_tx_power now adds the Tx Power Level again.
* test: Fix payload and model opcode packing in test-meshInga Stotland2020-05-141-25/+69
| | | | | | | | | | | Use correct packing of multi-byte values in message payload bytearray. For example, a 2-byte opcode 0x8204 is packed as 0x82 0x04, i.e. in natural order. Add transaction ID parameter to "set" commands of generic On/Off model. Server will ignore the identical commands with the same transaction ID, source and destination during a timeout period of 6 seconds.
* test/mesh: Remove Provisioner interfaceBrian Gix2020-04-221-140/+2
| | | | | | | | This change removes the Provisioner Initiator from the python test script, along with the menu commands for create, scan and add. This makes it a cleaner Python3 example of a simple On/Off node, and a fuller featured Provisioner/Config Client still exists in the tools subdirectory.
* test/mesh: Fix token format to use all 16 digitsBrian Gix2020-04-211-2/+2
|
* test/example-advertisement: Fix advertising when discoverableSzymon Janc2020-04-091-1/+1
| | | | | | If adapter is discoverable (or LE-only) advertising was failing due to too big adv data being set. Make sure there is enough space left for flags if needed.
* test/test-mesh: Update to match modified APIsInga Stotland2020-03-301-14/+25
| | | | | This handles updated parameter list in UnprovisionedScan(), AddNode() and ScanResult() D-Bus methods
* test/test-mesh: Add support for static OOB in the agentInga Stotland2020-03-121-0/+19
| | | | | This allows to display a 16-octet key to be entered on the remote device during provisioning.
* test/test-mesh: Fix output of UpdateModelConfig methodInga Stotland2020-02-261-3/+8
| | | | | This correctly unpacks configuration dictionary received in the UpdateModelConfig() method
* test/test-mesh: Fix output of MessageReceived methodInga Stotland2020-02-181-2/+9
| | | | This fixes formatted output of recieved message parameters.
* mesh: Inform application about model subscriptionsMichał Lowas-Rzechonek2019-11-262-11/+27
|
* mesh: Provide destination address in MessageReceived APIMichał Lowas-Rzechonek2019-11-262-8/+8
|
* mesh: Fix test-join to include mandatory VendorModels propertyMichał Lowas-Rzechonek2019-11-261-1/+15
|
* test: Add example-playerLuiz Augusto von Dentz2019-08-101-0/+203
| | | | | This adds an example of registering a player with use of RegisterApplication.
* test: Add example-endpointLuiz Augusto von Dentz2019-08-101-0/+186
| | | | | This adds an example of registering an endpoint with use of RegisterApplication.
* test/test-mesh: Initialize required propertiesInga Stotland2019-07-261-4/+2
| | | | | | | | This initialized required "Models" and "VendorModels" properties wheher the actual models exist or not, according to the mesh-api.txt. In case when an element does not contain either SIG defined models or vendor defineed models, the corresponding properties should contain empty arrays.
* test: This extends the mesh tool to exercise Provisioning methodsBrian Gix2019-07-141-0/+113
| | | | | | Note: This script is *not* a suitable tool for expanding into a Mesh Provisioner. It is only intended to demonstrate the arguments and methods required.
* test: test-mesh - Correctly stop periodic publicationInga Stotland2019-07-011-4/+4
| | | | | | This changes the order of checks for an updated publication period: check for zero period first, and if this is the case, stop sending the periodic model publications.
* mesh: Add "create" command to test appBrian Gix2019-05-151-2/+47
| | | | | Like "join" this command generates a UUID and calls CreateNetwork() and displays the UUID and token.
* test: Enable test-mesh to send raw vendor commandsInga Stotland2019-04-191-1/+32
| | | | | | This adds a sample vendor model to the first element of the mesh node. A new menu entry allows to generate and send a raw vendor command.
* test: Drive test-mesh with a string-based menuInga Stotland2019-04-191-222/+317
| | | | | | Switch to string interactive commands to drive testing of bluetooth-meshd. Re-work the menu to allow global setting of destination address and AppKey index for outbound mesh messages.
* test: Add unified test for mesh node example appInga Stotland2019-03-114-656/+853
| | | | | | | This adds one script, test-mesh, to replace three test-join, example-onoff-server and example-onoff-client. This is menu driven test that allows provisioning (join) and/or connecting existing (attach) nodes.
* test/example-advertisement: add shutdown codeHunt, Preston2019-02-261-10/+32
| | | | | | | | | | | | The previous sample code did not release all resources when shutting down. This is fine when it's a standalone program since Python will free all resources automatically when the process terminates. However, in a long-running process, this will eventually cause problems. This changeset shows how to properly release all resources, if an optional command line "--timeout" argument is used. The default is no timeout to maintain behavior of the previous implementation (advertisements will run forever).
* mesh: Sample Mesh Joiner (provision acceptor)Inga Stotland2019-01-081-0/+408
| | | | | This implements a simple test to excercise Join() method of org.bluez.mesh.Network interface.
* mesh: Sample On/Off Client and ServerInga Stotland2019-01-082-0/+653
| | | | | | These tests excercise the following methods: interface org.bluez.mesh.Network - Attach() interface org.bluez.mesh.Node - Send(), Publish()
* mesh: Sample Provisioning AgentInga Stotland2019-01-081-0/+40
| | | | | This implements a simple provisioning agent to test org.bluez.mesh.ProvisionAgent interface.
* test: Switch to Python3Krzysztof Kozlowski2018-05-291-2/+2
| | | | | | | Python2 will be maintained till end of 2019. Switch to Python3 by replacing iteritems() with items() to fix error when runnig test-nap: AttributeError: 'dbus.Dictionary' object has no attribute 'iteritems'
* test/example-advertisement: add python3 supportHunt, Preston2018-05-071-9/+15
| | | | | This adds support for python3 to the existing script. The script will now work with either python2 or python3.
* test/example-advertisement: Add Data propertyLuiz Augusto von Dentz2018-05-021-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds Data property using TDS AD type: @ MGMT Command: Add Advertising (0x003e) plen 59 Instance: 1 Flags: 0x00000001 Switch into Connectable mode Duration: 0 Timeout: 0 Advertising data length: 29 16-bit Service UUIDs (complete): 2 entries Heart Rate (0x180d) Battery Service (0x180f) Company: internal use (65535) Data: 0001020304 Service Data (UUID 0x9999): 0001020304 Transport Discovery Data Organization: Bluetooth SIG (0x01) Flags: 0x01 Role: 0x01 Seeker Only Transport Data Incomplete: False (0x00) Transport State: 0x00 Off Length: 0 Data: Scan response length: 19 Name (complete): TestAdvertisement
* tests: Remove test-thermometerLuiz Augusto von Dentz2017-11-021-99/+0
| | | | Thermomether interfaces no longer exists.
* test/example-gatt-server: Don't change measuments if not notifyingLuiz Augusto von Dentz2017-10-231-0/+2
| | | | This makes it clearer when notifications are actually in effect.
* test/example-advertisement: add LocalName to propertiesTomasz Duszynski2017-09-141-0/+9
| | | | | Since local name in advertisement is useful for telling the difference between devices expose LocalName via properties.
* build: Cleanup GATT profilesLuiz Augusto von Dentz2017-09-064-560/+0
| | | | | Alert, cyclingspeed, heartrate and proximity can all be implemented using the GATT D-Bus API so they no longer need dedicated APIs.
* test/example-gatt-server: Make test service primarySzymon Janc2016-09-221-1/+1
| | | | | This allows to test from Android until included services support is added.
* test/example-gatt-server: Fix few copy-paste errorsSzymon Janc2016-09-221-5/+5
|
* tests/example-gatt-server: Fix using GATT_CHRC_IFACE in DescriptorAlexander Aring2016-09-221-1/+1
| | | | | This patch changes GATT_CHRC_IFACE to GATT_DESC_IFACE when querying properties for Descriptor class.
* test/example-advertisement: Fix data format of propertiesLuiz Augusto von Dentz2016-08-161-6/+6
| | | | D-Bus dictionaries always except the values to be of variant type.
* test/example-gatt-server: Add more commentsLuiz Augusto von Dentz2016-08-021-0/+14
| | | | This adds more comments what the example is doing.
* test/example-gatt-client: Add more commentsLuiz Augusto von Dentz2016-08-021-0/+3
| | | | This adds more comments what the example is doing.
* test/example-gatt-server: Fix error on Property.GetAllLuiz Augusto von Dentz2016-07-141-3/+3
| | | | | | get_properties is a method not a dictionary which cause the following error: TypeError: 'method' object is not subscriptable