1
0
Fork 0

Make the config tests a little more verbose.

This commit is contained in:
Willi Goesgens 2015-02-12 10:49:10 +01:00
parent 3041b23408
commit 0a2b3177d7
1 changed files with 33 additions and 8 deletions

View File

@ -99,6 +99,8 @@ var Planner = require("org/arangodb/cluster").Planner;
var Kickstarter = require("org/arangodb/cluster").Kickstarter;
var endpointToURL = require("org/arangodb/cluster/planner").endpointToURL;
var toArgv = require("internal").toArgv;
var serverCrashed = false;
var optionsDefaults = { "cluster": false,
@ -155,7 +157,7 @@ function printUsage () {
else {
oneFunctionDocumentation = '';
}
if (allTests.indexOf(i) !== -1) {
if (allTests.indexOf(i) !== -1) {
checkAll = '[x]';
}
else {
@ -1055,23 +1057,46 @@ testFuncs.shell_client = function(options) {
testFuncs.config = function () {
var topDir = findTopDir();
var results = {};
var ts = ["arangod", "arangob", "arangodump", "arangoimp", "arangorestore",
var ts = ["arangod",
"arangob",
"arangodump",
"arangoimp",
"arangorestore",
"arangosh"];
var args;
var t;
var i;
print("--------------------------------------------------------------------------------");
print("Absolut config tests");
print("--------------------------------------------------------------------------------");
for (i = 0; i < ts.length; i++) {
t = ts[i];
args = {
"configuration" : fs.join(topDir,"etc","arangodb",t+".conf"),
"flatCommands" : ["--help"]
};
results[t] = executeAndWait(fs.join(topDir,"bin",t),
["--configuration", fs.join(topDir,"etc","arangodb",t+".conf"),
"--help"]);
print("Config test "+t+"...",results[t].status);
toArgv(args));
print("Args for [" + t + "]:");
print(yaml.safeDump(args));
print("Result: " + results[t].status);
}
print("--------------------------------------------------------------------------------");
print("relative config tests");
print("--------------------------------------------------------------------------------");
for (i = 0; i < ts.length; i++) {
t = ts[i];
args = {
"configuration" : fs.join(topDir,"etc","relative",t+".conf"),
"flatCommands" : ["--help"]
};
results[t+"_rel"] = executeAndWait(fs.join(topDir,"bin",t),
["--configuration", fs.join(topDir,"etc","relative",
t+".conf"), "--help"]);
print("Config test "+t+" (relative)...",results[t+"_rel"].status);
toArgv(args));
print("Args for (relative) [" + t + "]:");
print(yaml.safeDump(args));
print("Result: " + results[t + "_rel"].status);
}
return results;