forked from MTSR/mapserver
use test-output
This commit is contained in:
parent
7b7884456d
commit
8f6baf9ecd
1
server/.gitignore
vendored
1
server/.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
mapserver
|
||||
world.mt
|
||||
output
|
||||
test-output
|
||||
map.sqlite
|
||||
mapserver.tiles
|
||||
mapserver.sqlite
|
||||
|
@ -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:
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user