| 105 | } |
| 106 | |
| 107 | function testRunner(testFilename) { |
| 108 | var processArgs = getArgs(testFilename); |
| 109 | if (argv.reactNativeBundler) { |
| 110 | var transpilerCommand = 'curl -s --upload-file ./' + testFilename + ' "' + argv.reactNativeBundler + '"'; |
| 111 | var traspilerStdout = child_process.execSync(transpilerCommand); |
| 112 | fs.writeFileSync(testFilename, traspilerStdout.toString()); |
| 113 | } |
| 114 | |
| 115 | try { |
| 116 | var stdout = child_process.execFileSync(hermesCommand, processArgs, { |
| 117 | encoding: 'utf-8' |
| 118 | }); |
| 119 | |
| 120 | return /^\[SUCCESS\]$/m.test(stdout); |
| 121 | } catch (e) { |
| 122 | // console.log(e); |
| 123 | return false; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | function resultsMatch(expect, actual) { |
| 128 | // Handling notes |