summaryrefslogtreecommitdiffstats
path: root/TEST-README.md
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2019-06-13 16:08:15 +0300
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2019-06-18 00:31:21 +0300
commitb70b8c29fdf0c9f19b40cc5a6474ca1adf3cbae9 (patch)
treef960b04d239e75961b78c7cc14372a18b581cc31 /TEST-README.md
parent11282b3522d20b39775ce50655ad46ca36394cea (diff)
Adding agl-service-bluetooth-map tests
Bug-AGL: SPEC-2530 Signed-off-by: Edi Feschiyan <edi.feschiyan@konsulko.com> Change-Id: Ia42ff3922d5d006d88f766fb9e75f1c57dc05d08
Diffstat (limited to 'TEST-README.md')
-rw-r--r--TEST-README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/TEST-README.md b/TEST-README.md
new file mode 100644
index 0000000..c36ce4d
--- /dev/null
+++ b/TEST-README.md
@@ -0,0 +1,27 @@
+## 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 require actual paired and connected bluetooth-MAP enabled phone.
+WARNING: one of the tests would send actual SMS so you might want to change the phone number in test/afb-test/tests/bluetooth-map.lua
+The phone currently hardcoded sends a message to +639203600900 - public sms gateway for incoming messages - https://5sim.net/free