Our Bluetooth test suites are still a WIP.
There are two suites of tests:
bluetooth_sanity: this does the basic kinds of tests you were talking about, check the state of the adapter, inquiry scans, basic connections, pairing, etc.
bluetooth_qualification: this is a set of tests that match the SIG Qualification Test Requirements/Plan for our stack
You run them using test_that, e.g.:
test_that -b $BOARD $HOST suite:bluetooth_sanity
where BOARD is the board you're building for, and $HOST is the hostname of your selected machine (not IP address, see below)
However you need a little more setup than you're probably expecting:
You need:
1) a machine to test ($HOST above, with a test image compiled for $BOARD installed on it) - stick $HOST in /etc/hosts
2) a second machine, so far we only support the Samsung Chromebox from a couple of years back (aka stumpy). This needs a test image compiled for it that was created using the testbed-ap profile (pass as --profile to setup_board, then build_packages and build_image test as normal)
3) entry for the second machine in /etc/hosts named $HOST-bluetooth ... ie. if your DUT is called "test" you'd have to name this second machine "test-bluetooth"
4) your workstation (this acts as the "server" for the autotest) - this does not need a bluetooth adapter
The tests work by making the stumpy act as an external tester, tests are run between the DUT and the stumpy, rather than your workstation