Thursday, December 16, 2010

Testing BlueZ's HDP implementation

Following up epx's work on MCAP testing on BlueZ, we at Signove created one more tool for testing BlueZ against PTS (Bluetooth Profile Tuning Suite).

auto-hdp-pts is a Python script tinkered to automate the testing of BlueZ's HDP against PTS's HDP test suite. It contains *all PTS HDP test cases and suites listed and respective BlueZ calls that achieve the expected result.

It has only two possible command-line uses:
  • auto-hdp-pts --list: lists currently supported tests among PTS
  • auto-hdp-pts [PTS dongle addr] [tests file]
A basic use is to run the list command and direct it to a file, then use it with the second command, which will let you go through all test suite.

The usage within the runtime environment is basically pressing ENTER to enter (cheesy?) test suites and run commands and typing 'no' to skip.

It currently covers almost all tests from the PTS suite, except the (SRC/SNK) HCT_07 tests and (SRC/SNK)_DEP (which require unreleased IEEE stack).

The script currently lives on HDPy git repository, under scripts/bluez/pts (quick link here).

0 comentários: