bbunit -- C library for unit testing
libbbunit.a
Static library file with the unit testing framework.
bbunit/engine.h
The header with basic unit testing functionality.
bbunit/report.h
The header with short commands and pretty reports.
demo.c
Look at this file to learn how to use the library.
Make sure you have installed bbmacro
library of version 0.5
and have a POSIX-compliant system.
First of all, edit the file Config
to fit your needs
(or set the variables from that file in a command line).
On a typical Linux machine you can keep it untouched.
Then build the program by running this command:
$ make
You can check if the header files are self-contained and compilable (optional step):
$ make face
You can also run the provided demo program (optional step):
$ make demo
$ build/demo
And finally, install the library and the header files (you need the superuser privileges):
# make install
Now you can use the library by including the header files
into your sources and adding -lbbunit
flag to your compilations.
To remove the build
directory, run this command:
$ make clean
To package all the sources into a tarball, run this command:
$ make dist