ibex/vendor/lowrisc_ip/dvsim/testplanner.py
Rupert Swarbrick 6a557b47ee Update dvsim to lowRISC/opentitan@1d17b122
Update code from subdir util/dvsim in upstream repository
https://github.com/lowRISC/opentitan to revision
1d17b1225d324c81da522c69317335a83edd5ddb

* [dvsim] PEP8 fixes in dvsim (Rupert Swarbrick)
* [dvsim] Fix PEP8 error and slightly tidy code in testplan_utils.py
  (Rupert Swarbrick)
* [dvsim] Correct bug in regression creation in dvsim's Modes.py
  (Rupert Swarbrick)
* [dv] Enable xcelium coverage publish (Weicai Yang)
* [tool/dvsim] Enable Xcelium coverage and clean up email arg (Cindy
  Chen)
* [dv] add send email option to dvsim.py (Cindy Chen)
* [util/dvsim] Convert time to UTC timezone (Eunchan Kim)
* [dvsim] Fix broken link of xbar testplan (Weicai Yang)
* [dvsim] Add CTRL-C support (Weicai Yang)
* [dvsim] Initial verible lint integration (Michael Schaffner)
* [dvsim] Add control of max job submission per second (Weicai Yang)
* [dv/tool] Add support to choose sub-cfgs (Cindy Chen)
* [dvsim] Enable coverage collection with Xcelium (Srikrishna Iyer)
* [dvsim] Update lint flow due to changes in synthesis (Michael
  Schaffner)
* [dvsim] Synthesis target integration (Michael Schaffner)
* [dvsim] Added fusesoc generator for RAL (Srikrishna Iyer)
* [dvsim] Fix summary table (Greg Chadwick)

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
2020-04-28 17:42:02 +01:00

41 lines
1.1 KiB
Python
Executable file

#!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
r"""Command-line tool to parse and process testplan Hjson
"""
import argparse
import sys
from testplanner import testplan_utils
def main():
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument(
'testplan',
metavar='<hjson-file>',
help='input testplan file (*.hjson)')
parser.add_argument(
'-r',
'--regr_results',
metavar='<hjson-file>',
help='input regression results file (*.hjson)')
parser.add_argument(
'--outfile',
'-o',
type=argparse.FileType('w'),
default=sys.stdout,
help='output HTML file (without CSS)')
args = parser.parse_args()
outfile = args.outfile
with outfile:
testplan_utils.gen_html(args.testplan, args.regr_results, outfile)
if __name__ == '__main__':
main()