Lines Matching +full:serial +full:- +full:output
2 # SPDX-License-Identifier: GPL-2.0
5 tdc.py - Linux tc (Traffic Control) unit test driver
35 def __init__(self, stage, output, message): argument
37 self.output = output
55 mn = fn[0:-3]
61 pgname = pgname[0:-3]
72 self.plugin_instances[-1][1].check_args(self.args, None)
101 pgd = ['plugin-lib', 'plugin-lib-custom']
224 foutput = serr.decode("utf-8", errors="ignore")
226 foutput = rawout.decode("utf-8", errors="ignore")
236 def prepare_env(caseinfo, args, pm, stage, prefix, cmdlist, output = None): argument
268 stage, output,
276 res.set_failmsg('Cannot decode verify command\'s output. Is it JSON?')
282 …failmsg = 'Original output and matchJSON value are not the same type: output: {} != matchJSON: {} '
289 …ay, and it contains more elements than the command under test\'s output:\ncommand output (length: …
318 … failmsg = 'Original output and matchJSON value are not the same type: output: {} != matchJSON: {}'
325 …ay, and it contains more elements than the command under test\'s output:\ncommand output (length: …
340 failmsg = 'Key not found in json output: {}: {}\nMatching against output: {}'
347 … failmsg = 'Original output and matchJSON value are not the same type: output: {} != matchJSON: {}'
367 failmsg = 'Value doesn\'t match: {}: {} != {}\nMatching against output: {}'
413 NAMES['NS'] = '{}-{}'.format(NAMES['NS'], tidx['random'])
419 prepare_env(tidx, args, pm, 'setup', "-----> prepare stage", tidx["setup"])
422 print('-----> execute stage')
441 print('-----> verify stage')
452 … res.set_failmsg('Could not match regex pattern. Verify command output:\n{}'.format(procout))
460 res.set_failmsg('No output generated by verify command.')
464 prepare_env(tidx, args, pm, 'teardown', '-----> teardown stage', tidx['teardown'], procout)
509 TAP output accordingly.
523 errmsg += "physical NIC with the -d option when running tdc.\n"
541 output = pmtf.output
545 res.set_failmsg(pmtf.output)
551 print('---------------')
554 print('---------------')
556 print('accumulated output for this test:')
557 if pmtf.output:
558 print(pmtf.output)
559 print('---------------')
564 # fill in the remaining tests with ok-skipped
568 for tidx in testlist[count - 1:]:
571 msg = 'skipped - previous {} failed {} {}'.format(stage,
572 index, badtest.get('id', '--Unknown--'))
585 serial = []
590 serial.append(test)
594 serial.append(test)
598 return (serial, parallel)
607 (serial, parallel) = mp_bins(alltests)
610 batches.insert(0, serial)
612 print("Executing {} tests in parallel and {} in serial".format(len(parallel), len(serial)))
639 print("Executing {} tests in serial".format(len(alltests)))
689 '--outfile', type=str,
693 '-p', '--path', type=str,
702 '-D', '--directory', nargs='+', metavar='DIR',
704 '(default [tc-tests])')
706 '-f', '--file', nargs='+', metavar='FILE',
709 '-c', '--category', nargs='*', metavar='CATG', default=['+c'],
713 '-e', '--execute', nargs='+', metavar='ID',
716 '-l', '--list', action='store_true',
719 '-s', '--show', action='store_true', dest='showID',
722 '-i', '--id', action='store_true', dest='gen_id',
725 '-v', '--verbose', action='count', default=0,
728 '--format', default='tap', const='tap', nargs='?',
731 parser.add_argument('-d', '--device',
736 '-P', '--pause', action='store_true',
737 help='Pause execution just before post-suite stage')
739 '-J', '--multiprocess', type=int, default=1, dest='mp',
865 testdirs = ['tc-tests']
868 # at least one file was specified - remove the default directory
970 print('Test results output suppression requested\n')
982 fname = 'test-results.{}'.format(suffix)
1023 # Cleanup on Ctrl-C