Skip to content

Commit

Permalink
Merge pull request #519 from camptocamp/improve-acceptance-test
Browse files Browse the repository at this point in the history
Add more acceptance test
  • Loading branch information
sbrunner authored May 26, 2023
2 parents cbb5844 + 71f2ac4 commit fbc88eb
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.pyc
__pycache/
__pycache__/
/acceptance_tests/junitxml
/.github/changelog-generator-cache
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 @@ -102,8 +102,9 @@ MAP
END
STATUS ON
PROJECTION
"init=epsg:4326"
"init=epsg:4326"
END
LABELITEM 'name'
CLASS
NAME "polygon"
STYLE
Expand All @@ -114,7 +115,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 fbc88eb

Please sign in to comment.