Commit Graph

23 Commits

Author SHA1 Message Date
Dane Springmeyer
6eebb1c089 Support passing OSRM_SHARED_LIBRARY_PATH env variable for cucumber tests
The need for this is that:

  - On OS X if libraries are stored in custom locations (not /usr/lib or /usr/local)
    and they do not embed an rpath (which is common to not have) then the developer
    needs to set DYLD_LIBRARY_PATH to ensure that osrm tools can find dependent libraries
    at runtime (this is normal and common).
  - But as of OS X > 10.11 DYLD_LIBRARY_PATH no longer is inherited. While it works in
    the main shell when running a command like `osrm-extract` you will find that when
    `osrm-extract` is run by cucumber (ruby child process) then DYLD_LIBRARY_PATH
    is blocked and the command cannot start.
  - So, this introduces the ability to pass in a variable that the cucumber tests will
    understand and can manually forward along to ensure that DYLD_LIBRARY_PATH is respected
    where it counts.

The intended usage of this is therefore:

    # set the environment variable
    export OSRM_SHARED_LIBRARY_PATH=${DYLD_LIBRARY_PATH}
    # then run cucumber tests
    cucumber -p verify
2016-02-11 02:43:51 +01:00
Dennis Luxen
b1a12768e1 fix parameter name for maximum number of location in distance table plugin 2015-01-08 17:41:19 +01:00
Patrick Niklaus
fc1db35f27 Add missing json dependency to cucumber 2014-11-23 13:29:22 +01:00
Emil Tin
8438024370 avoid unnessecary process check 2014-10-14 16:05:06 +02:00
Emil Tin
71b967d243 test both datastore and direct data load 2014-10-14 15:35:14 +02:00
Emil Tin
76fb0cb965 get process handling up to date 2014-10-13 11:19:49 +02:00
Emil Tin
db06cdb4ce adjust datastore testing 2014-10-13 10:58:03 +02:00
Emil Tin
7ba8e51fa9 use osrm-database during testing 2014-10-13 10:58:03 +02:00
alex85k
d0284991ed patch Ruby files for successful testing on Windows 2014-06-11 18:38:01 +06:00
Emil Tin
2d599a5190 cuke: optional timeout 2014-03-31 21:45:53 +02:00
Emil Tin
3ccd3b5650 cuke: increase osrm launch/shutdown timeout 2014-03-31 13:55:29 +02:00
Emil Tin
c1806476af cuke: test osrm-routed options 2014-03-19 19:28:24 +01:00
Emil Tin
af41c9f6e4 cuke: detach osrm-routed to avoid zombie processes 2014-03-19 18:03:47 +01:00
Emil Tin
613e38d7f8 use boost program_options in osrm-prepare/routed 2013-10-12 09:59:42 +02:00
Emil Tin
407d73a735 removing trailing whitespace in cuke/ruby files 2013-08-29 19:39:45 +02:00
Emil Tin
36f3c0f77a make cuke use bins in build/ 2013-04-26 10:22:32 +02:00
Emil Tin
102e87bcc0 clean up log extracts during cuke failures 2012-12-17 19:27:18 +01:00
Emil Tin
604043e3d8 add log extracts if osrm-routed or osmosis fails during tests 2012-12-17 19:22:05 +01:00
Emil Tin
2ea5714d95 use ps to check if process is still running 2012-12-16 20:51:19 +01:00
Emil Tin
a51c7416d5 use ruby 1.9 and Process.spawn when running test 2012-12-16 19:45:26 +01:00
Emil Tin
7e9614b9ec kill osrm-routed if it refuses to shutdown in cuke tests 2012-12-15 17:01:24 +01:00
Emil Tin
ae106a3a90 improve cuke process management, support OSRM_PORT 2012-12-15 12:38:07 +01:00
Emil Tin
eeea5b0e81 Adds the cucumber test framework referenced in issues #26, #95, #114 2012-02-15 10:50:43 +01:00