cuke: don't use scenario outlines, to fix problem with jenkins

This commit is contained in:
Emil Tin 2014-03-25 07:04:51 +01:00
parent aae3637e0c
commit b0ce9e4af7
2 changed files with 55 additions and 13 deletions

View File

@ -4,8 +4,8 @@ Feature: Command line options: help
Background: Background:
Given the profile "testbot" Given the profile "testbot"
Scenario Outline: Help Scenario: Help should be shown when no options are passed
When I run "osrm-routed <program_options>" When I run "osrm-routed"
Then stderr should be empty Then stderr should be empty
And stdout should contain "osrm-routed <base.osrm> [<options>]:" And stdout should contain "osrm-routed <base.osrm> [<options>]:"
And stdout should contain "Options:" And stdout should contain "Options:"
@ -27,8 +27,48 @@ Feature: Command line options: help
And stdout should contain "--sharedmemory" And stdout should contain "--sharedmemory"
And it should exit with code 0 And it should exit with code 0
Examples: Scenario: Help, short
| program_options | When I run "osrm-routed -h"
| | Then stderr should be empty
| -h | And stdout should contain "osrm-routed <base.osrm> [<options>]:"
| --help | And stdout should contain "Options:"
And stdout should contain "--version"
And stdout should contain "--help"
And stdout should contain "--config"
And stdout should contain "--trial"
And stdout should contain "Configuration:"
And stdout should contain "--hsgrdata arg"
And stdout should contain "--nodesdata arg"
And stdout should contain "--edgesdata arg"
And stdout should contain "--ramindex arg"
And stdout should contain "--fileindex arg"
And stdout should contain "--namesdata arg"
And stdout should contain "--timestamp arg"
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And it should exit with code 0
Scenario: Help, long
When I run "osrm-routed --help"
Then stderr should be empty
And stdout should contain "osrm-routed <base.osrm> [<options>]:"
And stdout should contain "Options:"
And stdout should contain "--version"
And stdout should contain "--help"
And stdout should contain "--config"
And stdout should contain "--trial"
And stdout should contain "Configuration:"
And stdout should contain "--hsgrdata arg"
And stdout should contain "--nodesdata arg"
And stdout should contain "--edgesdata arg"
And stdout should contain "--ramindex arg"
And stdout should contain "--fileindex arg"
And stdout should contain "--namesdata arg"
And stdout should contain "--timestamp arg"
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And it should exit with code 0

View File

@ -4,14 +4,16 @@ Feature: Command line options: version
Background: Background:
Given the profile "testbot" Given the profile "testbot"
Scenario Outline: Version Scenario: Version, short
When I run "osrm-routed <program_options>" When I run "osrm-routed --v"
Then stderr should be empty Then stderr should be empty
And stdout should contain 1 line And stdout should contain 1 line
And stdout should contain /v\d{1,2}\.\d{1,2}\.\d{1,2}/ And stdout should contain /v\d{1,2}\.\d{1,2}\.\d{1,2}/
And it should exit with code 0 And it should exit with code 0
Examples: Scenario: Version, long
| program_options | When I run "osrm-routed --version"
| -v | Then stderr should be empty
| --version | 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