I hope this guide will help anyone to easily install cunit and use it for testing applications in Linux...
sudo apt-get install libcunit1 libcunit1-doc libcunit1-dev
For compile...
gcc -o app test.c -lcunit
mkdir -p $HOME/local
./configure --prefix=$HOME/local
make clean
make
make install
gcc -Wall -I$HOME/local/include mytest.c -L$HOME/local/lib -lcunit -o myprogram
#include "CUnit/CUnit.h" #include "CUnit/Basic.h" //#include "CUnit/Automated.h" //#include "CUnit/Console.h"