Skip to content

Commit

Permalink
Merge pull request #514 from camptocamp/improve-acceptance-test
Browse files Browse the repository at this point in the history
Improve acceptance test
  • Loading branch information
sbrunner authored May 26, 2023
2 parents 87e21f2 + 94744d9 commit cf43049
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__pycache__/
/acceptance_tests/junitxml
6 changes: 6 additions & 0 deletions acceptance_tests/config/mapserver/fonts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dejavusans_bold /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
dejavusansmono /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
dejavusansmono_bold /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
dejavuserif /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf
dejavusans /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
dejavuserif_bold /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
24 changes: 20 additions & 4 deletions acceptance_tests/config/mapserver/mapserver.map
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ MAP
IMAGECOLOR 255 255 255
STATUS ON

#FONTSET "fonts.conf"
#SYMBOLSET "symbol.sym"
FONTSET "fonts.conf"
SYMBOLSET "symbol.sym"

OUTPUTFORMAT
NAME jpeg
Expand Down Expand Up @@ -103,8 +103,9 @@ MAP
END
STATUS ON
PROJECTION
"init=epsg:4326"
"init=epsg:4326"
END
LABELITEM 'name'
CLASS
NAME "polygon"
STYLE
Expand All @@ -115,7 +116,22 @@ MAP
COLOR 255 0 0
OPACITY 40
END
STYLE
SYMBOL "square"
# Size should be > 0 from MapServer 7.6.5
SIZE 16
# Size should be >= 0 from MapServer 7.6.5
ANGLE 45
COLOR 0 0 0
OUTLINECOLOR 0 0 0
END
LABEL
FONT "dejavusans"
TYPE truetype
SIZE 10
COLOR 0 0 0
ANGLE -45
END
END
END

END
14 changes: 14 additions & 0 deletions acceptance_tests/config/mapserver/symbol.sym
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SYMBOLSET
SYMBOL
NAME "square"
TYPE VECTOR
POINTS
0 0
0 1
1 1
1 0
0 0
END
FILLED TRUE
END
END

0 comments on commit cf43049

Please sign in to comment.