2014-04-21 09:24:42 -04:00
|
|
|
@prepare @options @help
|
|
|
|
Feature: osrm-prepare 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-prepare - Help should be shown when no options are passed
|
|
|
|
When I run "osrm-prepare"
|
|
|
|
Then stderr should be empty
|
|
|
|
And stdout should contain "osrm-prepare <input.osrm> [options]:"
|
|
|
|
And stdout should contain "Options:"
|
|
|
|
And stdout should contain "--version"
|
|
|
|
And stdout should contain "--help"
|
|
|
|
And stdout should contain "Configuration:"
|
|
|
|
And stdout should contain "--profile"
|
|
|
|
And stdout should contain "--threads"
|
2015-07-13 15:09:19 -04:00
|
|
|
And stdout should contain "--core"
|
2015-11-18 11:48:28 -05:00
|
|
|
And stdout should contain "--level-cache"
|
2015-10-14 18:08:22 -04:00
|
|
|
And stdout should contain "--segment-speed-file"
|
2016-02-15 20:49:49 -05:00
|
|
|
And stdout should contain 18 lines
|
2015-05-11 19:13:13 -04:00
|
|
|
And it should exit with code 1
|
2014-04-21 09:24:42 -04:00
|
|
|
|
|
|
|
Scenario: osrm-prepare - Help, short
|
|
|
|
When I run "osrm-prepare -h"
|
|
|
|
Then stderr should be empty
|
|
|
|
And stdout should contain "osrm-prepare <input.osrm> [options]:"
|
|
|
|
And stdout should contain "Options:"
|
|
|
|
And stdout should contain "--version"
|
|
|
|
And stdout should contain "--help"
|
|
|
|
And stdout should contain "Configuration:"
|
|
|
|
And stdout should contain "--profile"
|
|
|
|
And stdout should contain "--threads"
|
2015-07-13 15:09:19 -04:00
|
|
|
And stdout should contain "--core"
|
2015-11-18 11:48:28 -05:00
|
|
|
And stdout should contain "--level-cache"
|
2015-10-14 18:08:22 -04:00
|
|
|
And stdout should contain "--segment-speed-file"
|
2016-02-15 20:49:49 -05:00
|
|
|
And stdout should contain 18 lines
|
2014-04-21 09:24:42 -04:00
|
|
|
And it should exit with code 0
|
|
|
|
|
|
|
|
Scenario: osrm-prepare - Help, long
|
|
|
|
When I run "osrm-prepare --help"
|
|
|
|
Then stderr should be empty
|
|
|
|
And stdout should contain "osrm-prepare <input.osrm> [options]:"
|
|
|
|
And stdout should contain "Options:"
|
|
|
|
And stdout should contain "--version"
|
|
|
|
And stdout should contain "--help"
|
|
|
|
And stdout should contain "Configuration:"
|
|
|
|
And stdout should contain "--profile"
|
|
|
|
And stdout should contain "--threads"
|
2015-07-13 15:09:19 -04:00
|
|
|
And stdout should contain "--core"
|
2015-11-18 11:48:28 -05:00
|
|
|
And stdout should contain "--level-cache"
|
2015-10-14 18:08:22 -04:00
|
|
|
And stdout should contain "--segment-speed-file"
|
2016-02-15 20:49:49 -05:00
|
|
|
And stdout should contain 18 lines
|
2014-04-21 11:20:15 -04:00
|
|
|
And it should exit with code 0
|