| 1 |
Lomiri exta components are a collection of components that does not have the necessary |
| 2 |
level of quality for inclusion in the toolkit (https://gitlab.com/ubports/core/lomiri-ui-toolkit): |
| 3 |
- lack of documentation |
| 4 |
- lack of automated tests |
| 5 |
|
| 6 |
= Dependencies = |
| 7 |
|
| 8 |
$ apt-get install qtcore5-dev |
| 9 |
qtbase5-dev |
| 10 |
qtdeclarative5-dev |
| 11 |
libexiv2-dev |
| 12 |
libcups2-dev |
| 13 |
|
| 14 |
install the cmake-extras from the ubports github |
| 15 |
|
| 16 |
= Building = |
| 17 |
|
| 18 |
The build system uses cmake. |
| 19 |
To compile, simply invoke cmake and then make: |
| 20 |
|
| 21 |
$ cmake . |
| 22 |
$ make |
| 23 |
|
| 24 |
= Unit tests = |
| 25 |
|
| 26 |
To run the unit tests, you can use the commands below: |
| 27 |
|
| 28 |
$ make test |
| 29 |
|
| 30 |
- or - |
| 31 |
|
| 32 |
$ ctest |
| 33 |
|
| 34 |
= Automated UI tests = |
| 35 |
|
| 36 |
We use autopilot (https://launchpad.net/autopilot) to test the UI. |
| 37 |
To run the tests, you will need to install python-autopilot and libautopilot-qt. |
| 38 |
Then do the following: |
| 39 |
|
| 40 |
$ cd tests/autopilot/ |
| 41 |
$ autopilot run lomiri_ui_extras |
| 42 |
|
| 43 |
You can get a list of all available tests with the following command: |
| 44 |
|
| 45 |
$ autopilot list lomiri_ui_extras |