-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
Copy pathload.feature
87 lines (71 loc) · 2.31 KB
/
load.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@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
"""
a b
"""
And the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
| 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
"""
s t
"""
And the ways
| nodes |
| st |
When I route I should get
| from | to | route |
| s | t | st,st |
| t | s | st,st |
Scenario: Load data datastore - xy
Given data is loaded with datastore
Given the node map
"""
x y
"""
And the ways
| nodes |
| xy |
When I route I should get
| from | to | route |
| x | y | xy,xy |
| y | x | xy,xy |
Scenario: Load data directly - cd
Given data is loaded directly
Given the node map
"""
c d
"""
And the ways
| nodes |
| cd |
When I route I should get
| from | to | route |
| c | d | cd,cd |
| d | c | cd,cd |