[postgis-devel] CUnit

Paul Ramsey pramsey at cleverelephant.ca
Tue Dec 16 17:47:20 PST 2008


On Tue, Dec 16, 2008 at 4:11 PM, Kevin Neufeld <kneufeld at refractions.net> wrote:
> Paul Ramsey wrote:
>>
>> Question on directory location: right now it's in the root... either
>> it should be in something like 'tests' with 'regress' or perhaps it
>> should be under liblwgeom, since it will be 100% liblwgeom related.
>
>
> "100% liblwgeom related"?  Why wouldn't the same harness be useful to test
> methods in the loader, lwgeom, or any other c method for that matter?

Not really. lwgeom starts to pull in dependencies on pgsql, so testing
without a backend becomes a non-starter.  That's the beauty of Mark's
separate liblwgeom.  Which is also, to my mind, a reason to migrate a
much of pure geometry code (area, length, lrs) into liblwgeom, where
it can be tested more directly.

> If it's limited to just testing liblwgeom, then I agree with Mark that a
> subdirectory in liblwgeom seems most appropriate.

liblwgeom/cunit it is

> -- Kevin
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
>



More information about the postgis-devel mailing list