summaryrefslogtreecommitdiffstats
path: root/test/TEST-README.md
blob: b2475ae4b6c2a06def33292ee72c7916f6e114fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.