summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
* test/simple-endpoint: Fix ClearConfiguration signatureLuiz Augusto von Dentz2016-05-301-3/+3
|
* test: Update GATT examples with the new APILuiz Augusto von Dentz2016-05-183-50/+172
|
* tests/example-gatt-client: Fix using invalid propertyLuiz Augusto von Dentz2016-03-241-20/+22
| | | | | | | | | | | | | | This fixes the following trace caused by GattServices1 no longer containing a property called Characteristics: Traceback (most recent call last): File "./example-gatt-client", line 221, in <module> main() File "./example-gatt-client", line 207, in main if not process_hr_service(service_path): File "./example-gatt-client", line 167, in process_hr_service chrc_paths = service_props['Characteristics'] KeyError: 'Characteristics'
* test/example-gatt-server: Don't order objectsLuiz Augusto von Dentz2016-03-071-2/+1
| | | | | | This tests if the code is actually handling registration with objects out of order which seems very common practice with ObjectManager implementation.
* test: Fix scripts to run with python 3Kurt McAlpine2016-02-262-13/+20
|
* test: Add device discovery filterGowtham Anandha Babu2016-01-191-0/+32
| | | | | | This patch adds the below mentioned device discovery filters. UUIDs, RSSI, Pathloss, Transport.
* test/example-gatt-server: Make use of RegisterApplicationLuiz Augusto von Dentz2016-01-071-31/+41
| | | | This updates example-gatt-server to use RegisterApplication.
* test: Fix ftp-client not printing progressGowtham Anandha Babu2015-12-041-3/+5
| | | | This patch fixes the keyError while printing transfer progress.
* test/test-discovery: Remove dead codeƁukasz Rymanowski2015-11-171-8/+0
| | | | | | PropertyChanged is left over from BlueZ 4.x now it is PropertiesChanged. However in this test it does not make sense to register for this signal as StopDiscovery is never called from this test.
* test: Add test-gatt-profileLuiz Augusto von Dentz2015-09-031-0/+60
| | | | | test-gatt-profile can be used to register a GATT based profile using GattManager1 interface.
* audio/avrcp: Add player name supportBharat Panda2015-08-311-0/+1
| | | | Add support to player name mapping it to Identity property from MPRIS.
* tests/example-advertisement: Change type to peripheralLuiz Augusto von Dentz2015-05-221-1/+1
| | | | | With broadcast type it won't be connectable which is much more convenient when testing.
* test/example-gatt-server: Add encrypt attributesLuiz Augusto von Dentz2015-04-281-2/+50
| | | | This adds new attributes that requires encryption for TestService.
* test/example-advertisement: Use IncludeTxPowerArman Uguray2015-04-231-1/+1
| | | | | This patch changes the example-advertisement script to use IncludeTxPower rather than IncludeTXPower.
* test: add IncludeTXPower to example-advertisementMichael Janssen2015-04-161-0/+4
|
* test/test-nap: Run indefinitelyLuiz Augusto von Dentz2015-04-071-7/+10
| | | | This makes test-nap run indefinitely until ctrl+c is pressed.
* test: improvements to example-advertisementMichael Janssen2015-04-071-4/+8
| | | | | | | | | Improves the example-advertisement script in two ways: It uses 16-bit service UUIDs so that it does not overflow the Advertisement Data It turns the adapter's power on so that it works out of the box.
* test: Add Python GATT client exampleArman Uguray2015-04-011-0/+218
| | | | | This patch introduces test/example-gatt-client which implements a simple D-Bus client application for a remote Heart Rate service.
* test/example-gatt-server: Align string constantsArman Uguray2015-04-011-4/+4
| | | | Aligned the string constants for better readability.
* test/example-gatt-server: Use parens. with printArman Uguray2015-03-311-23/+23
| | | | Added parenthesese around print statements to conform to Python 3.
* test: Reorganize LE Python example scriptsArman Uguray2015-03-312-0/+533
| | | | | | | | | This patch moves tools/gatt-example to test/ and renames it to example-gatt-server in preparation for example-gatt-client. The same naming convention (example-*) is also adopted for test/advertisement-example, so it's now called test/example-advertisement. Also, both scripts now have the execute set appropriately to be consistent with the other Python scripts.
* build: Move advertisement-example script into test directoryMarcel Holtmann2015-03-281-0/+170
|
* test/pbap-client: Add support to fetch spd,fav PBGowtham Anandha Babu2015-02-051-1/+1
| | | | | Adds support to fetch spd,fav phonebook. Tested using PTS test case TC_PCE_PBB_BV_01_C.
* test/simple-player: Fix parameter typesLuiz Augusto von Dentz2014-09-221-3/+3
|
* test: Allow to pass custom DataType to test-health-sinkSzymon Janc2014-07-031-1/+5
|
* test: Fix getting devices in health test scriptsSzymon Janc2014-07-032-2/+22
|
* tools: Remove simple-serviceLuiz Augusto von Dentz2014-04-221-128/+0
| | | | | simple-service no longer works since the API it uses no longer exists and Profile API already has a similar tool.
* test: Fix cyclingspeed manager interface nameAndrzej Kaczmarek2014-03-191-1/+1
|
* test: Add missing import in cyclingspeedAndrzej Kaczmarek2014-03-191-0/+1
|
* build: Move gatt-service test utility into tools directoryMarcel Holtmann2014-03-061-267/+0
|
* test: Add registering external serviceClaudio Takahasi2014-03-061-0/+67
| | | | | This patch extends gatt-service to call RegisterService() when org.bluez service gets connected to the system bus.
* test: Add signal handling for gatt-serviceClaudio Takahasi2014-03-061-0/+79
| | | | | This patch implements signal handling to run cleanup tasks before exiting.
* test: Add external service GATT skeletonClaudio Takahasi2014-03-061-0/+121
| | | | | This patch adds the initial code for an external GATT service example. It implements the API defined at doc/gatt-api.txt
* test: Python import cleanupPetri Gynther2014-01-1824-83/+133
| | | | | | | | | | | | | Some test scripts use "from gi.repository import GObject" whereas others use "import gobject". gi.repository is not always available on embedded systems, so convert all instances to this format: try: from gi.repository import GObject except ImportError: import gobject as GObject Also, sort the imports in this order: system, dbus, gobject, bluezutils
* test/test-hfp: Fix passing missing backlog parameter to sco.listen()Johan Hedberg2013-09-291-1/+1
|
* test/test-nap: Fix interface nameLuiz Augusto von Dentz2013-08-211-1/+1
|