Skip to content
Snippets Groups Projects
Commit fad9085c authored by Baghmar Tarun's avatar Baghmar Tarun
Browse files

T5734: bluez-avrcp-volume medium priority test case

Signed-off-by: default avatarBaghmar Tarun <tarun.baghmar@in.bosch.com>
parent 7a0323ba
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
sdk: [ amd64 ] sdk: [ amd64 ]
image-deployment: image-deployment:
- APT - APT
- OSTree
type: functional type: functional
exec-type: manual exec-type: manual
priority: medium priority: medium
...@@ -15,13 +16,19 @@ metadata: ...@@ -15,13 +16,19 @@ metadata:
resources: resources:
- "A Bluetooth adapter" - "A Bluetooth adapter"
- "An A2DP Source and AVRCP capable phone (Nokia N9 do not use an - "An A2DP Source and AVRCP capable phone
Android 4.2 phone as their Bluetooth AVRCP support is broken)" (Nokia N9 do not use an Android 4.2 phone as their Bluetooth AVRCP support is broken)"
- "Note that you do not need to play any music on the phone; nor do you need - "Note that you do not need to play any music on the phone; nor do you need to have
to have headphones or a speaker plugged into the Apertis device." headphones or a speaker plugged into the Apertis device."
macro_ostree_preconditions: bluez-phone
pre-conditions:
- "If running the test on an SDK image, kill the blueman-applet process, as
it prevents the test from installing its own pairing agent."
- "Please note that connman disables bluetooth by default on a fresh image."
- "Enable device:"
- "$ connmanctl enable bluetooth"
macro_install_packages_preconditions: apertis-tests python3-dbus python3-gi
chaiwala-tests
expected: expected:
- "If success, the following output should be generated by btmon:" - "If success, the following output should be generated by btmon:"
...@@ -32,23 +39,50 @@ metadata: ...@@ -32,23 +39,50 @@ metadata:
Operation: 0x42 (VOLUME DOWN Pressed) Operation: 0x42 (VOLUME DOWN Pressed)
Length: 0x00 Length: 0x00
-- --
AV/C: Control: address 0x48 opcode 0x7c
Subunit: Panel
Opcode: Passthrough
Operation: 0xc2 (VOLUME DOWN Released)
Length: 0x00
--
AV/C: Control: address 0x48 opcode 0x7c AV/C: Control: address 0x48 opcode 0x7c
Subunit: Panel Subunit: Panel
Opcode: Passthrough Opcode: Passthrough
Operation: 0x41 (VOLUME UP Pressed) Operation: 0x41 (VOLUME UP Pressed)
Length: 0x00 Length: 0x00
--
AV/C: Control: address 0x48 opcode 0x7c
Subunit: Panel
Opcode: Passthrough
Operation: 0xc1 (VOLUME UP Released)
Length: 0x00
notes:
- "Errors most frequently occurs at pairing. This can be used to circumvent
pairing problems, though this does not mean the test is a full pass, as
the pairing is part of the test:"
- |
>cd ~/bluez-avrcp-volume
armhf/bin/pair_two hci0 <bt address of the phone>
./bluez-avrcp-volume.sh -a <address of the phone> -s
run: run:
steps: steps:
- "The phone must be in discoverable mode for starting this test. Look for
the phone in this list, and save the BT address. It will be used while
running the test."
- "Ensure PulseAudio is activated:" - "Ensure PulseAudio is activated:"
- $ pactl stat - $ pactl stat
- "Run btmon before any connection happens:" - "Run btmon before any connection happens:"
- "$ sudo btmon | grep -A4 'AV/C: Control'" - "$ sudo btmon | grep -A4 'AV/C: Control'"
- "Start simple agent:" - "Execute the test suite in another terminal:"
- $ /usr/lib/chaiwala-tests/bluez/simple-agent -y - $ ./bluez-avrcp-volume.sh
- "Pair both devices initiating from the phone side" - "There are some options:"
- "Pay attention to the simple-agent window as it requires input during - |
the pairing process." >-a select which device you want to pair with (specify the address)
- "In another terminal, execute (You can get the Bluetooth device address by -s skip pairing because the device is already paired. -a must be present when using this.
running hcitool scan):" -x enables test debugging (only useful if a test fails)
- $ /usr/lib/chaiwala-tests/bluez/test-avrcp.py -i hci0 device_address - "Once the test begins, after Apertis finishes pairing with the phone, you
must initiate pairing from the phone and do the pairing again as part of
the test. You may need to unpair Apertis from within the phone first."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment