Added profile files per test generation
This commit is contained in:
committed by
Moritz Kobitzsch
parent
89264eb89b
commit
3f3c85ba72
@@ -103,6 +103,7 @@ module.exports = function() {
|
||||
this.rasterCacheFile = this.getRasterCacheFile(this.featureProcessedCacheDirectory, scenarioID);
|
||||
this.speedsCacheFile = this.getSpeedsCacheFile(this.featureProcessedCacheDirectory, scenarioID);
|
||||
this.penaltiesCacheFile = this.getPenaltiesCacheFile(this.featureProcessedCacheDirectory, scenarioID);
|
||||
this.profileCacheFile = this.getProfileCacheFile(this.featureProcessedCacheDirectory, scenarioID);
|
||||
};
|
||||
|
||||
// returns a hash of all OSRM code side dependencies
|
||||
@@ -159,6 +160,11 @@ module.exports = function() {
|
||||
return path.join(featureCacheDirectory, scenarioID) + '_penalties.csv';
|
||||
};
|
||||
|
||||
// test/cache/{feature_path}/{feature_hash}/{scenario}_profile.lua
|
||||
this.getProfileCacheFile = (featureCacheDirectory, scenarioID) => {
|
||||
return path.join(featureCacheDirectory, scenarioID) + '_profile.lua';
|
||||
};
|
||||
|
||||
// test/cache/{feature_path}/{feature_hash}/{scenario}.osm
|
||||
this.getScenarioCacheFile = (featureCacheDirectory, scenarioID) => {
|
||||
return path.join(featureCacheDirectory, scenarioID) + '.osm';
|
||||
|
||||
Reference in New Issue
Block a user