Skip to content

Commit

Permalink
Skeletal tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlime committed Jan 26, 2024
1 parent dfa65d9 commit 53540d1
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
29 changes: 29 additions & 0 deletions msautotest/query/6907_01.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Test 1: mode=itemquery - matching record
# RUN_PARMS: 6709_01_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ANOK&qitem=cty_abbr' > [RESULT_DEMIME]
#
# Test 2: mode=itemquery - no matching record
# RUN_PARMS: 6709_01_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ABCD&qitem=cty_abbr' > [RESULT_DEMIME]
MAP
NAME 'query'
EXTENT 125000 4785000 789000 5489000
UNITS METERS

WEB
QUERYFORMAT 'tmpl'
END

OUTPUTFORMAT
NAME 'tmpl'
DRIVER 'TEMPLATE'
MIMETYPE 'text/html'
FORMATOPTION "FILE=template/query.tmpl"
END

LAYER
NAME 'bdry_counpy2'
VALIDATION
qstring '^[A-Z]{4}$'
END
INCLUDE 'include/bdry_counpy2_shapefile.map'
END
END
30 changes: 30 additions & 0 deletions msautotest/query/6907_02.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Test 1: mode=itemquery - matching record
# RUN_PARMS: 6709_02_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ANOK&qitem=cty_abbr' > [RESULT_DEMIME]
#
# Test 2: mode=itemquery - no matching record
# RUN_PARMS: 6709_02_test001.txt [MAPSERV] QUERY_STRING='map=[MAPFILE]&mode=itemquery&qlayer=bdry_counpy2&qstring=ABCD&qitem=cty_abbr' > [RESULT_DEMIME]
MAP
NAME 'query'
EXTENT 125000 4785000 789000 5489000
UNITS METERS

WEB
EMPTY 'https://mapserver.org/'
QUERYFORMAT 'tmpl'
END

OUTPUTFORMAT
NAME 'tmpl'
DRIVER 'TEMPLATE'
MIMETYPE 'text/html'
FORMATOPTION "FILE=template/query.tmpl"
END

LAYER
NAME 'bdry_counpy2'
VALIDATION
qstring '^[A-Z]{4}$'
END
INCLUDE 'include/bdry_counpy2_shapefile.map'
END
END
Empty file added msautotest/query/6907_03.conf
Empty file.
Empty file added msautotest/query/6907_03.map
Empty file.

0 comments on commit 53540d1

Please sign in to comment.