reorganize options tests
This commit is contained in:
parent
0b655ea6a1
commit
c299989ff7
74
features/options/help.feature
Normal file
74
features/options/help.feature
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
@routing @options
|
||||||
|
Feature: Command line options: help
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the profile "testbot"
|
||||||
|
|
||||||
|
Scenario: No options should show help
|
||||||
|
When I run "osrm-routed"
|
||||||
|
Then it should exit with code 0
|
||||||
|
And 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"
|
||||||
|
|
||||||
|
Scenario: Help, short
|
||||||
|
When I run "osrm-routed -h"
|
||||||
|
Then it should exit with code 0
|
||||||
|
And 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"
|
||||||
|
|
||||||
|
Scenario: Help, long
|
||||||
|
When I run "osrm-routed --help"
|
||||||
|
Then it should exit with code 0
|
||||||
|
And 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"
|
16
features/options/invalid.feature
Normal file
16
features/options/invalid.feature
Normal 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"
|
@ -1,47 +0,0 @@
|
|||||||
@routing @options
|
|
||||||
Feature: Command line options
|
|
||||||
|
|
||||||
Background:
|
|
||||||
Given the profile "testbot"
|
|
||||||
|
|
||||||
Scenario: No options
|
|
||||||
When I run "osrm-routed"
|
|
||||||
Then it should exit with code 0
|
|
||||||
And stderr should be empty
|
|
||||||
And stdout should contain "osrm-routed <base.osrm> [<options>]:"
|
|
||||||
And stdout should contain "Options:"
|
|
||||||
And stdout should contain "Configuration:"
|
|
||||||
|
|
||||||
Scenario: Help
|
|
||||||
When I run "osrm-routed --help"
|
|
||||||
Then it should exit with code 0
|
|
||||||
And 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"
|
|
||||||
|
|
||||||
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 overtherainbow.osrm"
|
|
||||||
Then it should exit with code 255
|
|
||||||
And stderr should contain "does not exist"
|
|
17
features/options/version.feature
Normal file
17
features/options/version.feature
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@routing @options
|
||||||
|
Feature: Command line options: version
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the profile "testbot"
|
||||||
|
|
||||||
|
Scenario: Version, short
|
||||||
|
When I run "osrm-routed -v"
|
||||||
|
Then it should exit with code 0
|
||||||
|
And stderr should be empty
|
||||||
|
And stdout should contain " v0."
|
||||||
|
|
||||||
|
Scenario: Version, long
|
||||||
|
When I run "osrm-routed --version"
|
||||||
|
Then it should exit with code 0
|
||||||
|
And stderr should be empty
|
||||||
|
And stdout should contain " v0."
|
Loading…
Reference in New Issue
Block a user