Close GH-2795: Rewrite cucumber test caching (and support logic). Fixes #2745
This commit is contained in:
committed by
Dane Springmeyer
parent
8522cddd61
commit
7d124ce54d
@@ -1,8 +1,7 @@
|
||||
@prepare @options @files
|
||||
Feature: osrm-contract command line options: datasources
|
||||
# expansions:
|
||||
# {extracted_base} => path to current extracted input file
|
||||
# {profile} => path to current profile script
|
||||
# {processed_file} => path to .osrm file
|
||||
|
||||
Background:
|
||||
Given the profile "testbot"
|
||||
@@ -24,7 +23,6 @@ Feature: osrm-contract command line options: datasources
|
||||
And the data has been extracted
|
||||
|
||||
Scenario: osrm-contract - Passing base file
|
||||
When I run "osrm-contract --segment-speed-file speeds.csv {extracted_base}.osrm"
|
||||
Then stderr should be empty
|
||||
And datasource names should contain "lua profile,speeds"
|
||||
And it should exit with code 0
|
||||
When I run "osrm-contract --segment-speed-file {speeds_file} {processed_file}"
|
||||
Then datasource names should contain "lua profile,25_osrmcontract_passing_base_file_speeds"
|
||||
And it should exit successfully
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
@prepare @options @files
|
||||
Feature: osrm-contract command line options: files
|
||||
# expansions:
|
||||
# {extracted_base} => path to current extracted input file
|
||||
# {profile} => path to current profile script
|
||||
|
||||
Background:
|
||||
Given the profile "testbot"
|
||||
And the node map
|
||||
@@ -14,12 +10,11 @@ Feature: osrm-contract command line options: files
|
||||
And the data has been extracted
|
||||
|
||||
Scenario: osrm-contract - Passing base file
|
||||
When I run "osrm-contract {extracted_base}.osrm"
|
||||
Then stderr should be empty
|
||||
And it should exit with code 0
|
||||
When I run "osrm-contract {processed_file}"
|
||||
Then it should exit successfully
|
||||
|
||||
Scenario: osrm-contract - Missing input file
|
||||
When I run "osrm-contract over-the-rainbow.osrm"
|
||||
When I try to run "osrm-contract over-the-rainbow.osrm"
|
||||
And stderr should contain "over-the-rainbow.osrm"
|
||||
And stderr should contain "not found"
|
||||
And it should exit with code 1
|
||||
And it should exit with an error
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Feature: osrm-contract command line options: help
|
||||
|
||||
Scenario: osrm-contract - Help should be shown when no options are passed
|
||||
When I run "osrm-contract"
|
||||
When I try to run "osrm-contract"
|
||||
Then stderr should be empty
|
||||
And stdout should contain "osrm-contract <input.osrm> [options]:"
|
||||
And stdout should contain "Options:"
|
||||
@@ -13,7 +13,7 @@ Feature: osrm-contract command line options: help
|
||||
And stdout should contain "--core"
|
||||
And stdout should contain "--level-cache"
|
||||
And stdout should contain "--segment-speed-file"
|
||||
And it should exit with code 1
|
||||
And it should exit with an error
|
||||
|
||||
Scenario: osrm-contract - Help, short
|
||||
When I run "osrm-contract -h"
|
||||
@@ -27,7 +27,7 @@ Feature: osrm-contract command line options: help
|
||||
And stdout should contain "--core"
|
||||
And stdout should contain "--level-cache"
|
||||
And stdout should contain "--segment-speed-file"
|
||||
And it should exit with code 0
|
||||
And it should exit successfully
|
||||
|
||||
Scenario: osrm-contract - Help, long
|
||||
When I run "osrm-contract --help"
|
||||
@@ -41,4 +41,4 @@ Feature: osrm-contract command line options: help
|
||||
And stdout should contain "--core"
|
||||
And stdout should contain "--level-cache"
|
||||
And stdout should contain "--segment-speed-file"
|
||||
And it should exit with code 0
|
||||
And it should exit successfully
|
||||
|
||||
@@ -5,8 +5,8 @@ Feature: osrm-contract command line options: invalid options
|
||||
Given the profile "testbot"
|
||||
|
||||
Scenario: osrm-contract - Non-existing option
|
||||
When I run "osrm-contract --fly-me-to-the-moon"
|
||||
When I try to run "osrm-contract --fly-me-to-the-moon"
|
||||
Then stdout should be empty
|
||||
And stderr should contain "option"
|
||||
And stderr should contain "fly-me-to-the-moon"
|
||||
And it should exit with code 1
|
||||
And it should exit with an error
|
||||
|
||||
@@ -12,11 +12,11 @@ Feature: osrm-contract command line options: version
|
||||
Then stderr should be empty
|
||||
And stdout should contain 1 line
|
||||
And stdout should contain /(v\d{1,2}\.\d{1,2}\.\d{1,2}|\w*-\d+-\w+)/
|
||||
And it should exit with code 0
|
||||
And it should exit successfully
|
||||
|
||||
Scenario: osrm-contract - Version, long
|
||||
When I run "osrm-contract --version"
|
||||
Then stderr should be empty
|
||||
And stdout should contain 1 line
|
||||
And stdout should contain /(v\d{1,2}\.\d{1,2}\.\d{1,2}|\w*-\d+-\w+)/
|
||||
And it should exit with code 0
|
||||
And it should exit successfully
|
||||
|
||||
Reference in New Issue
Block a user