I'm planning to introduce unit tests in Amora Server. This should be
the first step do start the server modularization. Since the beginning
our build system has check (http://check.sourceforge.net/) and lcov
support. Working together, this both tools are very powerful. I'm
happy to know that the current unit test system still working (at
least on debian etch).
The patch attached is just a prof-of-concept to test if the unit test
system is working on your system. You must have the lcov and check
installed at your distro. Apply the patch and then, run the
./configure script with --enable-check and --enable-lcov parameters.
"make check" will run the test and "make lcov" will generate the
coverage report inside ./docs directory. (remember to rerun
autoreconf!)
Again, the unit test in this sample is just a dummy and isn't using
none of the check features/functions.
Best regards,
Hi all,
As attachment a patch of the new utest infra mockup.
A utest unique entry point, called utest.c that will create a test
suit for each server part: core functions, backend, frontend, etc and
a separated file for each source file/library.
Suggestions, critics and comments are welcome!
BR,