metadata:
    name: linux-bluetooth-scan
    format: "Manual Test Definition 1.0"
    description: "Test if Bluetooth scan, pairing and file transfer works."
    maintainer:
        - amit.khare@linaro.org
    os:
        - ubuntu
        - openembedded
    scope:
        - functional
    devices:
        - hi6220-hikey
        - apq8016-sbc
    environment:
        - manual-test

run:
    steps:
        - Boot the board to console
        - Make sure at least one BT keyboard device is available in the radio range and in discoverable mode.
        - "$ sudo su"
        - "# bluetoothctl -a"
        - "[bluetooth]# pairable on"
        - "[bluetooth]# scan on"
        - Note MAC-ID of desired device to Connect.
        - "[bluetooth]# default-agent"
        - "[bluetooth]# pair <MAC-ID>"
        - "[bluetooth]# trust <MAC-ID>"
        - "[bluetooth]# quit"
        - Type on the BT keyboard.
    expected:
        - Scanning works and device MAC addresses are displayed
        - Pairing works and bluetoothctl displays proper message
        - Keyboard works and typed characters appear in console
        - No kernel errors crashes occur
