Unit tests for the libraries code.

MaLiK malik_cjm at o2.pl
Tue Jan 22 00:47:35 CET 2008


"Brian J. Tarricone" <bjt23 at cornell.edu> napisał(a):

> MaLiK wrote:
> 
> > I've written some unit test for the libxfce4util library,
> > and prepared patch to integrate with the svn version of code.
> > Test were written using CUnit framework.
> > http://cunit.sourceforge.net/ Maybe it is a good idea to creating
> > such tests. What do you think about it?
> > 
> > To the example source code from CUnit, i've added my tests
> > functions. Now it can be generated XML output with results of tests
> > (using AutomatedTests) and console output using BasicTest.
> > 
> > Any suggestions are welcome.
> 
> Sounds pretty cool!  I'll try to look at it later this week.
> 
> A suggestion for future patches: please just provide one unified diff 
> file for the entire thing, not per file, and please don't provide
> extra files as-is that need to be added.  You can just use 'svn diff'
> for files you've modified, and 'diff -u /dev/null newfile' can be
> used to generate patches for new files (which you can then just
> append to the 'svn diff' generated patch.  Basically I just want to
> be able to run 'patch -p0 < foo.diff' in the top source directory and
> not have to do anything else.
> 
> 	-brian

Thanks for the quick replay, and the very good suggestion. 
You have absolutly right. I've prepared the patch file.

Gretz
MaLiK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libxfce4util_unit_tests.patch.tar.bz2
Type: application/x-bzip
Size: 7363 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20080122/71652e44/attachment.bin>


More information about the Xfce4-dev mailing list