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
|
|
|
# expansions:
|
2014-10-17 08:48:52 -04:00
|
|
|
# {extracted_base} => path to current extracted input file
|
2014-04-21 09:24:42 -04:00
|
|
|
# {profile} => path to current profile script
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
And the node map
|
|
|
|
| a | b |
|
|
|
|
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
|
|
|
|
When I run "osrm-contract {extracted_base}.osrm"
|
2014-04-21 09:24:42 -04:00
|
|
|
Then stderr should be empty
|
|
|
|
And it should exit with code 0
|
2014-04-21 11:20:15 -04:00
|
|
|
|
2016-02-14 13:35:37 -05:00
|
|
|
Scenario: osrm-contract - Missing input file
|
|
|
|
When I run "osrm-contract over-the-rainbow.osrm"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stderr should contain "over-the-rainbow.osrm"
|
|
|
|
And stderr should contain "not found"
|
|
|
|
And it should exit with code 1
|