aboutsummaryrefslogtreecommitdiffstats
path: root/test/TEST-README.md
diff options
context:
space:
mode:
authorStoyan Bogdanov <stoyan.bogdanov@konsulko.com>2019-06-12 16:12:39 +0300
committerStoyan Bogdanov <stoyan.bogdanov@konsulko.com>2019-06-18 11:41:45 +0300
commit089807fbbc4429ede68ef4fa846367345259de36 (patch)
treeada004340671ac5ee9b9b609ac646c637e8f3e98 /test/TEST-README.md
parent7eba64b591678e8e150ca5da0ea3537c3dd4db1f (diff)
tests: network: Add test bindings for agl-service-network
- Remove agl-service-network-ctl.c from tests folder. - Create the file and folders structure required. for building test bindings. Add all required Cmake files. - Create aft-agl-network.json configuration file for testing binding. - Create network.lua for testing bindings. Bug-AGL: SPEC-2515 Signed-off-by: Stoyan Bogdanov <stoyan.bogdanov@konsulko.com> Change-Id: I9df72a2d9d03189d3917c6e84f633af7603436b0
Diffstat (limited to 'test/TEST-README.md')
-rw-r--r--test/TEST-README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/TEST-README.md b/test/TEST-README.md
new file mode 100644
index 0000000..b2475ae
--- /dev/null
+++ b/test/TEST-README.md
@@ -0,0 +1,30 @@
+## 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)
+
+```
+
+network.lua is testing just part of the verbs presented in the agl-service-network.
+Proper testing of wifi, bluetooth and ethernet require known enviroment,
+this is the reason why some of the vers are not tested.