osrm-backend/features/support
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
..
config.rb Expose component size variable as command-line option (this allows testing of big/small components in cucumber tests). 2015-12-11 16:53:10 +01:00
data.rb Support passing OSRM_SHARED_LIBRARY_PATH env variable for cucumber tests 2016-02-11 02:43:51 +01:00
env.rb Support passing OSRM_SHARED_LIBRARY_PATH env variable for cucumber tests 2016-02-11 02:43:51 +01:00
exceptions.rb Do not convert osm xml files to pbf for the cucumber tests 2016-01-13 17:57:22 +01:00
file.rb cuke: make File.tail utility more robust 2014-06-08 12:06:34 +02:00
fuzzy.rb cleanup indentation of ruby files 2013-09-18 08:16:19 +02:00
hash.rb smarter caching of test files 2014-10-17 15:07:56 +02:00
hooks.rb Refactor cucumber tests 2015-12-09 21:17:18 +01:00
http.rb Fix empty parameter list 2016-01-26 22:56:19 +01:00
launch.rb Support passing OSRM_SHARED_LIBRARY_PATH env variable for cucumber tests 2016-02-11 02:43:51 +01:00
log.rb remove debug output 2014-10-17 15:07:56 +02:00
osm_parser.rb removing trailing whitespace in cuke/ruby files 2013-08-29 19:39:45 +02:00
osmlib.rb Adds the cucumber test framework referenced in issues #26, #95, #114 2012-02-15 10:50:43 +01:00
route.rb Add max values for viaroute and trip and reorganize return code handling 2015-12-17 04:14:34 +01:00
run.rb Support passing OSRM_SHARED_LIBRARY_PATH env variable for cucumber tests 2016-02-11 02:43:51 +01:00
shortcuts.rb update maxspeed tests, remove maxspeed from foot profile 2013-02-04 11:30:46 +01:00