X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Fdeveloper-guide.rst;h=4d9851b9e139f1567007b60c99b6fd374a1ae217;hb=refs%2Fchanges%2F46%2F7946%2F2;hp=cdf5567e5af74527f148cb25888d74fe2fe8cee6;hpb=931b2b0f50e4446a705d2238274914f78b681b6d;p=ric-plt%2Fsdl.git diff --git a/docs/developer-guide.rst b/docs/developer-guide.rst index cdf5567..4d9851b 100644 --- a/docs/developer-guide.rst +++ b/docs/developer-guide.rst @@ -210,14 +210,14 @@ supports, for example:: ./testrunner --gtest_filter=AsyncStorageTest* To get unit test code coverage analysis enable unit test gcov code coverage -analysis by configuring gcov reporting directory: +analysis by configuring gcov reporting directory:: configure --with-gcov-report-dir=DIR Directory can be an absolute path or a relative path to an SDL source root. Unit test build creates directory if it does not exist. -Build and run unit tests with code coverage analysis: +Build and run unit tests with code coverage analysis:: make test_gcov @@ -225,13 +225,27 @@ After successful unit test run code coverage (.gcov) result files are in a directory, what was defined by '--with-gcov-report-dir' configure option. In addition, graphical gcov front-ends such as lcov can be used for coverage -analysis: +analysis:: lcov --directory tst/ --directory src --capture --output-file coverage.info genhtml coverage.info --output-directory out Open the out/index.html using any web browser. + +Docker Tests +============ + +It's also possible to test SDL compilation, run unit tests and test building of +rpm and Debian packages in a Docker:: + + docker build --no-cache -f docker_test/Dockerfile-Test -t sdltest:latest . + +If needed, ready rpm and Debian packages can be copied from Docker to host. In +below example packages are copied to host's /tmp/sdltest-packages directory:: + + docker run -v /tmp/sdltest-packages:/export sdltest:latest /export + Functional Tests ================