blob: 14756467e62f4a58a4baa8a87935e345b3520284 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
var fs = require('fs');
var vm = require('vm');
var load = function(path) {
try {
vm.runInThisContext(fs.readFileSync(path));
} catch (e) {
console.log(path);
throw e;
}
};
// Assume we're run using `make test`.
// That means argv[0] is `node` and argv[1] is this file.
process.argv.slice(2).map(load);
sjcl.test.run(undefined, function(){
if(!browserUtil.allPassed) {
process.exit(1);
}
});
|