Skip to content
Snippets Groups Projects
Commit 4575e954 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

datetime import timedelta

parent ddf9efe0
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
"""Regression test generation for simulating pure VHDL test benches with Modelsim. """Regression test generation for simulating pure VHDL test benches with Modelsim.
Preconditions:
- run modelsim_config.py to create the Modelsim project files
- run generate-all-ip.sh to create all technology specific IP HDL
Usage: Usage:
> python $RADIOHDL/tools/oneclick/base/modelsim_regression_test_vhdl.py -h > python $RADIOHDL/tools/oneclick/base/modelsim_regression_test_vhdl.py -h
...@@ -49,7 +53,7 @@ import subprocess ...@@ -49,7 +53,7 @@ import subprocess
import glob import glob
import os.path import os.path
import time import time
from datetime import timedelta
############################################################################### ###############################################################################
# Parse command line arguments # Parse command line arguments
...@@ -260,12 +264,12 @@ if hdl_args.run: ...@@ -260,12 +264,12 @@ if hdl_args.run:
if nofFailed==0: if nofFailed==0:
fp.write('# Email SUBJECT: All %d VHDL test benches PASSED\n' % nofTb) fp.write('# Email SUBJECT: All %d VHDL test benches PASSED\n' % nofTb)
else: else:
fp.write('# Email SUBJECT: * Out of %d VHDL test benches %d FAILED\n' % (nofTb, nofFailed)) fp.write('# Email SUBJECT: Out of %d VHDL test benches %d FAILED\n' % (nofTb, nofFailed))
# Log total test time # Log total test time
end_time = time.time() end_time = time.time()
run_time = end_time-start_time run_time = end_time-start_time
fp.write('# Email MESSAGE: Total regression test duration: %.1f seconds\n' % run_time) fp.write('# Email MESSAGE: Total regression test duration in days,h:m:s = %s\n' % timedelta(seconds=run_time))
fp.write('# Email LOG: %s\n' % logFileNamePath) fp.write('# Email LOG: %s\n' % logFileNamePath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment