tengine单元测试框架

tengine单元测试框架
单元测试例子:src/test/ngx_test_example.c
单元测试编译

./configure --prefix=xxxx --with-test
make 

执行:
./objs/nginx -u

模块config增加
if [ "X$NGX_UNIT_TEST" = "XYES" ]; then
       NGX_ADDON_SRCS="$NGX_ADDON_SRCS  ngx_xxx_test.c"
fi
I have a new idea. We should keep the code. Binrary unit test could be for the DSO module. make test could be for the building time unit test.