Add a test for layer names

This commit is contained in:
Eric Fischer
2016-03-29 15:01:03 -07:00
parent bd3b9a5136
commit 62fac4d6f4
6 changed files with 54 additions and 2 deletions
+3 -2
View File
@@ -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
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
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
File diff suppressed because one or more lines are too long