OSM2PGSQL-TEST-STYLE(1)
π NAME
okay so bestie, lemme introduce you to osm2pgsql-test-style β it's the osm2pgsql style testing tool. that's the whole vibe. you run it, it tests your styles. iconic behavior fr fr β¨
π SYNOPSIS
osm2pgsql-test-style [-h] [--osm2pgsql-binary OSM2PGSQL_BINARY] [--test-data-dir TEST_DATA_DIR] [--style-data-dir STYLE_DATA_DIR] [--test-db TEST_DB] [--template-test-db TEMPLATE_TEST_DB] [--keep-test-db] [--test-tablespace {yes,no,auto}] [--test-proj {yes,no,auto}] features [features ...]
like yes, that's a lot of brackets, but we're gonna walk through every single one, don't even worry π«Ά
πΈ DESCRIPTION
so. this is the test runner for BDD-style integration tests π that's literally its whole job description. it runs the tests, it's giving main character energy, and it does it for osm2pgsql style testing.
for the deets on osm2pgsql style testing in general, go peek at the osm2pgsql manual β that's where the lore lives π
and here's the positional argument situation, no cap:
- features β feature files or paths. that's it, that's the tea. you hand it feature files, or paths, and it goes to work. π¦
β¨ OPTIONS β¨
okay bestie, this is the part where we list EVERY flag. no skipping, no summarizing, we are thorough in this house π
--osm2pgsql-binaryOSM2PGSQL_BINARY β which osm2pgsql binary should we use for testing? you tell it here. (default:osm2pgsql)--test-data-dirTEST_DATA_DIR β (optional) directory to search for test data. only if you want to, no pressure. π--style-data-dirSTYLE_DATA_DIR β (optional) directory to search for style files. also optional, also chill. π--test-dbTEST_DB β the name of the database we're using for testing. (default:osm2pgsql-test)--template-test-dbTEMPLATE_TEST_DB β the name of the database used for creating the template db. yes those are two different databases, keep up bestie. (default:osm2pgsql-test-template)--keep-test-dbβ keeps the test database around after the tests are done. so if you're the type who hates cleanup, this one's for you π--test-tablespace{yes,no,auto} β include tests that require a tablespace. pick your fighter:yes,no, orauto. π§--test-proj{yes,no,auto} β include tests that require the proj library. same three choices:yes,no, orauto. π₯
side note: the synopsis also shows -h, bestie. that's the classic help flag, iykyk π
π SEE ALSO
- osm2pgsql website (
https://osm2pgsql.org) β the mothership. go say hi. πΈ - osm2pgsql manual (
https://osm2pgsql.org/doc/manual.html) β the full lore drop. read it, it's lowkey great. π
and that's the whole page, bestie!! this was osm2pgsql-test-style, version 2.3.1 β go forth and test those styles, you absolute icon ππ periodt.
π¦ where this page comes from
- arch rolling: osm2pgsql 2.3.1-1 Β· GPL-2.0-only
- nixpkgs unstable: osm2pgsql 2.3.1
- ubuntu stonking: osm2pgsql 2.3.1+ds-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms