MCPcopy Create free account
hub / github.com/compat-table/compat-table / jerryRunner

Function jerryRunner

jerryscript.js:32–44  ·  view source on GitHub ↗
(testFilename)

Source from the content-addressed store, hash-verified

30// jerryKey = "jerryscript2_4_0" // uncomment this line to test pre 2.4.0
31
32function jerryRunner(testFilename) {
33 try {
34 var stdout = child_process.execFileSync(jerryCommand, [ testFilename ], {
35 encoding: 'utf-8'
36 });
37 //console.log(stdout);
38
39 return /^\[SUCCESS\]$/m.test(stdout);
40 } catch (e) {
41 //console.log(e);
42 return false;
43 }
44}
45
46runner_support.runTests(jerryRunner, jerryKey, 'JerryScript', { suites: suites, logCommand: 'print' });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected