reorganize options tests

This commit is contained in:
Emil Tin
2014-03-22 00:32:35 +01:00
parent 0b655ea6a1
commit c299989ff7
4 changed files with 107 additions and 47 deletions
+16
View File
@@ -0,0 +1,16 @@
@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 it should exit with code 255
Then stdout should be empty
And stderr should contain "fly-me-to-the-moon"
Scenario: Missing file
When I run "osrm-routed over-the-rainbow.osrm"
Then it should exit with code 255
And stderr should contain "does not exist"