-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3788 from Project-OSRM/mld/routing
MLD shortest direct path search
- Loading branch information
Showing
54 changed files
with
1,628 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@customize @options @files | ||
Feature: osrm-contract command line options: files | ||
Background: | ||
Given the profile "testbot" | ||
And the node map | ||
""" | ||
a b | ||
""" | ||
And the ways | ||
| nodes | | ||
| ab | | ||
And the data has been extracted | ||
And the data has been partitioned | ||
|
||
Scenario: osrm-customize - Passing base file | ||
When I run "osrm-customize {processed_file}" | ||
Then it should exit successfully | ||
|
||
Scenario: osrm-customize - Missing input file | ||
When I try to run "osrm-customize over-the-rainbow.osrm" | ||
And stderr should contain "over-the-rainbow.osrm" | ||
And stderr should contain "not found" | ||
And it should exit with an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@contract @options @help | ||
Feature: osrm-customize command line options: help | ||
|
||
Scenario: osrm-customize - Help should be shown when no options are passed | ||
When I try to run "osrm-customize" | ||
Then stderr should be empty | ||
And stdout should contain /osrm-customize(.exe)? <input.osrm> \[options\]:/ | ||
And stdout should contain "Options:" | ||
And stdout should contain "--version" | ||
And stdout should contain "--help" | ||
And stdout should contain "Configuration:" | ||
And stdout should contain "--threads" | ||
And it should exit with an error | ||
|
||
Scenario: osrm-customize - Help, short | ||
When I run "osrm-customize -h" | ||
Then stderr should be empty | ||
And stdout should contain /osrm-customize(.exe)? <input.osrm> \[options\]:/ | ||
And stdout should contain "Options:" | ||
And stdout should contain "--version" | ||
And stdout should contain "--help" | ||
And stdout should contain "Configuration:" | ||
And stdout should contain "--threads" | ||
And it should exit successfully | ||
|
||
Scenario: osrm-customize - Help, long | ||
When I run "osrm-customize --help" | ||
Then stderr should be empty | ||
And stdout should contain /osrm-customize(.exe)? <input.osrm> \[options\]:/ | ||
And stdout should contain "Options:" | ||
And stdout should contain "--version" | ||
And stdout should contain "--help" | ||
And stdout should contain "Configuration:" | ||
And stdout should contain "--threads" | ||
And it should exit successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@prepare @options @invalid | ||
Feature: osrm-customize command line options: invalid options | ||
|
||
Background: | ||
Given the profile "testbot" | ||
And the node map | ||
""" | ||
a b | ||
""" | ||
And the ways | ||
| nodes | | ||
| ab | | ||
And the data has been extracted | ||
|
||
Scenario: osrm-customize - Non-existing option | ||
When I try to run "osrm-customize --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 an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@prepare @options @version | ||
Feature: osrm-customize command line options: version | ||
|
||
Background: | ||
Given the profile "testbot" | ||
|
||
Scenario: osrm-customize - Version, short | ||
When I run "osrm-customize --v" | ||
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 successfully | ||
|
||
Scenario: osrm-customize - Version, long | ||
When I run "osrm-customize --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 successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@partition @options @files | ||
Feature: osrm-partition command line options: files | ||
Background: | ||
Given the profile "testbot" | ||
And the node map | ||
""" | ||
a b | ||
""" | ||
And the ways | ||
| nodes | | ||
| ab | | ||
And the data has been extracted | ||
|
||
Scenario: osrm-partition - Passing base file | ||
When I run "osrm-partition {processed_file}" | ||
Then it should exit successfully | ||
|
||
Scenario: osrm-partition - Missing input file | ||
When I try to run "osrm-partition over-the-rainbow.osrm" | ||
And stderr should contain "over-the-rainbow.osrm" | ||
And stderr should contain "not found" | ||
And it should exit with an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@partition @options @help | ||
Feature: osrm-partition command line options: help | ||
|
||
Scenario: osrm-partition - Help should be shown when no options are passed | ||
When I try to run "osrm-partition" | ||
Then stderr should be empty | ||
And stdout should contain /osrm-partition(.exe)? <input.osrm> \[options\]:/ | ||
And stdout should contain "Options:" | ||
And stdout should contain "--version" | ||
And stdout should contain "--help" | ||
And stdout should contain "Configuration:" | ||
And stdout should contain "--threads" | ||
And stdout should contain "--min-cell-size" | ||
And stdout should contain "--balance" | ||
And stdout should contain "--boundary" | ||
And stdout should contain "--optimizing-cuts" | ||
And stdout should contain "--small-component-size" | ||
And it should exit with an error | ||
|
||
Scenario: osrm-partition - Help, short | ||
When I run "osrm-partition -h" | ||
Then stderr should be empty | ||
And stdout should contain /osrm-partition(.exe)? <input.osrm> \[options\]:/ | ||
And stdout should contain "Options:" | ||
And stdout should contain "--version" | ||
And stdout should contain "--help" | ||
And stdout should contain "Configuration:" | ||
And stdout should contain "--threads" | ||
And stdout should contain "--min-cell-size" | ||
And stdout should contain "--balance" | ||
And stdout should contain "--boundary" | ||
And stdout should contain "--optimizing-cuts" | ||
And stdout should contain "--small-component-size" | ||
And it should exit successfully | ||
|
||
Scenario: osrm-partition - Help, long | ||
When I run "osrm-partition --help" | ||
Then stderr should be empty | ||
And stdout should contain /osrm-partition(.exe)? <input.osrm> \[options\]:/ | ||
And stdout should contain "Options:" | ||
And stdout should contain "--version" | ||
And stdout should contain "--help" | ||
And stdout should contain "Configuration:" | ||
And stdout should contain "--threads" | ||
And stdout should contain "--min-cell-size" | ||
And stdout should contain "--balance" | ||
And stdout should contain "--boundary" | ||
And stdout should contain "--optimizing-cuts" | ||
And stdout should contain "--small-component-size" | ||
And it should exit successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@partition @options @invalid | ||
Feature: osrm-partition command line options: invalid options | ||
|
||
Background: | ||
Given the profile "testbot" | ||
And the node map | ||
""" | ||
a b | ||
""" | ||
And the ways | ||
| nodes | | ||
| ab | | ||
And the data has been extracted | ||
|
||
Scenario: osrm-partition - Non-existing option | ||
When I try to run "osrm-partition --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 an error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@partition @options @version | ||
Feature: osrm-partition command line options: version | ||
|
||
Background: | ||
Given the profile "testbot" | ||
|
||
Scenario: osrm-partition - Version, short | ||
When I run "osrm-partition --v" | ||
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 successfully | ||
|
||
Scenario: osrm-partition - Version, long | ||
When I run "osrm-partition --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 successfully |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.