[mapserver-commits] r10738 - trunk/msautotest/renderers

svn at osgeo.org svn at osgeo.org
Fri Nov 19 09:51:07 EST 2010


Author: tbonfort
Date: 2010-11-19 06:51:07 -0800 (Fri, 19 Nov 2010)
New Revision: 10738

Modified:
   trunk/msautotest/renderers/entity_encoded_follow_text.map
   trunk/msautotest/renderers/run_test.py
Log:
add flag for running only selected renderers


Modified: trunk/msautotest/renderers/entity_encoded_follow_text.map
===================================================================
--- trunk/msautotest/renderers/entity_encoded_follow_text.map	2010-11-19 14:25:35 UTC (rev 10737)
+++ trunk/msautotest/renderers/entity_encoded_follow_text.map	2010-11-19 14:51:07 UTC (rev 10738)
@@ -32,6 +32,7 @@
         mindistance 25
         BUFFER 17
         COLOR 0 0 0
+        MAXOVERLAPANGLE 100
         #ENCODING utf8
       END
   END

Modified: trunk/msautotest/renderers/run_test.py
===================================================================
--- trunk/msautotest/renderers/run_test.py	2010-11-19 14:25:35 UTC (rev 10737)
+++ trunk/msautotest/renderers/run_test.py	2010-11-19 14:51:07 UTC (rev 10738)
@@ -33,7 +33,7 @@
 # use shared mstestlib
 #
 
-import sys
+import sys,os,string
 
 sys.path.append( '../pymod' )
 
@@ -44,7 +44,14 @@
 # main()
 
 if __name__ == '__main__':
-    for renderer in ['png24','cairopng','png','svg','pdf']:
+    renderers = ['png24','png']
+
+    version_info = os.popen( 'shp2img -v' ).read()
+    if '-r' in sys.argv:
+        idx = sys.argv.index('-r')
+        renderers.extend(sys.argv[idx+1].split(','))
+    
+    for renderer in renderers:
         args = sys.argv[1:]
         args.extend(['-renderer',renderer])
         mstestlib.run_tests( args )



More information about the mapserver-commits mailing list