diff options
author | Wade Fife <wade.fife@ettus.com> | 2020-03-20 16:18:55 -0500 |
---|---|---|
committer | Wade Fife <wade.fife@ettus.com> | 2020-03-23 18:01:53 -0500 |
commit | 39d6007ca7e3b27e8230db6690faa7469ca62cb2 (patch) | |
tree | a1f3688c82af25777bb57aeed5254cbffe8e9588 /fpga/usrp3/tools | |
parent | 974b9d6140fe6d35ef6698d437e12beaf071ba63 (diff) | |
download | uhd-39d6007ca7e3b27e8230db6690faa7469ca62cb2.tar.gz uhd-39d6007ca7e3b27e8230db6690faa7469ca62cb2.tar.bz2 uhd-39d6007ca7e3b27e8230db6690faa7469ca62cb2.zip |
fpga: tools: Add ModelSim to run_testbenches.py
This adds the "modelsim" simulator option to run_testbenches.py to allow
for regression testing of the native ModelSim simulation target.
Diffstat (limited to 'fpga/usrp3/tools')
-rwxr-xr-x | fpga/usrp3/tools/utils/run_testbenches.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fpga/usrp3/tools/utils/run_testbenches.py b/fpga/usrp3/tools/utils/run_testbenches.py index bcfb7e5c6..70cafeffd 100755 --- a/fpga/usrp3/tools/utils/run_testbenches.py +++ b/fpga/usrp3/tools/utils/run_testbenches.py @@ -133,20 +133,20 @@ def parse_output(simout): # test executors. tb_match_fmt0 = ([ b'.*TESTBENCH FINISHED: (.+)\n', - b' - Time elapsed: (.+) ns.*\n', - b' - Tests Expected: (.+)\n', - b' - Tests Run: (.+)\n', - b' - Tests Passed: (.+)\n', - b'Result: (PASSED|FAILED).*', + b'(?:# )? - Time elapsed: (.+) ns.*\n', + b'(?:# )? - Tests Expected: (.+)\n', + b'(?:# )? - Tests Run: (.+)\n', + b'(?:# )? - Tests Passed: (.+)\n', + b'(?:# )?Result: (PASSED|FAILED).*', ]) m_fmt0 = re.match(b''.join(tb_match_fmt0), simout, re.DOTALL) tb_match_fmt1 = ([ b'.*TESTBENCH FINISHED: (.*)\n', - b' - Time elapsed: (.+) ns.*\n', - b' - Tests Run: (.+)\n', - b' - Tests Passed: (.+)\n', - b' - Tests Failed: (.+)\n', - b'Result: (PASSED|FAILED).*', + b'(?:# )? - Time elapsed: (.+) ns.*\n', + b'(?:# )? - Tests Run: (.+)\n', + b'(?:# )? - Tests Passed: (.+)\n', + b'(?:# )? - Tests Failed: (.+)\n', + b'(?:# )?Result: (PASSED|FAILED).*', ]) m_fmt1 = re.match(b''.join(tb_match_fmt1), simout, re.DOTALL) @@ -368,7 +368,7 @@ def do_report(args): def get_options(): parser = argparse.ArgumentParser(description='Batch testbench execution script') parser.add_argument('-d', '--basedir', default=BASE_DIR, help='Base directory for the usrp3 codebase') - parser.add_argument('-s', '--simulator', choices=['xsim', 'vsim'], default='xsim', help='Simulator name') + parser.add_argument('-s', '--simulator', choices=['xsim', 'vsim', 'modelsim'], default='xsim', help='Simulator name') parser.add_argument('-e', '--setupenv', default=None, help='Optional environment setup script to run for each TB') parser.add_argument('-r', '--report', default='testbench_report.csv', help='Name of the output report file') parser.add_argument('-x', '--excludes', default=None, help='Name of the excludes file. It contains all targets to exlude.') |