Actually the wiki is slightly out of date regarding CUnit tests (unfortunately I don't have the time to fix it right now).  The process is slightly simpler than what's documented in the wiki (no more headers for the test files).  <br>
<br>The README in the unit test directory has the most up-to-date description of how to add tests.<br><br>Jeff<br><br><br><div class="gmail_quote">On Wed, Apr 7, 2010 at 2:40 AM, Olivier Courtin <span dir="ltr"><<a href="mailto:olivier.courtin@oslandia.com">olivier.courtin@oslandia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
On Apr 7, 2010, at 7:32 AM, Poizot Emmanuel wrote:<br>
<br>
Hi Emmanuel.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I developped on the current trunk version of Postgis a new function: ST_MakeEllipse,<br>
which create a polygon with an ellipse shape.<br>
</blockquote>
<br></div>
Could be a nice new function ! :)<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
As I'm not aware with the development process of Postgis, I wonder how I can give back this dev to Postgis site.<br>
</blockquote>
<br></div>
A way to do so, is 'just' to send on this list a patch generated with diff -u command.<br>
and also to say explicitly in your mail, the trunk revision number.<br>
<br>
<br>
The patch should compile without  warnings,<br>
don't generate any errors with make check,<br>
and follow the style guide (<a href="http://svn.osgeo.org/postgis/trunk/STYLE" target="_blank">http://svn.osgeo.org/postgis/trunk/STYLE</a>)<br>
<br>
<br>
In a perfect world the patch should also contains<br>
DocBook documentation and CUnit tests:<br>
  <a href="http://trac.osgeo.org/postgis/wiki/DevWikiDocNewFeature" target="_blank">http://trac.osgeo.org/postgis/wiki/DevWikiDocNewFeature</a><br>
  <a href="http://trac.osgeo.org/postgis/wiki/DevWikiCUnit" target="_blank">http://trac.osgeo.org/postgis/wiki/DevWikiCUnit</a><br>
<br>
<br>
But for a single function if you already provide 'clean' code,<br>
that's a good start ! :)<br>
<br>
<br>
Don't hesitate to ask any question related to this process on the list.<br><font color="#888888">
<br>
<br>
--<br>
Olivier<br>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@postgis.refractions.net" target="_blank">postgis-devel@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Jeff Adams<br>Azavea (formerly Avencia)  |  T: 215.701.7717  |  F: 215.925.2663<br><a href="http://www.azavea.com">www.azavea.com</a><br>