make tests use new dynamic gazetteer style

Includes a test style that mimics previous behaviour, so that
test results remain the same.
This commit is contained in:
Sarah Hoffmann
2018-11-27 17:36:17 +01:00
parent a7a9a4292b
commit 137650e37f
3 changed files with 236 additions and 3 deletions

View File

@ -96,7 +96,7 @@ void test_outputs()
throw std::logic_error("Expected a pgsql output");
}
const char* a2[] = {"osm2pgsql", "-O", "gazetteer", "--style", "default.style", "tests/liechtenstein-2013-08-03.osm.pbf"};
const char* a2[] = {"osm2pgsql", "-O", "gazetteer", "--style", "tests/gazetteer-test.style", "tests/liechtenstein-2013-08-03.osm.pbf"};
options = options_t(len(a2), const_cast<char **>(a2));
mid = middle_t::create_middle(options.slim);
outs = output_t::create_outputs(mid.get(), options);