]> git.openstreetmap.org Git - nominatim.git/blob - Makefile.am
move looksLikeLatLonPair into lib.php, basic PHP test suite using phpunit
[nominatim.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I osm2pgsql/m4
2 AUTOMAKE_OPTIONS = -Wno-portability
3
4 SUBDIRS = osm2pgsql module nominatim
5
6 NOMINATIM_SERVER ?= $(shell echo a | php -F lib/init.php -E 'echo CONST_Website_BaseURL."\n";')
7 NOMINATIM_DATABASE ?= $(shell echo a | php -F lib/init.php -E 'echo DB::parseDSN(CONST_Database_DSN)["database"];')
8
9 install:
10         @echo Nominatim needs to be executed directly from this directory. No install necessary.
11
12 test:
13         cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} lettuce -t -Fail -t -poldi-only
14
15 test-fast:
16         cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} NOMINATIM_REUSE_TEMPLATE=1 lettuce -t -Fail -t -poldi-only
17
18 test-db:
19         cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} lettuce -t -Fail -t -poldi-only features/db
20
21 test-db-fast:
22         cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} NOMINATIM_REUSE_TEMPLATE=1 lettuce -t -Fail -t -poldi-only features/db
23
24 test-api:
25         cd tests; NOMINATIM_SERVER=${NOMINATIM_SERVER} lettuce -t -Fail -t -poldi-only features/api
26
27 .PHONY: test test-fast test-db test-db-fast test-api