Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more acceptance test #519

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading