1 # SPDX-License-Identifier: GPL-2.0-only
3 # This file is part of Nominatim. (https://nominatim.org)
5 # Copyright (C) 2022 by the Nominatim developer community.
6 # For a full list of authors see the git log.
8 Tests for tools.exec_utils module.
10 from pathlib import Path
15 from nominatim.config import Configuration
16 import nominatim.tools.exec_utils as exec_utils
17 import nominatim.paths
22 def test_run_osm2pgsql(osm2pgsql_options):
23 osm2pgsql_options['append'] = False
24 osm2pgsql_options['import_file'] = 'foo.bar'
25 osm2pgsql_options['tablespaces']['slim_data'] = 'extra'
26 exec_utils.run_osm2pgsql(osm2pgsql_options)
29 def test_run_osm2pgsql_disable_jit(osm2pgsql_options):
30 osm2pgsql_options['append'] = True
31 osm2pgsql_options['import_file'] = 'foo.bar'
32 osm2pgsql_options['disable_jit'] = True
33 exec_utils.run_osm2pgsql(osm2pgsql_options)