blob: f1035727f9fda9f4b31c55ab1558932d312d5041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
include("test.js")
//-------------------- Main --------------------
var dir = new QDir(utils.currentScripRoot);
var tests = dir.entryList([], Filter.Dirs | Filter.NoDotAndDotDot);
for (var i = 0; i < tests.length; i++) {
runTest(tests[i])
}
if ( errorCount == 0)
console.log("There were no errors")
else
console.log("+++++++++ There were " + errorCount + " error(s) ++++++++++")
function runTest(name) {
console.log("Running test " + name)
include(name+"/" + name + ".qs")
}
|