This is a skeleton project for a C program with a focus on unit testing.
This can be converted to a C library project with some relatively minor
updates to the Makefile.
- Unit test coverage report
- 100% unit test coverage out of the box
- Unit tests binary run through Valgrind to check for memory errors
- Benchmark suite
make rpmtarget to generate an RPM packagemake perftarget for running the benchmark suite throughperf statmake gproftarget for profiling the benchmark suite throughgprofmake paholetarget for analyzing struct alignment usingpahole
Run make test to execute the unit tests.
Run make bench to execute the benchmarks.
- dwarves/libdwarves (for
make pahole) - gcc (or bring your own compiler using
CC=$compiler make ...) - gcovr (for
make testcode coverage report) - gdb (for
make debug) - gprof (for
make gprof) - perf (for
make perf) - valgrind (for
make test)