File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,10 +308,6 @@ if (BUILD_TESTS)
308308 set(TESTING_TIMEOUT 1200)
309309 endif()
310310 add_subdirectory(tests)
311- configure_file(
312- ${PROJECT_SOURCE_DIR} /tests/run-behave.in
313- ${PROJECT_BINARY_DIR} /run-behave
314- )
315311else()
316312 message(STATUS " Tests disabled. Set BUILD_TESTS=ON to enable tests. ")
317313endif()
Original file line number Diff line number Diff line change @@ -118,14 +118,15 @@ if (NOT WIN32)
118118 set_tests_properties(FixtureTablespaceCleanup PROPERTIES FIXTURES_CLEANUP Tablespace)
119119endif()
120120
121+ configure_file(run-bdd-tests.in ${PROJECT_BINARY_DIR} /run-bdd-tests)
121122
122123find_program(BEHAVE_BIN NAMES behave)
123124
124125if (BEHAVE_BIN)
125126 foreach(BDD_TEST IN ITEMS command-line flex regression)
126127 add_test(NAME bdd-${BDD_TEST}
127- COMMAND behave -DBINARY=$< TARGET_FILE : osm2pgsql > ${BDD_TEST}
128- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /bdd )
128+ COMMAND ./run-bdd-tests ${CMAKE_CURRENT_SOURCE_DIR} /bdd/ ${BDD_TEST}
129+ WORKING_DIRECTORY ${PROJECT_BINARY_DIR} )
129130 message(STATUS " Added test : bdd-${BDD_TEST} ")
130131 endforeach(BDD_TEST)
131132
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ @PROJECT_SOURCE_DIR@/scripts/osm2pgsql-test-style --style-data-dir @PROJECT_SOURCE_DIR@ --test-data-dir @CMAKE_CURRENT_SOURCE_DIR@/data/ --osm2pgsql-binary @PROJECT_BINARY_DIR@/osm2pgsql " $@ "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments