[Tile-serving] [openstreetmap/osm2pgsql] Lua library for flex backend (#1079)

Jochen Topf notifications at github.com
Wed Feb 26 07:34:31 UTC 2020


@pnorman I have started writing tests for init.lua in a local branch somewhere under `tests` as simple Lua scripts using the Lua-builtin `assert`, but I don't know yet how to best integrate this with CTest and the rest of the tests. So far I have been running them "manually" by calling the Lua interpreter directly.

I see several issues here:
* Some tests need the whole osm2pgsql framework around the Lua code. Those should be run as part of the other osm2pgsql tests.
* All unit tests that only test Lua functions and don't need osm2pgsql around it should probably tested without it, just to keep things easy and simple.
* We could use the Lua interpreter binary and just call that with a `test.lua` script or we write our own "framework" for calling the tests. Calling the Lua binary is easier, but there is no guarantee that it is available on the system, we have to find its path etc. At the moment I am thinking of going this route and see whether any problems come up. We can always switch to something more custom later.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1079#issuecomment-591281935
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200225/099dbb45/attachment.htm>


More information about the Tile-serving mailing list