1
0
forked from MTSR/mapserver

use test-output

This commit is contained in:
NatureFreshMilk 2019-04-04 11:05:24 +02:00
parent 7b7884456d
commit 8f6baf9ecd
4 changed files with 6 additions and 5 deletions

1
server/.gitignore vendored
View File

@ -1,6 +1,7 @@
mapserver
world.mt
output
test-output
map.sqlite
mapserver.tiles
mapserver.sqlite

View File

@ -27,7 +27,7 @@ test: $(OUT_DIR)
$(ENV) go test ./...
clean:
rm -rf $(STATIC_VFS)
rm -rf $(STATIC_VFS) test-output
rm -rf $(OUT_DIR)
jshint:

View File

@ -52,7 +52,7 @@ func TestSimpleRender(t *testing.T) {
}
r := NewMapBlockRenderer(cache, c)
os.Mkdir("../output", 0755)
os.Mkdir("../test-output", 0755)
results := make(chan JobResult, 100)
jobs := make(chan JobData, 100)
@ -68,7 +68,7 @@ func TestSimpleRender(t *testing.T) {
}
tc := coords.GetTileCoordsFromMapBlock(result.Job.Pos1, layers)
f, _ := os.Create(fmt.Sprintf("../output/image_%d_%d.png", tc.X, tc.Y))
f, _ := os.Create(fmt.Sprintf("../test-output/image_%d_%d.png", tc.X, tc.Y))
result.Data.WriteTo(f)
f.Close()
}

View File

@ -77,7 +77,7 @@ func TestTileRender(t *testing.T) {
panic("no data")
}
f, _ := os.Create("../output/0_0_12.png")
f, _ := os.Create("../test-output/0_0_12.png")
bytes.NewReader(data).WriteTo(f)
coord1 := coord.GetZoomedOutTile()
@ -91,7 +91,7 @@ func TestTileRender(t *testing.T) {
panic("no data")
}
f, _ = os.Create("../output/0_0_13.png")
f, _ = os.Create("../test-output/0_0_13.png")
bytes.NewReader(data).WriteTo(f)
}