Lines Matching +full:vm +full:- +full:valgrind +full:- +full:tap
94 # ---------------------------------------------
95 # --- P r o g r e s s I n d i c a t o r s ---
96 # ---------------------------------------------
125 output += ["--- stderr ---" ]
128 output += ["--- stdout ---"]
132 output += ["--- %s ---" % PrintCrashed(failure.output.exit_code)]
134 output += ["--- TIMEOUT ---"]
152 def Run(self, tasks) -> Dict:
155 # Spawn N-1 threads and then use this thread as the last one.
156 # That way -j1 avoids threading altogether which is a nice fallback
158 for i in range(tasks - 1):
166 # Use a timeout so that signals (ctrl-c) will be processed.
204 # See https://smartos.org/bugview/OS-2767
211 case.duration = (datetime.now() - start)
238 self.remaining -= 1
321 find_full_path = re.search(r' +at .*\(.*%s:([0-9]+):([0-9]+)' % test.file, traceback)
339 logger.info(' stack: |-')
345 logger.info('TAP version 13')
358 # Print test name as (for example) "parallel/test-assert". Tests that are
362 command = output.command[-1]
403 logger.info(' ---')
423 # Print test name as (for example) "parallel/test-assert". Tests that are
427 command = output.command[-1]
476 print("--- %s ---" % PrintCrashed(output.output.exit_code))
478 print("--- TIMEOUT ---")
482 if length and (len(str) > (length - 3)):
483 return str[:(length-3)] + "..."
489 elapsed = time.time() - self.start_time
492 'remaining': (((self.total - self.remaining) * 100) // self.total),
508 …s)02i|\033[34m%%%(remaining) 4d\033[0m|\033[32m+%(passed) 4d\033[0m|\033[31m-%(failed) 4d\033[0m]:…
522 … 'status_line': "[%(mins)02i:%(secs)02i|%%%(remaining) 4d|+%(passed) 4d|-%(failed) 4d]: %(test)s",
539 'tap': TapProgressIndicator,
545 # -------------------------
546 # --- F r a m e w o r k ---
547 # -------------------------
607 # Tests can leave the tty in non-blocking mode. If the test runner
643 # Timed out tests will have exit_code -signal.SIGTERM.
670 SEM_INVALID_VALUE = -1
687 # looked at post-mortem, which helps for investigating failures that are
712 # Compute the end time - if the process crosses this limit we
919 def __init__(self, workspace, verbose, vm, args, expect_fail, argument
924 self.vm = vm
937 if self.vm is not None:
938 return self.vm
973 # -------------------------------------------
974 # --- T e s t C o n f i g u r a t i o n ---
975 # -------------------------------------------
1079 return self.index < self.length + (length - 1)
1294 PREFIX_PATTERN = re.compile(r'^\s*prefix\s+([\w_.\-/]+)$')
1334 # ---------------
1335 # --- M a i n ---
1336 # ---------------
1344 result.add_option("-m", "--mode", help="The test modes in which to run (comma-separated)",
1346 result.add_option("-v", "--verbose", help="Verbose output",
1348 result.add_option('--logfile', dest='logfile',
1349 help='write test output to file. NOTE: this only applies the tap progress indicator')
1350 result.add_option("-p", "--progress",
1353 result.add_option("--report", help="Print a summary of the tests to be run",
1355 result.add_option("-s", "--suite", help="A test suite",
1357 result.add_option("-t", "--timeout", help="Timeout in seconds",
1359 result.add_option("--arch", help='The architecture to run tests for',
1361 result.add_option("--snapshot", help="Run the tests with snapshot turned on",
1363 result.add_option("--special-command", default=None)
1364 result.add_option("--node-args", dest="node_args", help="Args to pass through to Node",
1366 result.add_option("--expect-fail", dest="expect_fail",
1368 result.add_option("--valgrind", help="Run tests through valgrind",
1370 result.add_option("--worker", help="Run parallel tests inside a worker context",
1372 result.add_option("--check-deopts", help="Check tests for permanent deoptimizations",
1374 result.add_option("--cat", help="Print the source of the tests",
1376 result.add_option("--flaky-tests",
1379 result.add_option("--measure-flakiness",
1380 help="When a test fails, re-run it x number of times",
1382 result.add_option("--skip-tests",
1383 help="Tests that should not be executed (comma-separated)",
1385 result.add_option("--warn-unused", help="Report unused rules",
1387 result.add_option("-j", help="The number of parallel tasks to run, 0=use number of cores",
1389 result.add_option("-J", help="For legacy compatibility, has no effect",
1391 result.add_option("--time", help="Print timing information after running",
1393 result.add_option("--suppress-dialogs", help="Suppress Windows dialogs for crashing tests",
1395 result.add_option("--no-suppress-dialogs", help="Display Windows dialogs for crashing tests",
1397 result.add_option("--shell", help="Path to node executable", default=None)
1398 result.add_option("--store-unexpected-output",
1401 result.add_option("--no-store-unexpected-output",
1404 result.add_option("-r", "--run",
1405 …help="Divide the tests in m groups (interleaved) and run tests from group n (--run=n,m with n < m)…
1407 result.add_option('--temp-dir',
1409 result.add_option('--test-root',
1411 result.add_option('--repeat',
1414 result.add_option('--abort-on-timeout',
1417 result.add_option("--type",
1434 print("The run argument must be two comma-separated integers.")
1454 # If someone uses -j and legacy -J, let them know that we will be respecting
1455 # -j and ignoring -J, which is the opposite of what we used to do before -J
1456 # became a legacy no-op.
1457 print('Warning: Legacy -J option is ignored. Using the -j option.')
1459 print("Unknown flaky-tests mode %s" % options.flaky_tests)
1500 path = path[:-3]
1502 path = path[:-4]
1506 if (not value) or (value.find('@') == -1):
1541 return "CRASHED (Signal: %d)" % -code
1545 # default JavaScript test-run, e.g., internet/ requires a network connection,
1553 'js-native-api',
1554 'node-api',
1556 'tick-processor',
1557 'v8-updates'
1565 subsystem_regex = re.compile(r'^[a-zA-Z-]*$')
1567 mapped_args = ["*/test*-%s-*" % arg if check(arg) else arg for arg in args]
1572 def get_env_type(vm, options_type, context): argument
1578 ssl_ver = Execute([vm, '-p', 'process.versions.openssl'], context).stdout
1605 fh = logging.FileHandler(options.logfile, encoding='utf-8', mode='w')
1619 # Check for --valgrind option. If enabled, we overwrite the special
1620 # command flag with a command that uses the run-valgrind.py script.
1621 if options.valgrind:
1622 run_valgrind = join(workspace, "tools", "run-valgrind.py")
1623 options.special_command = "python -u " + run_valgrind + " @"
1626 options.node_args.append("--trace-opt")
1627 options.node_args.append("--trace-file-names")
1628 # --always-opt is needed because many tests do not run long enough for the
1630 options.node_args.append("--always-opt")
1634 run_worker = join(workspace, "tools", "run-worker.js")
1665 vm = context.GetVm(arch, mode)
1666 if not exists(vm):
1667 print("Can't find shell executable: '%s'" % vm)
1669 archEngineContext = Execute([vm, "-p", "process.arch"], context)
1672 print("Can't determine the arch of: '%s'" % vm)
1679 'type': get_env_type(vm, options.type, context),
1694 has_inspector = Execute([vm,
1695 '-p', 'process.features.inspector'], context)
1699 has_crypto = Execute([vm,
1700 '-p', 'process.versions.openssl'], context)
1711 print("--- begin source: %s ---" % test.GetLabel())
1714 print("--- end source: %s ---" % test.GetLabel())
1748 'skipped': len(all_cases) - len(cases_to_run),
1771 duration = time.time() - start
1780 sys.stderr.write("--- Total time: %s ---\n" % FormatTime(duration))