osrm-backend/features/options/contract/files.feature

26 lines
831 B
Gherkin
Raw Normal View History

@prepare @options @files
2016-02-14 13:35:37 -05:00
Feature: osrm-contract command line options: files
# expansions:
2014-10-17 08:48:52 -04:00
# {extracted_base} => path to current extracted input file
# {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"
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"
And stderr should contain "over-the-rainbow.osrm"
And stderr should contain "not found"
And it should exit with code 1