X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=README.md;h=4c76fd9ae4751188d057f169277d1bfdc801a987;hb=2e2c88665843b4bd805dbd1a2c71e5959fa9d5bb;hp=cca05cd3b87287fec6635ddebf25f180969eb7e7;hpb=fc2ea473dbca57045b279bad8e70679297d2ca3f;p=ric-plt%2Fsdl.git diff --git a/README.md b/README.md index cca05cd..4c76fd9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ ## Documentation -Documentation is generated with `doxygen` tool. +Documentation is generated with `doxygen` tool. Dependency to `doxygen` +tool is optional. If not installed, then `doxygen-doc` target will not +be created to Makefile. By default `make doxygen-doc` creates HTML, PDF and PS documents (if the needed tools are available). The documents are created to: @@ -33,10 +35,34 @@ directory named `shareddatalayer`. ### Dependencies -Currently, the following libraries are required while building: +Build-time dependencies: - boost-devel - hiredis-devel + libboost (system, filesystem, program-options) + hiredis + rpm + valgrind + autoconf-archive + doxygen (optional) + +Commands to install dependent packages in Fedora: + + sudo dnf install boost-devel + sudo dnf install hiredis-devel + sudo dnf install rpm + sudo dnf install valgrind + sudo dnf install autoconf-archive + sudo dnf install doxygen + +Commands to install dependent packages in Debian/Ubuntu: + + sudo apt install libboost-filesystem-dev + sudo apt install libboost-program-options-dev + sudo apt install libboost-system-dev + sudo apt install libhiredis-dev + sudo apt install rpm + sudo apt install valgrind + sudo apt install autoconf-archive + sudo apt install doxygen ### Compilation in the source directory @@ -157,6 +183,31 @@ line options gtest supports, for example: make testrunner ./testrunner --help +## Running unit tests with gcov + +Enable unit test gcov code coverage 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: + + make test_gcov + +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: + + 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. + ## Using SDL in application pod SDL is not yet available in O-RAN-SC PackageCloud.io repository.