This program is written under C++, built using CMake, and tested using GoogleTest.
To build, you will need:
- a C compiler such as GCC installed and set in the CC environment variable.
- a C++ compiler such a G++ installed and set in the CXX environment variable.
- CMake (http://www.cmake.org/cmake/resources/software.html) installed and accessible in the PATH environment variable i.e. installed in /usr/local/bin, with /usr/local/bin in $PATH. Optionally install:
- lcov if you wish to generate lcov coverage reports.
- cobertura,python,gcovr if you wish to generate cobertura coverage reports (for jenkins).
For best results:
- Run "mkdir build".
- Run "cd build".
- Run "cmake .." to create the Makefile.
- Run "make" to build.
Optionally:
- Run "make install" to install the program.
- Run "mkdir build"
- Run "cd build"
- Run "cmake -D TESTING=FAST .." to create the Makefile with most tests enabled, or run "cmake -D TESTING=ALL .." to enable integration tests as well.
- Run "make" to build.
- Run "make test" to run tests.
- Run "mkdir build"
- Run "cd build"
- Run "cmake .. -DCOVERAGE=LCOV -DTESTING=ALL" to create the Makefile and output using lcov, or "cmake .. -DCOVERAGE=COBERTURA -DTESTING=ALL" to use cobertura instead.
- Run "make" to build.
- Run "make coverage" to run tests and generate a coverage report.
- Run "./diffr" to run the program from within the build directory, or if installed, just run "diffr".
- Run "./patchr" to run the program from within the build directory, or if installed, just run "patchr".