[mapserver-commits] r10823 - in trunk/msautotest/query: . data expected include

svn at osgeo.org svn at osgeo.org
Sun Jan 2 18:00:17 EST 2011


Author: sdlime
Date: 2011-01-02 15:00:16 -0800 (Sun, 02 Jan 2011)
New Revision: 10823

Added:
   trunk/msautotest/query/data/bdry_counpy2.dbf
   trunk/msautotest/query/data/bdry_counpy2.shp
   trunk/msautotest/query/data/bdry_counpy2.shx
   trunk/msautotest/query/expected/filters_test001.gif
   trunk/msautotest/query/expected/filters_test002.gif
   trunk/msautotest/query/expected/filters_test003.gif
   trunk/msautotest/query/expected/filters_test004.gif
   trunk/msautotest/query/filters.map
   trunk/msautotest/query/include/
   trunk/msautotest/query/include/bdry_counpy2_shapefile.map
   trunk/msautotest/query/result/
   trunk/msautotest/query/run_test.py
Log:
Start of a set of tests for queries and common expression support.

Added: trunk/msautotest/query/data/bdry_counpy2.dbf
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/data/bdry_counpy2.dbf
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/data/bdry_counpy2.shp
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/data/bdry_counpy2.shp
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/data/bdry_counpy2.shx
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/data/bdry_counpy2.shx
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/expected/filters_test001.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/expected/filters_test001.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/expected/filters_test002.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/expected/filters_test002.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/expected/filters_test003.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/expected/filters_test003.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/expected/filters_test004.gif
===================================================================
(Binary files differ)


Property changes on: trunk/msautotest/query/expected/filters_test004.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/msautotest/query/filters.map
===================================================================
--- trunk/msautotest/query/filters.map	                        (rev 0)
+++ trunk/msautotest/query/filters.map	2011-01-02 23:00:16 UTC (rev 10823)
@@ -0,0 +1,54 @@
+#
+# Test Filter Expressions
+#
+# REQUIRES: INPUT=SHAPEFILE OUTPUT=PNG SUPPORTS=GEOS
+#
+# RUN_PARMS: filters_test001.gif [SHP2IMG] -m [MAPFILE] -l filters_test001 -o [RESULT]
+# RUN_PARMS: filters_test002.gif [SHP2IMG] -m [MAPFILE] -l filters_test002 -o [RESULT]
+# RUN_PARMS: filters_test003.gif [SHP2IMG] -m [MAPFILE] -l filters_test003 -o [RESULT]
+# RUN_PARMS: filters_test004.gif [SHP2IMG] -m [MAPFILE] -l filters_test004 -o [RESULT]
+#
+MAP
+  NAME 'filters'
+  EXTENT 125000 4785000 789000 5489000
+  UNITS METERS
+  
+  SIZE 300 300
+  IMAGETYPE GIF
+
+  LAYER
+    NAME 'filters_test001'
+    FILTER 'Aitkin'
+    FILTERITEM 'CTY_NAME'
+    INCLUDE 'include/bdry_counpy2_shapefile.map'
+  END
+
+  LAYER
+    NAME 'filters_test002'
+    FILTER 'aitkin'i
+    FILTERITEM 'CTY_NAME'
+    INCLUDE 'include/bdry_counpy2_shapefile.map'
+  END
+
+  LAYER
+    NAME 'filters_test003'
+    FILTER /^S/
+    FILTERITEM 'CTY_NAME'
+    INCLUDE 'include/bdry_counpy2_shapefile.map'
+  END
+
+  LAYER
+    NAME 'filters_test004'
+    FILTER /^s/i
+    FILTERITEM 'CTY_NAME'
+    INCLUDE 'include/bdry_counpy2_shapefile.map'
+  END
+
+  LAYER
+    NAME 'bdry_counpy2'
+    TYPE LINE
+    DATA 'data/bdry_counpy2.shp'
+    STATUS DEFAULT
+    CLASS COLOR 231 231 231 END
+  END
+END

Added: trunk/msautotest/query/include/bdry_counpy2_shapefile.map
===================================================================
--- trunk/msautotest/query/include/bdry_counpy2_shapefile.map	                        (rev 0)
+++ trunk/msautotest/query/include/bdry_counpy2_shapefile.map	2011-01-02 23:00:16 UTC (rev 10823)
@@ -0,0 +1,10 @@
+  DATA 'data/bdry_counpy2'
+  STATUS OFF
+  TYPE POLYGON
+  CLASS
+    STYLE 
+      COLOR 255 100 100 
+      OUTLINECOLOR 181 181 181
+    END
+  END
+  TEMPLATE 'void'

Added: trunk/msautotest/query/run_test.py
===================================================================
--- trunk/msautotest/query/run_test.py	                        (rev 0)
+++ trunk/msautotest/query/run_test.py	2011-01-02 23:00:16 UTC (rev 10823)
@@ -0,0 +1,65 @@
+#!/usr/bin/env python
+###############################################################################
+# $Id: run_test.py 4851 2005-09-22 18:29:07Z frank $
+#
+# Project:  MapServer
+# Purpose:  Test harnass script for MapServer autotest.
+# Author:   Frank Warmerdam, warmerdam at pobox.com
+#
+###############################################################################
+#  Copyright (c) 2002, Frank Warmerdam <warmerdam at pobox.com>
+# 
+#  Permission is hereby granted, free of charge, to any person obtaining a
+#  copy of this software and associated documentation files (the "Software"),
+#  to deal in the Software without restriction, including without limitation
+#  the rights to use, copy, modify, merge, publish, distribute, sublicense,
+#  and/or sell copies of the Software, and to permit persons to whom the
+#  Software is furnished to do so, subject to the following conditions:
+# 
+#  The above copyright notice and this permission notice shall be included
+#  in all copies or substantial portions of the Software.
+# 
+#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+#  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+#  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+#  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+#  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+#  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+#  DEALINGS IN THE SOFTWARE.
+###############################################################################
+# 
+# $Log$
+# Revision 1.1  2005/09/22 18:28:43  frank
+# New
+#
+# Revision 1.5  2003/03/05 15:28:50  frank
+# use shared mstestlib.py
+#
+# Revision 1.4  2003/03/02 19:54:03  frank
+# auto create result directory if missing
+#
+# Revision 1.3  2003/01/23 22:47:50  frank
+# removed python2.2 use of st_size
+#
+# Revision 1.2  2002/12/21 21:47:20  frank
+# preserved failed results
+#
+# Revision 1.1  2002/11/22 21:13:19  frank
+# New
+#
+
+import sys
+
+sys.path.append( '../pymod' )
+
+import mstestlib
+
+
+###############################################################################
+# main()
+
+if __name__ == '__main__':
+    mstestlib.run_tests( sys.argv[1:] )
+    
+
+


Property changes on: trunk/msautotest/query/run_test.py
___________________________________________________________________
Added: svn:executable
   + *



More information about the mapserver-commits mailing list