[Tile-serving] [osm2pgsql] Regression test doesn't cover flat-nodes (#186)
apmon
notifications at github.com
Fri Sep 26 19:26:56 UTC 2014
flat nodes is probably a case where you want to do unit testing rather than integration testing. That way you need to write much less of the file than you would even if you import just liechtenstein.
node-persistent-cache-reader.c has some (primitive) stand alone code to test/benchmark some aspects of the flat nodes sub system. One could presumably expand that to do some proper unit testing of the likely things that could (or have) gone wrong with the flat nodes system. You will still need ~20GB of space to hold the flat node file. But you presumably don't have to write to all of it, and so if you have a modern filesystem that can create a large (sparse) file quickly, tests shouldn't be too bad.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/186#issuecomment-57008974
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140926/fb8eac5b/attachment.html>
More information about the Tile-serving
mailing list