首先下载 CUnit: http://cunit.sourceforge.net/
tar jxvf CUnit-2.1-3.tar.bz2
cd CUnit-2.1-3
./bootstrap
./configure
make
make install
http://www.tuicool.com/articles/N3iMVz3
http://blog.csdn.net/scucj/article/details/4385630/
http://www.cnblogs.com/linux-sir/archive/2012/08/25/2654557.html
INC=-I/root/local/include
LIB=-L/root/local/lib
all: strformat.c testcase_strformat.c
gcc $^ -o test $(INC) $(LIB) -lcunit -static
clean:
rm -rf test
最新可行版本:
http://blog.csdn.net/lingyizhangfankai/article/details/50394982