Add tests - DAO.
[Issue#] N/A
[Feature] Add DAO tests back to wrt-commons. Build tests conditionally.
[Problem] N/A
[Cause] Unit tests should reside in the same repositories the code they test.
Tests should be built only on explicit request.
[Solution] Add DAO tests to wrt-commons repository. Build tests only
when option WITH_TESTS is set.
[SCMRequest] gbs >= 0.12
[Verification]
REQUIRES: gbs >= 0.12
1. Remove `wrt-extra` RPM package from the device, if present.
2. Make sure `wrt-tests-dao` binary is not present on the device.
3. Build repository using gbs with option `--define "WITH_TESTS OFF"`.
4. Check if subdirectory `tests/` was included in the build process
(it should NOT be included) and if `wrt-tests-dao` is included in
the RPM package (it should NOT be included).
5. Install RPM package created in step 3.
6. Check if `wrt-tests-dao` binary is present on the device (it should
NOT be present).
7. Build repository using gbs with option `--define "WITH_TESTS ON"`.
8. Check if subdirectory `tests/` was included in build process (it
should be included) and if `wrt-tests-dao` is included in the RPM
package (it should be included).
9. Install RPM package created in step 7.
10. Run `wrt-tests-dao` test suite.
Change-Id: I5dbe07a30f9ab1d2c3f106e704a4d9254f5e493f