diff options
author | Edi Feschiyan <edi.feschiyan@konsulko.com> | 2019-05-02 15:28:32 +0300 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-06-19 13:09:35 +0000 |
commit | 010af2a73f721b987f55028332023b00df7a70ce (patch) | |
tree | 8dce1129165117c353c6b0b7f9601ced494154db /TEST-README.md | |
parent | fcc777b2e173718600da80682f8a871913e3c399 (diff) |
Adding tests for agl-service-bluetooth-pbap.
Running the tests requires actual paired and currently connected phone with phonebook entries.
Bug-AGL: SPEC-2524
Signed-off-by: Edi Feschiyan <edi.feschiyan@konsulko.com>
Change-Id: I1713d8976b8855f2d802a9ed51728272735a463a
Diffstat (limited to 'TEST-README.md')
-rw-r--r-- | TEST-README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/TEST-README.md b/TEST-README.md new file mode 100644 index 0000000..9196255 --- /dev/null +++ b/TEST-README.md @@ -0,0 +1,24 @@ +## Building the test widgets +1. Source the SDK environment script +2. Create a build directory +3. Configure and build the project + +``` +mkdir build +cd build +cmake .. -DBUILD_TEST_WGT=TRUE +make +make widget +``` +Note: If you omit the -DBUILD_TEST_WGT=TRUE parameter for cmake, you'll have to type `make test_widget` to compile the test widget. + +This should produce two _.wgt_ files - one with the service and one with the tests within the build directory. + +Run the tests: +``` +scp *.wgt root@<board-ip>:~ +ssh root@<board-ip> +afm-test $(ls *test.wgt) + +``` +The tests of agl-service-bluetooth-pbap require actual bluetooth PBAP enabled phone with at least one entry in the phonebook and call log. |