cuke: test file options

This commit is contained in:
Emil Tin
2014-03-22 11:36:42 +01:00
parent 7048dd754d
commit 9e10b94339
6 changed files with 88 additions and 67 deletions
+9 -9
View File
@@ -3,15 +3,15 @@ Feature: Command line options: version
Background:
Given the profile "testbot"
Scenario: Version, short
When I run "osrm-routed -v"
Scenario Outline: Version
When I run "osrm-routed <program_options>"
Then stderr should be empty
And stdout should contain " v0."
And stdout should contain 1 line
And stdout should contain /v\d{1,2}\.\d{1,2}\.\d{1,2}/
And it should exit with code 0
Scenario: Version, long
When I run "osrm-routed --version"
Then stderr should be empty
And stdout should contain " v0."
And it should exit with code 0
Examples:
| program_options |
| -v |
| --version |