2014-04-21 09:24:42 -04:00
|
|
|
@extract @options @files
|
|
|
|
Feature: osrm-extract command line options: files
|
|
|
|
# expansions:
|
2014-10-17 08:48:52 -04:00
|
|
|
# {osm_base} => path to current 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
|
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 saved to disk
|
|
|
|
|
|
|
|
Scenario: osrm-extract - Passing base file
|
2016-09-19 17:13:44 -04:00
|
|
|
When I run "osrm-extract {osm_file} --profile {profile_file}"
|
|
|
|
Then it should exit successfully
|
2014-04-21 09:24:42 -04:00
|
|
|
|
|
|
|
Scenario: osrm-extract - Order of options should not matter
|
2016-09-19 17:13:44 -04:00
|
|
|
When I run "osrm-extract --profile {profile_file} {osm_file}"
|
|
|
|
Then it should exit successfully
|
2014-04-21 11:20:15 -04:00
|
|
|
|
2014-04-21 09:24:42 -04:00
|
|
|
Scenario: osrm-extract - Missing input file
|
2016-09-19 17:13:44 -04:00
|
|
|
When I try to run "osrm-extract over-the-rainbow.osrm --profile {profile_file}"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stderr should contain "over-the-rainbow.osrm"
|
|
|
|
And stderr should contain "not found"
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit with an error
|