Skip to content
/ bbunit Public

C library for unit testing (double fork strategy)

License

Notifications You must be signed in to change notification settings

alanubi/bbunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbunit

bbunit -- C library for unit testing

Contents of the package

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.


System requirements

Make sure you have installed bbmacro library of version 0.5 and have a POSIX-compliant system.


Installation

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.


Development

To remove the build directory, run this command:

$ make clean

To package all the sources into a tarball, run this command:

$ make dist

About

C library for unit testing (double fork strategy)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published