1
0
Fork 0

Add rr support to testing.js.

This commit is contained in:
Max Neunhoeffer 2016-05-20 15:15:51 +02:00
parent a73c617da2
commit c9c6f14687
1 changed files with 7 additions and 1 deletions

View File

@ -110,6 +110,8 @@ const optionsDocumentation = [
' - `rspec`: the location of rspec program',
' - `ruby`: the location of ruby program; if empty start rspec directly',
'',
' - `rr`: if set to true arangod instances are run with rr',
'',
' - `sanitizer`: if set the programs are run with enabled sanitizer',
' and need longer tomeouts',
'',
@ -148,6 +150,7 @@ const optionsDefaults = {
"onlyNightly": false,
"password": "",
"replication": false,
"rr": false,
"rspec": "rspec",
"ruby": "",
"sanitizer": false,
@ -896,8 +899,11 @@ function executeValgrind(cmd, args, options, valgrindTest) {
args = toArgv(valgrindOpts, true).concat([cmd]).concat(args);
cmd = options.valgrind;
} else if (options.rr) {
args = [cmd].concat(args);
cmd = "rr";
}
if (options.extremeVerbosity) {
print("starting process " + cmd + " with arguments: " + JSON.stringify(args));
}