2014-04-21 09:24:42 -04:00
|
|
|
@extract @options @help
|
|
|
|
Feature: osrm-extract command line options: help
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
2014-04-21 11:20:15 -04:00
|
|
|
|
2014-04-21 09:24:42 -04:00
|
|
|
Scenario: osrm-extract - Help should be shown when no options are passed
|
|
|
|
When I run "osrm-extract"
|
|
|
|
Then stderr should be empty
|
2016-12-26 13:59:07 -05:00
|
|
|
And stdout should contain /osrm-extract(.exe)? <input.osm/.osm.bz2/.osm.pbf> \[options\]:/
|
2014-04-21 09:24:42 -04:00
|
|
|
And stdout should contain "Options:"
|
|
|
|
And stdout should contain "--version"
|
|
|
|
And stdout should contain "--help"
|
2017-08-28 15:20:13 -04:00
|
|
|
And stdout should contain "--verbosity"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stdout should contain "Configuration:"
|
|
|
|
And stdout should contain "--profile"
|
|
|
|
And stdout should contain "--threads"
|
2015-12-10 11:37:41 -05:00
|
|
|
And stdout should contain "--small-component-size"
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit successfully
|
2014-04-21 09:24:42 -04:00
|
|
|
|
|
|
|
Scenario: osrm-extract - Help, short
|
|
|
|
When I run "osrm-extract -h"
|
|
|
|
Then stderr should be empty
|
2016-12-26 13:59:07 -05:00
|
|
|
And stdout should contain /osrm-extract(.exe)? <input.osm/.osm.bz2/.osm.pbf> \[options\]:/
|
2014-04-21 09:24:42 -04:00
|
|
|
And stdout should contain "Options:"
|
|
|
|
And stdout should contain "--version"
|
|
|
|
And stdout should contain "--help"
|
2017-08-28 15:20:13 -04:00
|
|
|
And stdout should contain "--verbosity"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stdout should contain "Configuration:"
|
|
|
|
And stdout should contain "--profile"
|
|
|
|
And stdout should contain "--threads"
|
2015-12-10 11:37:41 -05:00
|
|
|
And stdout should contain "--small-component-size"
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit successfully
|
2014-04-21 09:24:42 -04:00
|
|
|
|
|
|
|
Scenario: osrm-extract - Help, long
|
|
|
|
When I run "osrm-extract --help"
|
|
|
|
Then stderr should be empty
|
2016-12-26 13:59:07 -05:00
|
|
|
And stdout should contain /osrm-extract(.exe)? <input.osm/.osm.bz2/.osm.pbf> \[options\]:/
|
2014-04-21 09:24:42 -04:00
|
|
|
And stdout should contain "Options:"
|
|
|
|
And stdout should contain "--version"
|
|
|
|
And stdout should contain "--help"
|
2017-08-28 15:20:13 -04:00
|
|
|
And stdout should contain "--verbosity"
|
2014-04-21 09:24:42 -04:00
|
|
|
And stdout should contain "Configuration:"
|
|
|
|
And stdout should contain "--profile"
|
|
|
|
And stdout should contain "--threads"
|
2015-12-10 11:37:41 -05:00
|
|
|
And stdout should contain "--small-component-size"
|
2016-09-19 17:13:44 -04:00
|
|
|
And it should exit successfully
|