123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
-
-
-
-
- (function () {
- 'use strict';
-
- var child = require('child_process'),
- nodejs = '"' + process.execPath + '"',
- ret = 0,
- suites,
- index;
-
- suites = [
- 'runner',
- 'compat'
- ];
-
- function nextTest() {
- var suite = suites[index];
-
- if (index < suites.length) {
- child.exec(nodejs + ' ./test/' + suite + '.js', function (err, stdout, stderr) {
- if (stdout) {
- process.stdout.write(suite + ': ' + stdout);
- }
- if (stderr) {
- process.stderr.write(suite + ': ' + stderr);
- }
- if (err) {
- ret = err.code;
- }
- index += 1;
- nextTest();
- });
- } else {
- process.exit(ret);
- }
- }
-
- index = 0;
- nextTest();
- }());
|