We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d2c15 commit 53f2da5Copy full SHA for 53f2da5
.github/workflows/osrm-backend.yml
cucumber.js
@@ -3,5 +3,7 @@ module.exports = {
3
verify: '--strict --tags ~@stress --tags ~@todo --tags ~@mld-only -f progress --require features/support --require features/step_definitions',
4
todo: '--strict --tags @todo --require features/support --require features/step_definitions',
5
all: '--strict --require features/support --require features/step_definitions',
6
- mld: '--strict --tags ~@stress --tags ~@todo --tags ~@ch --require features/support --require features/step_definitions -f progress'
+ mld: '--strict --tags ~@stress --tags ~@todo --tags ~@ch --require features/support --require features/step_definitions -f progress',
7
+ verify_routed_js: '--strict --tags ~@skip_on_routed_js --tags ~@stress --tags ~@todo --tags ~@mld-only -f progress --require features/support --require features/step_definitions',
8
+ mld_routed_js: '--strict --tags ~@skip_on_routed_js --tags ~@stress --tags ~@todo --tags ~@ch --require features/support --require features/step_definitions -f progress',
9
};
features/options/routed/help.feature
@@ -4,6 +4,7 @@ Feature: osrm-routed command line options: help
Background:
Given the profile "testbot"
+ @skip_on_routed_js
Scenario: osrm-routed - Help should be shown when no options are passed
When I run "osrm-routed"
10
Then stderr should be empty
@@ -24,6 +25,7 @@ Feature: osrm-routed command line options: help
24
25
And stdout should contain "--max-matching-size"
26
And it should exit successfully
27
28
29
Scenario: osrm-routed - Help, short
30
When I run "osrm-routed -h"
31
@@ -44,6 +46,8 @@ Feature: osrm-routed command line options: help
44
46
45
47
48
49
+
50
51
Scenario: osrm-routed - Help, long
52
When I run "osrm-routed --help"
53
features/options/routed/invalid.feature
@@ -4,6 +4,7 @@ Feature: osrm-routed command line options: invalid options
Scenario: osrm-routed - Non-existing option
When I try to run "osrm-routed --fly-me-to-the-moon"
Then stdout should be empty
features/step_definitions/requests.js
@@ -33,6 +33,11 @@ module.exports = function () {
33
callback();
34
});
35
36
+ this.Then(/^HTTP code should be (\d+)$/, (code, callback) => {
37
+ assert(this.response.statusCode, parseInt(code));
38
+ callback();
39
+ });
40
41
this.Then(/^status message should be "(.*?)"$/, (message, callback) => {
42
try {
43
this.json = JSON.parse(this.response.body);
features/support/env.js
@@ -15,6 +15,8 @@ module.exports = function () {
15
this.setDefaultTimeout(this.TIMEOUT);
16
this.ROOT_PATH = process.cwd();
17
18
+ this.USE_ROUTED_JS = process.env.OSRM_USE_ROUTED_JS || false;
19
20
this.TEST_PATH = path.resolve(this.ROOT_PATH, 'test');
21
this.CACHE_PATH = path.resolve(this.TEST_PATH, 'cache');
22
this.LOGS_PATH = path.resolve(this.TEST_PATH, 'logs');
@@ -40,7 +42,7 @@ module.exports = function () {
this.OSRM_PORT = process.env.OSRM_PORT && parseInt(process.env.OSRM_PORT) || 5000;
this.OSRM_IP = process.env.OSRM_IP || '127.0.0.1';
- this.OSRM_CONNECTION_RETRIES = process.env.OSRM_CONNECTION_RETRIES && parseInt(process.env.OSRM_CONNECTION_RETRIES) || 10;
+ this.OSRM_CONNECTION_RETRIES = process.env.OSRM_CONNECTION_RETRIES && parseInt(process.env.OSRM_CONNECTION_RETRIES) || 100;
this.OSRM_CONNECTION_EXP_BACKOFF_COEF = process.env.OSRM_CONNECTION_EXP_BACKOFF_COEF && parseFloat(process.env.OSRM_CONNECTION_EXP_BACKOFF_COEF) || 1.0;
this.HOST = `http://${this.OSRM_IP}:${this.OSRM_PORT}`;
features/support/run.js
@@ -39,7 +39,11 @@ module.exports = function () {
this.runBin = (bin, options, env, callback) => {
let cmd = path.resolve(util.format('%s/%s%s', this.BIN_PATH, bin, this.EXE));
+ if (this.USE_ROUTED_JS && bin === 'osrm-routed') {
+ cmd = 'osrm-routed-js';
+ }
let opts = options.split(' ').filter((x) => { return x && x.length > 0; });
let log = fs.createWriteStream(this.scenarioLogFile, {'flags': 'a'});
log.write(util.format('*** running %s %s\n', cmd, options));
// we need to set a large maxbuffer here because we have long running processes like osrm-routed
features/testbot/load.feature
@@ -32,6 +32,7 @@ Feature: Ways of loading data
32
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"
features/testbot/snap_intersection.feature
@@ -570,7 +570,7 @@ Feature: Snapping at intersections
570
| a,f,k | ac,cf,cf,fj,kj,kj | 132.8s | 132.8 |
571
| k,f | ik,fi,fi | 54.3s | 54.3 |
572
| f,a | ef,ae,ae | 66.6s | 66.6 |
573
- | k,f,a | kj,fj,fj,ef,ae,ae | 141.399999999s | 141.399999999 |
+ | k,f,a | kj,fj,fj,ef,ae,ae | 141.399999999s +- 1e-7 | 141.399999999 +- 1e-7 |
574
575
When I request a travel time matrix I should get
576
| | a | f | k |
@@ -626,4 +626,4 @@ Feature: Snapping at intersections
626
| a,f,k | ad,df,df,fj,kj,kj | 105.6s | 105.6 |
627
628
629
- | k,f,a | ik,fi,fi,ef,ae,ae | 120.899999999s | 120.899999999 |
+ | k,f,a | ik,fi,fi,ef,ae,ae | 120.899999999s +- 1e-7 | 120.899999999 +- 1e-7 |
features/testbot/status.feature
@@ -39,6 +39,7 @@ Feature: Status messages
| a | c | | 400 | Impossible route between points |
| b | d | | 400 | Impossible route between points |
Scenario: Malformed requests
Given the node locations
| node | lat | lon |
0 commit comments