2014-03-21 19:32:35 -04:00
|
|
|
@routing @options
|
|
|
|
Feature: Command line options: invalid options
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
|
|
|
|
Scenario: Non-existing option
|
|
|
|
When I run "osrm-routed --fly-me-to-the-moon"
|
|
|
|
Then stdout should be empty
|
2014-03-21 19:38:53 -04:00
|
|
|
And stderr should contain "exception"
|
2014-03-21 19:32:35 -04:00
|
|
|
And stderr should contain "fly-me-to-the-moon"
|
2014-03-21 19:47:20 -04:00
|
|
|
And it should exit with code 255
|
2014-03-21 19:32:35 -04:00
|
|
|
|
|
|
|
Scenario: Missing file
|
|
|
|
When I run "osrm-routed over-the-rainbow.osrm"
|
2014-03-21 19:47:20 -04:00
|
|
|
Then stdout should contain "over-the-rainbow.osrm"
|
2014-03-21 19:38:53 -04:00
|
|
|
And stderr should contain "exception"
|
2014-03-21 19:47:20 -04:00
|
|
|
And stderr should contain "does not exist"
|
|
|
|
And it should exit with code 255
|
|
|
|
|