| # 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 |
| parser = argparse.ArgumentParser( |
| formatter_class=argparse.RawDescriptionHelpFormatter) |
| parser.add_argument('testplan', |
| help='input testplan file (testplan.hjson)') |
| parser.add_argument('-s', |
| help='''input simulation results file |
| parser.add_argument('--outfile', |
| type=argparse.FileType('w'), |
| help='output HTML file (without CSS)') |
| args = parser.parse_args() |
| testplan = Testplan.Testplan(args.testplan) |
| testplan.get_sim_results(args.sim_results, fmt="html")) |
| outfile.write(testplan.get_testplan_table("html")) |
| if __name__ == '__main__': |