Le mardi 18 janvier 2011 à 20:53 +0000, Richard Frith-Macdonald a écrit : > On 17 Jan 2011, at 20:15, Philippe Roussel wrote: > > Just one question : would you mind having a helper in the testsuite > > written in Python ? I know it could be problematic to be dependant on > > Python but it would be a lot easier to test http connections, as writing > > a http server takes maybe 20 lines. > > I don't think using Python is a huge problem, though a plain C or ObjC > helper would be better because we want the testsuite to be as > self-contained as possible. At the moment it needs only gnumake, > gnustep-make and the toolchain to build ObjC programs (basically gcc). > Ideally any tests using a python helper would first check that a > suitable version of python is available on the system. > > > The helpers I found in NSURL and NSURLHandle directories only compile > > with GNUstep (not sure why) so the related tests are not really useful. > > IIRC they use GNUstep specific extensions :-( > > > The WebServer library in dev-libs could also be used but I don't know > > how I could force its installation. > > That may use GNUstep specific code too (I don't recall). Your test > code could check to see if it's installed, and skip tests which need > the helper if it isn't ... much like checking to see if a suitable > Python is installed.
It seems WebServer uses gnustep additions and Performance library. I think I'll try the easy route and check for Python availability for now. If the tests are useful, the helper could be converted to C or ObjC later. Thanks, Philippe _______________________________________________ Gnustep-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnustep-dev
