mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Add a test for layer names
This commit is contained in:
@@ -68,8 +68,9 @@ SPACE = $(NULL) $(NULL)
|
|||||||
|
|
||||||
test: tippecanoe tippecanoe-decode $(addsuffix .check,$(TESTS)) parallel-test pbf-test
|
test: tippecanoe tippecanoe-decode $(addsuffix .check,$(TESTS)) parallel-test pbf-test
|
||||||
|
|
||||||
|
# Work around Makefile and filename punctuation limits: _ for space, @ for :, % for /
|
||||||
%.json.check:
|
%.json.check:
|
||||||
./tippecanoe -f -o $@.mbtiles $(subst _, ,$(patsubst %.json.check,%,$(word 4,$(subst /, ,$@)))) $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json) < /dev/null
|
./tippecanoe -f -o $@.mbtiles $(subst @,:,$(subst %,/,$(subst _, ,$(patsubst %.json.check,%,$(word 4,$(subst /, ,$@)))))) $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json) < /dev/null
|
||||||
./tippecanoe-decode $@.mbtiles > $@.out
|
./tippecanoe-decode $@.mbtiles > $@.out
|
||||||
cmp $(patsubst %.check,%,$@) $@.out
|
cmp $(patsubst %.check,%,$@) $@.out
|
||||||
rm $@.out $@.mbtiles
|
rm $@.out $@.mbtiles
|
||||||
@@ -103,7 +104,7 @@ pbf-test:
|
|||||||
prep-test: $(TESTS)
|
prep-test: $(TESTS)
|
||||||
|
|
||||||
tests/%.json: Makefile tippecanoe tippecanoe-decode
|
tests/%.json: Makefile tippecanoe tippecanoe-decode
|
||||||
./tippecanoe -f -o $@.check.mbtiles $(subst _, ,$(patsubst %.json,%,$(word 4,$(subst /, ,$@)))) $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json)
|
./tippecanoe -f -o $@.check.mbtiles $(subst @,:,$(subst %,/,$(subst _, ,$(patsubst %.json,%,$(word 4,$(subst /, ,$@)))))) $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json)
|
||||||
./tippecanoe-decode $@.check.mbtiles > $@
|
./tippecanoe-decode $@.check.mbtiles > $@
|
||||||
cmp $(patsubst %.check,%,$@) $@
|
cmp $(patsubst %.check,%,$@) $@
|
||||||
rm $@.check.mbtiles
|
rm $@.check.mbtiles
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+22
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user