osrm-backend/features/testbot/load.feature

88 lines
2.3 KiB
Gherkin
Raw Normal View History

@routing @load @testbot
Feature: Ways of loading data
# Several scenarios that change between direct/datastore makes
# it easier to check that the test framework behaves as expected.
Background:
Given the profile "testbot"
Scenario: Load data with datastore - ab
Given data is loaded with datastore
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b
"""
And the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
2016-03-31 20:25:37 -04:00
| a | b | ab,ab |
| b | a | ab,ab |
Scenario: osrm-datastore - Remove shared control block
When I run "osrm-datastore --remove-locks"
Then stderr should be empty
And it should exit successfully
Scenario: osrm-datastore - Remove shared memory blocks
When I run "osrm-datastore --spring-clean" with input "Y"
Then stderr should be empty
And it should exit successfully
Scenario: osrm-datastore - Fail if no shared memory blocks are loaded
When I run "osrm-datastore --spring-clean" with input "Y"
And I try to run "osrm-routed --shared-memory=1"
Then stderr should contain "No shared memory block"
And it should exit with an error
Scenario: Load data directly - st
Given data is loaded directly
Given the node map
2016-09-30 03:33:08 -04:00
"""
s t
"""
And the ways
| nodes |
| st |
When I route I should get
| from | to | route |
2016-03-31 20:25:37 -04:00
| s | t | st,st |
| t | s | st,st |
2016-03-04 15:11:05 -05:00
Scenario: Load data datastore - xy
Given data is loaded with datastore
Given the node map
2016-09-30 03:33:08 -04:00
"""
x y
"""
And the ways
| nodes |
| xy |
When I route I should get
| from | to | route |
2016-03-31 20:25:37 -04:00
| x | y | xy,xy |
| y | x | xy,xy |
Scenario: Load data directly - cd
Given data is loaded directly
Given the node map
2016-09-30 03:33:08 -04:00
"""
c d
"""
And the ways
| nodes |
| cd |
When I route I should get
| from | to | route |
2016-03-31 20:25:37 -04:00
| c | d | cd,cd |
| d | c | cd,cd |