Logo white

SGH / COMPONENTS

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • COMPONENTS
  • bower_components
  • prism
  • tests
  • run-child.js
  • curruption reloution
    8ee32023
    Luigi Serra authored
    2015-11-03 13:45:29 +0100  
    Browse Code ยป
run-child.js 343 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"use strict";

var TestCase = require("./helper/test-case");
var argv = require("yargs").argv;

if (argv.language) {
	process.on('message', function (data) {
		if (data.filePath) {
			try {
				TestCase.runTestCase(argv.language, data.filePath);
				process.send({success: true});
			} catch (e) {
				process.send({error: e});
			}
		}
	});
}