summaryrefslogtreecommitdiffstats
path: root/TEST-README.md
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2019-06-13 13:05:25 +0300
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2019-06-18 00:07:19 +0300
commite3ef5052d65cc158235fbb5d8053d9b1d7731d51 (patch)
tree6e6fb6f13adadfdedc9b92c44b214f60acfd8f68 /TEST-README.md
parent4143c81945126d4f1839a1047aa96a75f1e4c690 (diff)
Adding tests for agl-service-bluetooth.
Commented tests needing real hardware device at the bottom. Bug-AGL: SPEC-2523 Signed-off-by: Edi Feschiyan <edi.feschiyan@konsulko.com> Change-Id: Iee0126665af34654d14e8bcd018175fc772f1ce3
Diffstat (limited to 'TEST-README.md')
-rw-r--r--TEST-README.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/TEST-README.md b/TEST-README.md
new file mode 100644
index 0000000..156bbe6
--- /dev/null
+++ b/TEST-README.md
@@ -0,0 +1,25 @@
+## 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 examine the verbs exposed by the service.
+Few of the tests in the test/afb-test/tests/bluetooth.lua at the bottom were commented out since they require actual bluetooth device to pair/dis/connect with.