mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into engine-api
This commit is contained in:
commit
d5bbcf7b1e
|
@ -4,7 +4,7 @@
|
||||||
"author": "ArangoDB GmbH",
|
"author": "ArangoDB GmbH",
|
||||||
"description": "Official AQL manual for ArangoDB - the multi-model NoSQL database",
|
"description": "Official AQL manual for ArangoDB - the multi-model NoSQL database",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"plugins":["-search", "-lunr", "-sharing", "toggle-chapters", "addcssjs", "anchorjs", "piwik", "sitemap-general"],
|
"plugins":["-search", "-lunr", "-sharing", "toggle-chapters", "addcssjs", "anchorjs", "piwik", "sitemap-general", "ga"],
|
||||||
"pdf": {
|
"pdf": {
|
||||||
"fontSize": 12,
|
"fontSize": 12,
|
||||||
"toc": true,
|
"toc": true,
|
||||||
|
@ -29,6 +29,9 @@
|
||||||
},
|
},
|
||||||
"sitemap-general": {
|
"sitemap-general": {
|
||||||
"prefix": "https://docs.arangodb.com/devel/AQL/"
|
"prefix": "https://docs.arangodb.com/devel/AQL/"
|
||||||
|
},
|
||||||
|
"ga": {
|
||||||
|
"token": "UA-81053435-2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"author": "ArangoDB GmbH",
|
"author": "ArangoDB GmbH",
|
||||||
"description": "Official HTTP API manual for ArangoDB - the multi-model NoSQL database",
|
"description": "Official HTTP API manual for ArangoDB - the multi-model NoSQL database",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"plugins":["-search", "-lunr", "-sharing", "toggle-chapters", "addcssjs", "anchorjs", "piwik", "sitemap-general"],
|
"plugins":["-search", "-lunr", "-sharing", "toggle-chapters", "addcssjs", "anchorjs", "piwik", "sitemap-general", "ga"],
|
||||||
"pdf": {
|
"pdf": {
|
||||||
"fontSize": 12,
|
"fontSize": 12,
|
||||||
"toc": true,
|
"toc": true,
|
||||||
|
@ -29,6 +29,9 @@
|
||||||
},
|
},
|
||||||
"sitemap-general": {
|
"sitemap-general": {
|
||||||
"prefix": "https://docs.arangodb.com/devel/HTTP/"
|
"prefix": "https://docs.arangodb.com/devel/HTTP/"
|
||||||
|
},
|
||||||
|
"ga": {
|
||||||
|
"token": "UA-81053435-2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"author": "ArangoDB GmbH",
|
"author": "ArangoDB GmbH",
|
||||||
"description": "Official manual for ArangoDB - the multi-model NoSQL database",
|
"description": "Official manual for ArangoDB - the multi-model NoSQL database",
|
||||||
"language": "en",
|
"language": "en",
|
||||||
"plugins":["-search", "-lunr", "-sharing", "toggle-chapters", "addcssjs", "anchorjs", "piwik", "sitemap-general", "callouts@git+https://github.com/Simran-B/gitbook-plugin-callouts.git"],
|
"plugins":["-search", "-lunr", "-sharing", "toggle-chapters", "addcssjs", "anchorjs", "piwik", "sitemap-general", "ga", "callouts@git+https://github.com/Simran-B/gitbook-plugin-callouts.git"],
|
||||||
"pdf": {
|
"pdf": {
|
||||||
"fontSize": 12,
|
"fontSize": 12,
|
||||||
"toc": true,
|
"toc": true,
|
||||||
|
@ -29,6 +29,9 @@
|
||||||
},
|
},
|
||||||
"sitemap-general": {
|
"sitemap-general": {
|
||||||
"prefix": "https://docs.arangodb.com/devel/Manual/"
|
"prefix": "https://docs.arangodb.com/devel/Manual/"
|
||||||
|
},
|
||||||
|
"ga": {
|
||||||
|
"token": "UA-81053435-2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,8 @@ const fs = require("fs");
|
||||||
const internal = require("internal");
|
const internal = require("internal");
|
||||||
const inspect = internal.inspect;
|
const inspect = internal.inspect;
|
||||||
|
|
||||||
|
let testOutputDirectory;
|
||||||
|
|
||||||
function makePathGeneric(path) {
|
function makePathGeneric(path) {
|
||||||
return path.split(fs.pathSeparator);
|
return path.split(fs.pathSeparator);
|
||||||
}
|
}
|
||||||
|
@ -136,7 +138,7 @@ function resultsToXml(results, baseName, cluster) {
|
||||||
|
|
||||||
const fn = makePathGeneric(baseName + xmlName + ".xml").join('_');
|
const fn = makePathGeneric(baseName + xmlName + ".xml").join('_');
|
||||||
|
|
||||||
fs.write("out/" + fn, xml.join(""));
|
fs.write(testOutputDirectory + fn, xml.join(""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -181,11 +183,17 @@ function main(argv) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argv.hasOwnProperty('testOutput')) {
|
||||||
|
testOutputDirectory = argv.testOutput;
|
||||||
|
} else {
|
||||||
|
testOutputDirectory = 'out';
|
||||||
|
}
|
||||||
|
|
||||||
// force json reply
|
// force json reply
|
||||||
options.jsonReply = true;
|
options.jsonReply = true;
|
||||||
|
|
||||||
// create output directory
|
// create output directory
|
||||||
fs.makeDirectoryRecursive("out");
|
fs.makeDirectoryRecursive(testOutputDirectory);
|
||||||
|
|
||||||
// run the test and store the result
|
// run the test and store the result
|
||||||
let r = {};
|
let r = {};
|
||||||
|
@ -215,7 +223,7 @@ function main(argv) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// whether or not there was an error
|
// whether or not there was an error
|
||||||
fs.write("out/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json", String(r.status));
|
fs.write(testOutputDirectory + "/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json", String(r.status));
|
||||||
|
|
||||||
if (options.writeXmlReport) {
|
if (options.writeXmlReport) {
|
||||||
let j;
|
let j;
|
||||||
|
@ -226,8 +234,8 @@ function main(argv) {
|
||||||
j = inspect(r);
|
j = inspect(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.write("out/UNITTEST_RESULT.json", j);
|
fs.write(testOutputDirectory + "/UNITTEST_RESULT.json", j);
|
||||||
fs.write("out/UNITTEST_RESULT_CRASHED.json", String(r.crashed));
|
fs.write(testOutputDirectory + "/UNITTEST_RESULT_CRASHED.json", String(r.crashed));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
resultsToXml(r,
|
resultsToXml(r,
|
||||||
|
|
Loading…
Reference in New Issue