QA and Python mapscript unit tests

Normand Savard nsavard at MAPGEARS.COM
Wed Sep 13 11:15:23 EDT 2006


Hi,

I run python mapscript unit tests on MapServer on Linux for a while on 
various version of MapServer and I'm still having some errors and 
failures that I cannot get rid of.  Actually I run the tests on 
MapServer rel-4-10-0-beta3 version and I get three failures and 10 
errors.  I compare my results with the ones found on 
http://mapserver.builds.hobu.net.  I post this message here in case 
someone knows why these errors and failures happens.


On http://mapserver.builds.hobu.net the following tests passed:

OWSRequestTestCase.testGetParameter
OWSRequestTestCase.testGetParameterByName
OWSRequestTestCase.testInit
OWSRequestTestCase.testLoadWMSRequest
OWSRequestTestCase.testResetParam

But when I run these tests I get this error:

request = mapscript.OWSRequest()
AttributeError: 'module' object has no attribute 'OWSRequest'

I have all OWS configuration switches enabled when I build MapServer.  
See my configuration command line:

configured by ./configure, generated by GNU Autoconf 2.59,
  with options \"'--prefix=/home/testsuite/fgs-ms410/built/mapserver'
'--with-gdal=/home/testsuite/fgs-ms410/built/gdal/bin/gdal-config'
'--with-ogr=/home/testsuite/fgs-ms410/built/gdal/bin/gdal-config'
'--with-gd=/home/testsuite/fgs-ms410/built/gd/'
'--with-libiconv=/home/testsuite/fgs-ms410/built/libiconv/'
'--with-png=/home/testsuite/fgs-ms410/built/libpng'
'--with-proj=/home/testsuite/fgs-ms410/built/proj'
'--with-curl-config=/home/testsuite/fgs-ms410/built/curl/bin/curl-config'
'--with-wmsclient' '--with-wfs' '--with-wfsclient' '--with-wcs'
'--with-postgis=/home/testsuite/fgs-ms410/built/postgresql/bin/pg_config'
'--with-php=/home/testsuite/fgs-ms410/built/php'
'--with-httpd=/home/testsuite/fgs-ms410/built/apache/bin/httpd'
'--without-pdf' '--without-xpm' '--without-tiff'\"

Beside that I get four errors with PostGreSQL which is normal since I 
have no PostGreSQL database.  I have also the following error with 
testSetValue test.  This error is also found on 
http://mapserver.builds.hobu.net:

MapServerError: setValue(): Shapefile error. Can't set value


Finally I get three failures:  testClearExpression, testAlterNumPoints 
and testNullValue.  These failures appear on 
http://mapserver.builds.hobu.net as well.  On 
http://mapserver.builds.hobu.net there is one additional failure:  
testGetPointWKT.

Thanks for any hints.

Norm



More information about the mapserver-dev mailing list