2018-04-05 07:24:23 -04:00
|
|
|
@datastore @options @help
|
2018-04-05 20:49:23 -04:00
|
|
|
Feature: osrm-datastore command line options
|
2018-04-05 07:24:23 -04:00
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
And the node map
|
|
|
|
"""
|
|
|
|
a b
|
|
|
|
"""
|
|
|
|
And the ways
|
|
|
|
| nodes |
|
|
|
|
| ab |
|
|
|
|
And the data has been contracted
|
|
|
|
|
|
|
|
Scenario: osrm-datastore - Help should be shown when no options are passed
|
|
|
|
When I try to run "osrm-datastore --dataset-name test_dataset_42 {processed_file}"
|
|
|
|
Then it should exit successfully
|
|
|
|
When I try to run "osrm-datastore --list"
|
|
|
|
Then it should exit successfully
|
2018-04-05 20:49:23 -04:00
|
|
|
And stdout should contain "test_dataset_42/static"
|
|
|
|
|
|
|
|
Scenario: osrm-datastore - Only metric update should work
|
|
|
|
Given the speed file
|
|
|
|
"""
|
|
|
|
0,1,50
|
|
|
|
"""
|
|
|
|
And the data has been extracted
|
|
|
|
When I try to run "osrm-datastore {processed_file} --dataset-name cucumber/only_metric_test"
|
|
|
|
Then it should exit successfully
|
|
|
|
When I try to run "osrm-customize --segment-speed-file {speeds_file} {processed_file}"
|
|
|
|
Then it should exit successfully
|
|
|
|
When I try to run "osrm-datastore {processed_file} --dataset-name cucumber/only_metric_test --only-metric"
|
|
|
|
Then it should exit successfully
|