/
srv
/
osrm
/
osrm-backend
/
features
/
testbot
/
/srv/osrm/osrm-backend/features/testbot
mkdir
upload
Name
Size
Mode
Actions
64bit.feature
856
0644
edit
dl
rm
alternative.feature
1734
0644
edit
dl
rm
alternative_loop.feature
2328
0644
edit
dl
rm
annotations.feature
3838
0644
edit
dl
rm
approaches.feature
9011
0644
edit
dl
rm
bad.feature
2335
0644
edit
dl
rm
basic.feature
9262
0644
edit
dl
rm
bearing.feature
8226
0644
edit
dl
rm
bearing_param.feature
4881
0644
edit
dl
rm
compression.feature
637
0644
edit
dl
rm
continue_straight.feature
2511
0644
edit
dl
rm
distance.feature
6996
0644
edit
dl
rm
distance_matrix.feature
23582
0644
edit
dl
rm
duration.feature
1318
0644
edit
dl
rm
duration_matrix.feature
23189
0644
edit
dl
rm
example.feature
1300
0644
edit
dl
rm
exclude.feature
3865
0644
edit
dl
rm
exclude_regressions.feature
2407
0644
edit
dl
rm
fastest.feature
1106
0644
edit
dl
rm
ferry.feature
7935
0644
edit
dl
rm
fixed.feature
5148
0644
edit
dl
rm
geometry.feature
712
0644
edit
dl
rm
graph.feature
1038
0644
edit
dl
rm
impedance.feature
3370
0644
edit
dl
rm
load.feature
2363
0644
edit
dl
rm
loop.feature
2913
0644
edit
dl
rm
matching.feature
23225
0644
edit
dl
rm
maxspeed.feature
1332
0644
edit
dl
rm
mode.feature
11092
0644
edit
dl
rm
multi_level_routing.feature
8916
0644
edit
dl
rm
nil.feature
1100
0644
edit
dl
rm
oneway.feature
1075
0644
edit
dl
rm
oneway_phantom.feature
2648
0644
edit
dl
rm
opposite.feature
582
0644
edit
dl
rm
origin.feature
2680
0644
edit
dl
rm
overlap.feature
1100
0644
edit
dl
rm
penalty.feature
5161
0644
edit
dl
rm
planetary.feature
2474
0644
edit
dl
rm
projection.feature
2983
0644
edit
dl
rm
routes.feature
1074
0644
edit
dl
rm
snap.feature
5131
0644
edit
dl
rm
snap_intersection.feature
18784
0644
edit
dl
rm
speed.feature
1005
0644
edit
dl
rm
status.feature
3808
0644
edit
dl
rm
summary.feature
2342
0644
edit
dl
rm
time.feature
8240
0644
edit
dl
rm
traffic_speeds.feature
6899
0644
edit
dl
rm
traffic_speeds_overflow.feature
1060
0644
edit
dl
rm
traffic_turn_penalties.feature
2633
0644
edit
dl
rm
trip.feature
12981
0644
edit
dl
rm
turn_penalty.feature
1031
0644
edit
dl
rm
utf.feature
4303
0644
edit
dl
rm
via.feature
12213
0644
edit
dl
rm
weight.feature
13634
0644
edit
dl
rm
zero-speed-updates.feature
4965
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/features/testbot/duration_matrix.feature
(23189B)
@matrix @testbot Feature: Basic Duration Matrix # note that results of travel time are in seconds Background: Given the profile "testbot" And the partition extra arguments "--small-component-size 1 --max-cell-sizes 2,4,8,16" Scenario: Testbot - Travel time matrix of minimal network Given the node map """ a b """ And the ways | nodes | | ab | When I request a travel time matrix I should get | | a | b | | a | 0 | 10 | | b | 10 | 0 | Scenario: Testbot - Travel time matrix of minimal network requested with flatbuffer format Given the node map """ a b """ And the ways | nodes | | ab | When I request a travel time matrix with flatbuffers I should get | | a | b | | a | 0 | 10 | | b | 10 | 0 | @ch Scenario: Testbot - Travel time matrix of minimal network with toll exclude Given the query options | exclude | toll | Given the node map """ a b c d """ And the ways | nodes | highway | toll | # | | ab | motorway | | not drivable for exclude=motorway | | cd | primary | | always drivable | | ac | motorway | yes | not drivable for exclude=toll and exclude=motorway,toll | | bd | motorway | yes | not drivable for exclude=toll and exclude=motorway,toll | When I request a travel time matrix I should get | | a | b | c | d | | a | 0 | 15 | | | | b | 15 | 0 | | | | c | | | 0 | 10 | | d | | | 10 | 0 | @ch Scenario: Testbot - Travel time matrix of minimal network with motorway exclude Given the query options | exclude | motorway | Given the node map """ a b c d """ And the ways | nodes | highway | # | | ab | motorway | not drivable for exclude=motorway | | cd | residential | | | ac | residential | | | bd | residential | | When I request a travel time matrix I should get | | a | b | c | d | | a | 0 | 45 | 15 | 30 | @ch Scenario: Testbot - Travel time matrix of minimal network disconnected motorway exclude Given the query options | exclude | motorway | Given the node map """ ab efgh cd """ And the ways | nodes | highway | # | | be | motorway | not drivable for exclude=motorway | | abcd | residential | | | efgh | residential | | When I request a travel time matrix I should get | | a | b | e | | a | 0 | 7.5 | | @ch Scenario: Testbot - Travel time matrix of minimal network with motorway and toll excludes Given the query options | exclude | motorway,toll | Given the node map """ a b e f c d g h """ And the ways | nodes | highway | toll | # | | be | motorway | | not drivable for exclude=motorway | | dg | primary | yes | not drivable for exclude=toll | | abcd | residential | | | | efgh | residential | | | When I request a travel time matrix I should get | | a | b | e | g | | a | 0 | 15 | | | Scenario: Testbot - Travel time matrix with different way speeds Given the node map """ a b c d """ And the ways | nodes | highway | | ab | primary | | bc | secondary | | cd | tertiary | When I request a travel time matrix I should get | | a | b | c | d | | a | 0 | 10 | 30 | 60 | | b | 10 | 0 | 20 | 50 | | c | 30 | 20 | 0 | 30 | | d | 60 | 50 | 30 | 0 | When I request a travel time matrix I should get | | a | b | c | d | | a | 0 | 10 | 30 | 60 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 10 | | c | 30 | | d | 60 | Scenario: Testbot - Travel time matrix of small grid Given the node map """ a b c d e f """ And the ways | nodes | | abc | | def | | ad | | be | | cf | When I request a travel time matrix I should get | | a | b | e | f | | a | 0 | 10 | 20 | 30 | | b | 10 | 0 | 10 | 20 | | e | 20 | 10 | 0 | 10 | | f | 30 | 20 | 10 | 0 | Scenario: Testbot - Travel time matrix of network with unroutable parts Given the node map """ a b """ And the ways | nodes | oneway | | ab | yes | When I request a travel time matrix I should get | | a | b | | a | 0 | 10 | | b | | 0 | Scenario: Testbot - Travel time matrix of network with oneways Given the node map """ x a b y d e """ And the ways | nodes | oneway | | abeda | yes | | xa | | | by | | When I request a travel time matrix I should get | | x | y | d | e | | x | 0 | 30 | 40 | 30 | | y | 50 | 0 | 30 | 20 | | d | 20 | 30 | 0 | 30 | | e | 30 | 40 | 10 | 0 | Scenario: Testbot - Rectangular travel time matrix Given the node map """ a b c d e f """ And the ways | nodes | | abc | | def | | ad | | be | | cf | When I request a travel time matrix I should get | | a | b | e | f | | a | 0 | 10 | 20 | 30 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 10 | | e | 20 | | f | 30 | When I request a travel time matrix I should get | | a | b | e | f | | a | 0 | 10 | 20 | 30 | | b | 10 | 0 | 10 | 20 | When I request a travel time matrix I should get | | a | b | | a | 0 | 10 | | b | 10 | 0 | | e | 20 | 10 | | f | 30 | 20 | When I request a travel time matrix I should get | | a | b | e | f | | a | 0 | 10 | 20 | 30 | | b | 10 | 0 | 10 | 20 | | e | 20 | 10 | 0 | 10 | When I request a travel time matrix I should get | | a | b | e | | a | 0 | 10 | 20 | | b | 10 | 0 | 10 | | e | 20 | 10 | 0 | | f | 30 | 20 | 10 | When I request a travel time matrix I should get | | a | b | e | f | | a | 0 | 10 | 20 | 30 | | b | 10 | 0 | 10 | 20 | | e | 20 | 10 | 0 | 10 | | f | 30 | 20 | 10 | 0 | Scenario: Testbot - Travel time 3x2 matrix Given the node map """ a b c d e f """ And the ways | nodes | | abc | | def | | ad | | be | | cf | When I request a travel time matrix I should get | | b | e | f | | a | 10 | 20 | 30 | | b | 0 | 10 | 20 | Scenario: Testbot - All coordinates are from same small component Given a grid size of 300 meters Given the extract extra arguments "--small-component-size 4" Given the node map """ a b f d e g """ And the ways | nodes | | ab | | be | | ed | | da | | fg | When I request a travel time matrix I should get | | f | g | | f | 0 | 30 | | g | 30 | 0 | Scenario: Testbot - Coordinates are from different small component and snap to big CC Given a grid size of 300 meters Given the extract extra arguments "--small-component-size 4" Given the node map """ a b f h d e g i """ And the ways | nodes | | ab | | be | | ed | | da | | fg | | hi | When I request a travel time matrix I should get | | f | g | h | i | | f | 0 | 30 | 0 | 30 | | g | 30 | 0 | 30 | 0 | | h | 0 | 30 | 0 | 30 | | i | 30 | 0 | 30 | 0 | Scenario: Testbot - Travel time matrix with loops Given the node map """ a 1 2 b d 4 3 c """ And the ways | nodes | oneway | | ab | yes | | bc | yes | | cd | yes | | da | yes | When I request a travel time matrix I should get | | 1 | 2 | 3 | 4 | | 1 | 0 | 10 +-1 | 40 +-1 | 50 +-1 | | 2 | 70 +-1 | 0 | 30 +-1 | 40 +-1 | | 3 | 40 +-1 | 50 +-1 | 0 | 10 +-1 | | 4 | 30 +-1 | 40 +-1 | 70 +-1 | 0 | Scenario: Testbot - Travel time matrix based on segment durations Given the profile file """ local functions = require('testbot') functions.setup_testbot = functions.setup functions.setup = function() local profile = functions.setup_testbot() profile.traffic_signal_penalty = 0 profile.u_turn_penalty = 0 return profile end functions.process_segment = function(profile, segment) segment.weight = 2 segment.duration = 11 end return functions """ And the node map """ a-b-c-d . e """ And the ways | nodes | | abcd | | ce | When I request a travel time matrix I should get | | a | b | c | d | e | | a | 0 | 11 | 22 | 33 | 33 | | b | 11 | 0 | 11 | 22 | 22 | | c | 22 | 11 | 0 | 11 | 11 | | d | 33 | 22 | 11 | 0 | 22 | | e | 33 | 22 | 11 | 22 | 0 | Scenario: Testbot - Travel time matrix for alternative loop paths Given the profile file """ local functions = require('testbot') functions.setup_testbot = functions.setup functions.setup = function() local profile = functions.setup_testbot() profile.traffic_signal_penalty = 0 profile.u_turn_penalty = 0 profile.weight_precision = 3 return profile end functions.process_segment = function(profile, segment) segment.weight = 777 segment.duration = 3 end return functions """ And the node map """ a 2 1 b 7 4 8 3 c 5 6 d """ And the ways | nodes | oneway | | ab | yes | | bd | yes | | dc | yes | | ca | yes | When I request a travel time matrix I should get | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | | 1 | 0 | 10.9 | 3 | 1.9 | 6 | 4.9 | 9 | 7.9 | | 2 | 1.1 | 0 | 4.1 | 3 | 7.1 | 6 | 10.1 | 9 | | 3 | 9 | 7.9 | 0 | 10.9 | 3 | 1.9 | 6 | 4.9 | | 4 | 10.1 | 9 | 1.1 | 0 | 4.1 | 3 | 7.1 | 6 | | 5 | 6 | 4.9 | 9 | 7.9 | 0 | 10.9 | 3 | 1.9 | | 6 | 7.1 | 6 | 10.1 | 9 | 1.1 | 0 | 4.1 | 3 | | 7 | 3 | 1.9 | 6 | 4.9 | 9 | 7.9 | 0 | 10.9 | | 8 | 4.1 | 3 | 7.1 | 6 | 10.1 | 9 | 1.1 | 0 | Scenario: Testbot - Travel time matrix with ties Given the profile file """ local functions = require('testbot') functions.process_segment = function(profile, segment) segment.weight = 1 segment.duration = 1 end functions.process_turn = function(profile, turn) if turn.angle >= 0 then turn.duration = 16 else turn.duration = 4 end turn.weight = 0 end return functions """ And the node map """ a b c d """ And the ways | nodes | | ab | | ac | | bd | | dc | When I route I should get | from | to | route | distance | time | weight | | a | c | ac,ac | 200m | 1s | 1 | When I request a travel time matrix I should get | | a | b | c | d | | a | 0 | 1 | 1 | 6 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 1 | | c | 1 | | d | 6 | Scenario: Testbot - OneToMany vs ManyToOne Given the node map """ a b c """ And the ways | nodes | oneway | | ab | yes | | ac | | | bc | | When I request a travel time matrix I should get | | a | b | | b | 24.1 | 0 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 24.1 | Scenario: Testbot - Filling in noroutes with estimates (defaults to input coordinate location) Given a grid size of 300 meters Given the extract extra arguments "--small-component-size 4" Given the query options | fallback_speed | 5 | Given the node map """ a b f h 1 d e g i """ And the ways | nodes | | abeda | | fhigf | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 30 | 17.9 | 30 | | b | 30 | 0 | 12 | 24 | | f | 17.9 | 12 | 0 | 30 | | 1 | 30 | 24 | 30 | 0 | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 30 | 17.9 | 30 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 30 | | f | 17.9 | | 1 | 30 | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | | b | | | Y | Y | | f | Y | Y | | | | 1 | Y | Y | | | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | When I request a travel time matrix I should get estimates for | | a | | a | | | b | | | f | Y | | 1 | Y | Scenario: Testbot - Filling in noroutes with estimates - use input coordinate Given a grid size of 300 meters Given the extract extra arguments "--small-component-size 4" Given the query options | fallback_speed | 5 | | fallback_coordinate | input | Given the node map """ a b f h 1 d e g i """ And the ways | nodes | | abeda | | fhigf | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 30 | 17.9 | 30 | | b | 30 | 0 | 12 | 24 | | f | 17.9 | 12 | 0 | 30 | | 1 | 30 | 24 | 30 | 0 | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 30 | 17.9 | 30 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 30 | | f | 17.9 | | 1 | 30 | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | | b | | | Y | Y | | f | Y | Y | | | | 1 | Y | Y | | | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | When I request a travel time matrix I should get estimates for | | a | | a | | | b | | | f | Y | | 1 | Y | Scenario: Testbot - Filling in noroutes with estimates - use snapped coordinate Given a grid size of 300 meters Given the extract extra arguments "--small-component-size 4" Given the query options | fallback_speed | 5 | | fallback_coordinate | snapped | Given the node map """ a b f h 1 d e g i """ And the ways | nodes | | abeda | | fhigf | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 30 | 17.9 | 23.9 | | b | 30 | 0 | 12 | 17.9 | | f | 17.9 | 12 | 0 | 30 | | 1 | 23.9 | 17.9 | 30 | 0 | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 30 | 17.9 | 23.9 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 30 | | f | 17.9 | | 1 | 23.9 | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | | b | | | Y | Y | | f | Y | Y | | | | 1 | Y | Y | | | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | When I request a travel time matrix I should get estimates for | | a | | a | | | b | | | f | Y | | 1 | Y | Scenario: Testbot - Travel time matrix of minimal network with scale factor Given the query options | scale_factor | 2 | Given the node map """ a b """ And the ways | nodes | | ab | When I request a travel time matrix I should get | | a | b | | a | 0 | 20 | | b | 20 | 0 | Scenario: Testbot - Test fallback speeds and scale factor Given a grid size of 300 meters Given the extract extra arguments "--small-component-size 4" Given the query options | scale_factor | 2 | | fallback_speed | 5 | | fallback_coordinate | snapped | Given the node map """ a b f h 1 d e g i """ And the ways | nodes | | abeda | | fhigf | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 60 | 35.8 | 47.8 | | b | 60 | 0 | 24 | 35.8 | | f | 35.8 | 24 | 0 | 60 | | 1 | 47.8 | 35.8 | 60 | 0 | When I request a travel time matrix I should get | | a | b | f | 1 | | a | 0 | 60 | 35.8 | 47.8 | When I request a travel time matrix I should get | | a | | a | 0 | | b | 60 | | f | 35.8 | | 1 | 47.8 | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | | b | | | Y | Y | | f | Y | Y | | | | 1 | Y | Y | | | When I request a travel time matrix I should get estimates for | | a | b | f | 1 | | a | | | Y | Y | When I request a travel time matrix I should get estimates for | | a | | a | | | b | | | f | Y | | 1 | Y | Scenario: Testbot - Travel time matrix of minimal network with overflow scale factor Given the query options | scale_factor | 2147483647 | Given the node map """ a b """ And the ways | nodes | | ab | When I request a travel time matrix I should get | | a | b | | a | 0 | 214748364.6 | | b | 214748364.6 | 0 | Scenario: Testbot - Travel time matrix of minimal network with fraction scale factor Given the query options | scale_factor | 0.5 | Given the node map """ a b """ And the ways | nodes | | ab | When I request a travel time matrix I should get | | a | b | | a | 0 | 5 | | b | 5 | 0 |
Save
cmd:
run