Runs the index_test.js, which tests the NodeJS API.
()
| 355 | |
| 356 | |
| 357 | def RunIndexTest(): |
| 358 | """Runs the index_test.js, which tests the NodeJS API. |
| 359 | """ |
| 360 | logging.info('entering ...') |
| 361 | p = subprocess.Popen(['node', './index_test.js'], |
| 362 | stdout=subprocess.PIPE, |
| 363 | stderr=subprocess.PIPE, |
| 364 | cwd='js/nodejs') |
| 365 | (stdout, stderr) = p.communicate() |
| 366 | if p.returncode != 0: |
| 367 | Die('index_test.js failed. returncode=%d stdout="%s" stderr="%s"' % |
| 368 | (p.returncode, stdout, stderr)) |
| 369 | logging.info('... done') |
| 370 | |
| 371 | |
| 372 | def CompileValidatorTestMinified(out_dir): |