2014-04-21 09:24:42 -04:00
|
|
|
@prepare @options @invalid
|
2016-02-14 13:35:37 -05:00
|
|
|
Feature: osrm-contract command line options: invalid options
|
2014-04-21 09:24:42 -04:00
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
2016-12-07 14:42:13 -05:00
|
|
|
And the node map
|
|
|
|
"""
|
|
|
|
a b
|
|
|
|
"""
|
|
|
|
And the ways
|
|
|
|
| nodes |
|
|
|
|
| ab |
|
|
|
|
And the data has been extracted
|
2014-04-21 11:20:15 -04:00
|
|
|
|
2016-02-14 13:35:37 -05:00
|
|
|
Scenario: osrm-contract - Non-existing option
|
2016-09-19 17:13:44 -04:00
|
|
|
When I try to run "osrm-contract --fly-me-to-the-moon"
|
2014-04-21 09:24:42 -04:00
|
|
|
Then stdout should be empty
|
2014-04-21 13:25:24 -04:00
|
|
|
And stderr should contain "option"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stderr should contain "fly-me-to-the-moon"
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit with an error
|
2016-12-07 14:42:13 -05:00
|
|
|
|
|
|
|
# This tests the error messages when you try to use --segment-speed-file,
|
|
|
|
# but osrm-extract has not been run with --generate-edge-lookup
|
|
|
|
Scenario: osrm-contract - Someone forgot --generate-edge-lookup on osrm-extract
|
|
|
|
When I try to run "osrm-contract --segment-speed-file /dev/null {processed_file}"
|
|
|
|
Then stderr should contain "Error while trying to mmap"
|
|
|
|
Then stderr should contain ".osrm.edge_penalties"
|
|
|
|
And it should exit with an error
|