File tree 7 files changed +16
-5
lines changed
7 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "test/data-tests/osm-testdata "]
2
+ path = test/data-tests/osm-testdata
3
+ url = https://github.com/osmcode/osm-testdata
Original file line number Diff line number Diff line change @@ -210,7 +210,6 @@ matrix:
210
210
211
211
install :
212
212
- git clone --quiet --depth 1 https://github.com/mapbox/protozero.git ../protozero
213
- - git clone --quiet --depth 1 https://github.com/osmcode/osm-testdata.git ../osm-testdata
214
213
- |
215
214
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
216
215
brew remove gdal
@@ -220,6 +219,7 @@ install:
220
219
221
220
before_script :
222
221
- cd ${TRAVIS_BUILD_DIR}
222
+ - git submodule update --init
223
223
- mkdir build && cd build
224
224
- cmake -LA .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DBUILD_WITH_CCACHE=1 -DOSM_TESTDATA="${TRAVIS_BUILD_DIR}/../osm-testdata"
225
225
Original file line number Diff line number Diff line change @@ -513,8 +513,7 @@ include(CPack)
513
513
if (BUILD_DATA_TESTS AND OSM_TESTDATA STREQUAL "OSM_TESTDATA-NOTFOUND" )
514
514
message ("\n ========================== WARNING ==========================" )
515
515
message ("osm-testdata directory not found, data tests were disabled!\n " )
516
- message ("You can get it from https://github.com/osmcode/osm-testdata" )
517
- message ("Clone it into the same directory libosmium is in" )
516
+ message ("Call 'git submodule update --init' to install test data" )
518
517
message ("or set the OSM_TESTDATA cmake variable to its path." )
519
518
message ("=============================================================\n " )
520
519
endif ()
Original file line number Diff line number Diff line change @@ -76,6 +76,14 @@ chapter in the manual.
76
76
77
77
## Testing
78
78
79
+ To download the ` osm-testdata ` submodule call:
80
+
81
+ ```
82
+ git submodule update --init
83
+ ```
84
+
85
+ This will enable additional tests.
86
+
79
87
See the
80
88
[ Libosmium Manual] ( http://osmcode.org/libosmium/manual.html#running-tests )
81
89
for instructions.
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ clone_folder: c:\projects\libosmium
36
36
# halts: "msys2-runtime and catgets are in conflict. Remove catgets?"
37
37
# See also: https://github.com/Alexpux/MSYS2-packages/issues/1141
38
38
install :
39
+ - git submodule update --init
39
40
- cd c:\projects
40
- - git clone --depth 1 https://github.com/osmcode/osm-testdata
41
41
- git clone --depth 1 https://github.com/mapbox/protozero
42
42
- if [%config%]==[MSYS2] (
43
43
C:\msys64\usr\bin\pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade --ask=20
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if(NOT GDAL_FOUND OR NOT EXPAT_FOUND)
15
15
endif ()
16
16
17
17
message (STATUS "Looking for osm-testdata" )
18
- find_path (OSM_TESTDATA grid/data/all .osm HINT ../../../ osm-testdata)
18
+ find_path (OSM_TESTDATA grid/data/all .osm HINT osm-testdata)
19
19
if (OSM_TESTDATA STREQUAL "OSM_TESTDATA-NOTFOUND" )
20
20
message (STATUS "Looking for osm-testdata - not found (data tests disabled)" )
21
21
message (STATUS "Configuring data tests - failed" )
You can’t perform that action at this time.
0 commit comments