Commit Graph

130 Commits

Author SHA1 Message Date
Patrick Niklaus
085bab749f osrm-prepare -> osrm-contract 2016-03-01 16:43:34 +01:00
Moritz Kobitzsch
f14352f494 modify turn angles and instructions 2016-02-15 20:13:55 +01:00
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
Dane Springmeyer
2e762d05f9 Ensure key command line programs can be run before running cucumber tests
- Otherwise, currently, if osrm-extract crashes at startup then
    the tests continue on and will crash many many times.
  - This also tests that --help returns an exit code of zero and will
    catch if this behavior ever changes or is inconsistent between
    the command line programs
2016-02-09 17:49:47 -08:00
Patrick Niklaus
bf455c8d20 Fix empty parameter list 2016-01-26 22:56:19 +01:00
Patrick Niklaus
c05d23a586 Fix POST request 2016-01-26 22:56:19 +01:00
Freenerd
2a882aa58d Tests: Preserve param order on POST 2016-01-26 22:56:19 +01:00
Moritz Kobitzsch
1c1bfd7541 Fix routing when start and target are on the same segment
Fixes issue #1864. Given the simple set-up:

a --> b --> c
^-----------|

This would translate into an edge based graph (ab) -> (bc),
(bc) -> (ca), (ca) -> (ab).

Starting at the end of the one-way street (ab) and going to
the beginning, the query has to find a self-loop within the
graph (ab) -> (bc) -> (ca) -> (ab), as both nodes map to the
same segment (ab).
2016-01-19 23:26:19 +01:00
Daniel J. Hofmann
9959fd26bb Do not convert osm xml files to pbf for the cucumber tests 2016-01-13 17:57:22 +01:00
Patrick Niklaus
78ac3cffde Add max values for viaroute and trip and reorganize return code handling
"status" is now always:
 - 200 if the request was successful
 - 207 if the result is empty (no path found)
 - 400 if the request is invalid

 viaroute and trip now have a maximum of 500 and 100 locations
 respectively. Override with the --max-viaroute-size and --max-trip-size
 parameters.
2015-12-17 04:14:34 +01:00
Daniel Patterson
4ddbd2efb6 Expose component size variable as command-line option (this allows testing of big/small components in cucumber tests).
Add ability to pass extra parameters to  during tests.
Limit distance table search so that it doesn't return any big components if they're beyond max_distance.
2015-12-11 16:53:10 +01:00
Patrick Niklaus
cdb1918973 Refactor StaticRTree to remove application dependent code
StaticRTree now acts like a container, just returning the input data
(NodeBasedEdge) and not PhantomNodes.
2015-12-09 23:37:05 +01:00
Patrick Niklaus
4ec3102df2 Refactor cucumber tests 2015-12-09 21:17:18 +01:00
Fabien Girard
f2ee0aad20 Use now 3 parameters for matrix: loc/dst/src 2015-12-09 21:17:18 +01:00
Daniel Patterson
f87f18a291 Add support for 64bit OSM node id values. 2015-11-30 12:37:58 -08:00
Daniel Patterson
e45656e5bf Refactor edge expansion into extract phase. New temporary file is generated - '.osrm.ebg' which is used by 2015-10-06 09:23:17 -07:00
Andreas Gruß
de29574314 tests + instructions for map matching 2015-09-11 01:34:10 +02:00
Lauren Budorick
bac6703f8e Implement raster source feature to read data from third-party sources, to be used in lua profiles.
* Adds a data structure, RasterSource, to store parsed + queryable data
* Adds bindings for that and relevant data structures as well as source_function and segment_function
* Adds relevant unit tests and cucumber tests
* Bring-your-own-data feature
2015-09-03 22:28:18 -07:00
Huyen Chau Nguyen
a71159667d add cucumber test for the trip plugin 2015-09-01 15:20:35 +02:00
Patrick Niklaus
2ff2ce460c Add .core to cucumber renaming 2015-08-19 12:27:44 +02:00
Andreas Gruß
d726ce6340 removed send_simple_request 2015-06-07 12:20:03 +02:00
Andreas Gruß
b406844c96 rearranged send_request parameters 2015-06-07 11:06:37 +02:00
Andreas Gruß
153d38f10c post/get handler added, background section for HTTP request 2015-06-05 13:26:27 +02:00
Andreas Gruß
dce917eb74 post tests via query options available 2015-06-04 17:39:54 +02:00
Andreas Gruß
eb711787ae tests added 2015-06-03 15:31:20 +02:00
alex85k
a457d69034 fix cucumber tests running on Windows 2015-05-09 19:22:16 +05:00
Emil Tin
e1a13f5ce8 remove obsolete cucumber patch 2015-04-30 18:15:46 +02:00
Emil Tin
1ed2c16a51 upgrade to cucumber 2.0 2015-04-30 18:15:46 +02:00
Patrick Niklaus
bc8666df83 Add tests for matching 2015-03-08 01:32:13 +01:00
Patrick Niklaus
7829e3c132 Add step definition and support code for matching 2015-03-05 00:12:26 +01:00
Emil Tin
eebf3a54e2 cuke: abort if bins are missing, closes #1341 2015-01-12 13:56:43 +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
Emil Tin
593808f24d initial support for testing distance matrices 2015-01-01 15:12:45 +01:00
Patrick Niklaus
fc1db35f27 Add missing json dependency to cucumber 2014-11-23 13:29:22 +01:00
Emil Tin
93767d68f8 remove debug output 2014-10-17 15:07:56 +02:00
Emil Tin
cc3646ca16 fix tests that use {base} expansion 2014-10-17 15:07:56 +02:00
Emil Tin
48333f73d5 rename rather than copy then when possible 2014-10-17 15:07:56 +02:00
Emil Tin
1f4241a63d smarter caching of test files 2014-10-17 15:07:56 +02: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
Dennis Luxen
c9afd9a281 make dummy date in generated test files valid 2014-07-31 16:41:38 +02:00
Emil Tin
73b32bb45e enable setting query params in cuke tests 2014-07-22 13:24:26 +02:00
Guillaume Beraudo
d6bc3c5175 Remove unused test method 2014-06-24 17:18:52 +02:00
alex85k
d0284991ed patch Ruby files for successful testing on Windows 2014-06-11 18:38:01 +06:00
Emil Tin
21c4691d40 cuke: make File.tail utility more robust 2014-06-08 12:06:34 +02:00
Dennis Luxen
2d498cb88b adapt JSON parsing in tests to allow for omitted fields 2014-05-20 14:33:00 +02:00
Emil Tin
2cddf90e49 test different status message and query parsing 2014-05-07 10:38:28 +02:00