C Unit Tester - Revision History -------------------------------- TODO add test filtering based on the test names. port to win32 HISTORY 2005/07/02 added XML output to cunit. This can be activated via the -o xml (or --output=xml) command line switch 2005/07/02 included bug fix from "China, Grant" regarding cunit not setting the return code from main() correctly 2004/12/27 added variadic macros to support passing the ASSERT and FAIL a printf style fmt and arguments 2004/12/23 cleaned up the build process to make win32 changes easier 2004/12/12 started working on included win32 support 2004/11/26 added filtering based on the suite names 2004/11/25 improved cleanup of compiled list of tests apon termination 2004/11/15 more cleanups to build, along with creating of 'bin' directory 2004/11/15 add minal support for compiling with C++ 2004/11/12 changed the command parsing to use getopt 2004/10/02 use output for autoconf to configure which libraries are linked against 2004/10/01 put in tests for TERM environment variable to prevent colour from being used on all terminals. Thanks to Kouhei Sutou for suggesting these changes. 2004/10/01 improved output framework and put 2004/08/02 add --help and -h flags to command line options 2004/08/02 Bug Fix: the suite pointer during the run phase. This is to ensure that the suite pointer is valid when the suite is run, as pointer acquired during the compile phase may be different when the shared object is opened for a second time during the run phase. (Thanks to Jaco Breitenbach for spotting this and the suggested solution) 2004/04/09 remove the explicit package name - this can simply be included in the suite name and separated via '::' 2004/04/07 change API to use UTEST_PASS, UTEST_FAIL and UTEST_ASSERT 2004/03/25 clean up build by pretty printing commands 2004/03/24 update build to build into a build directory rather than under src 2004/02/14 made searching for test suites more robust by checking return code of stat and opendir. fixed resource leak due to opendir not being matched by a closedir. 2004/01/29 put variable at the top of the function so that it will compile with gcc 2.95.x 2004/01/25 added better reporting if no tests were found. 2003/12/10 now build objects in the .objects directory 2003/11/20 made code more compliant to older C standards 2003/11/18 added LGPL license information and copyright info 2003/11/15 more documentation updates 2003/11/15 fix up build a little more and add ./configure into docs 2003/11/15 change build to support autoconf and hence configure 2003/11/15 better error reporting for setup/teardown init/fini errors 2003/11/15 some cleanup in the build and documentation 2003/11/13 more cleanups re layout of code - all output should now be channelled through show.c 2003/11/11 moved different functions into separate files to make maintenance easier 2003/10/14 start splitting up cunit into different parts. 2003/09/26 added package name tag into the suite structure 2003/09/22 added banner and command line that accepts a search directory name 2003/08/11 add more colour and time measurement 2003/07/31 added colourisation 2003/07/09 small fixes to tester 2003/07/04 C Unit Tester This project was started in July 2003 and made available under the LGPL in December 2003.