Skip to content

Commit

Permalink
Don't use manual extract commands in weight tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarex authored and Patrick Niklaus committed Jun 2, 2017
1 parent 51bf9c4 commit 6c7f0ed
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions features/raster/weights.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ Feature: Raster - weights

Scenario: Weighting not based on raster sources
Given the profile "testbot"
When I run "osrm-extract {osm_file} -p {profile_file}"
And I run "osrm-contract {processed_file}"
And I route I should get
When I route I should get
| from | to | route | speed |
| a | b | ab,ab | 36 km/h |
| a | c | ab,bc,bc | 36 km/h |
Expand All @@ -44,10 +42,7 @@ Feature: Raster - weights

Scenario: Weighting based on raster sources
Given the profile "rasterbot"
When I run "osrm-extract {osm_file} -p {profile_file}"
Then stdout should contain "evaluating segment"
And I run "osrm-contract {processed_file}"
And I route I should get
When I route I should get
| from | to | route | speed |
| a | b | ab,ab | 8 km/h |
| b | a | ab,ab | 22 km/h |
Expand All @@ -63,10 +58,7 @@ Feature: Raster - weights

Scenario: Weighting based on raster sources
Given the profile "rasterbotinterp"
When I run "osrm-extract {osm_file} -p {profile_file}"
Then stdout should contain "evaluating segment"
And I run "osrm-contract {processed_file}"
And I route I should get
When I route I should get
| from | to | route | speed |
| a | b | ab,ab | 8 km/h |
| a | c | ad,dc,dc | 15 km/h |
Expand Down

0 comments on commit 6c7f0ed

Please sign in to comment.