2014-04-21 09:24:42 -04:00
|
|
|
@prepare @options @files
|
2016-02-14 13:35:37 -05:00
|
|
|
Feature: osrm-contract command line options: files
|
2014-04-21 09:24:42 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
And the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b
|
|
|
|
"""
|
2014-04-21 09:24:42 -04:00
|
|
|
And the ways
|
|
|
|
| nodes |
|
|
|
|
| ab |
|
|
|
|
And the data has been extracted
|
|
|
|
|
2016-02-14 13:35:37 -05:00
|
|
|
Scenario: osrm-contract - Passing base file
|
2016-09-19 17:13:44 -04:00
|
|
|
When I run "osrm-contract {processed_file}"
|
|
|
|
Then it should exit successfully
|
2014-04-21 11:20:15 -04:00
|
|
|
|
2016-02-14 13:35:37 -05:00
|
|
|
Scenario: osrm-contract - Missing input file
|
2016-09-19 17:13:44 -04:00
|
|
|
When I try to run "osrm-contract over-the-rainbow.osrm"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stderr should contain "over-the-rainbow.osrm"
|
2017-07-24 20:05:15 -04:00
|
|
|
And stderr should contain "Missing/Broken"
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit with an error
|