- libyaml: v0.2.5
- googletest: v1.10.0 (optional)
- gcovr (optional)
- clang-format (optional)
- glib-devel
- glib2-devel.x86_64
The C/C++ code is automatically formatted by clang-format
.
To enable this with a git pre-commit hook:
- Install the
clang-format
C++ package. - Run
git config core.hooksPath .githooks
once in this repository.
Set the path variable by:
export PXI_CNTLR_HOME=$path_to_this_module
- Do the following to do the unit tests in docker container:
cd tests/
make
../bin/test
- To get the code coverage, do:
cd build/tests/
gcovr -r ../../src/ .
If the Cobertura xml report is needed, do the following instead:
gcovr -r ../../src/ . --xml-pretty > coverageReport.xml
- To clean the test data, do
make clean
intests/
directory.
The details can follow commandStatus.