-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression run in own testcase directory #801
Comments
I have a small solution -n vsim_simulator_mixin.py call is
Maybe it can be done with an argument --unique_dir. |
A side effect of #785 is that we need to run every thread in a private directory. Try to check out that branch and see if it is solving your problem. |
Ok, I have tested it. Now I get a separate directory for each process. Option -u seems to have no influence anymore. My problem is: How do I get in the post_run() and pre_config() and post_check() functions the simulator_output_path?? the test_suite_name and other information concerning the test, so I can check the correct reference data. VG |
I need a possibility to copy all generated files from the simulation_output_path to the output_path with the current test_suite_name. |
Today class TestbenchInfo:
def __init__(self, tb_name):
self.tb_name = tb_name
self.output_path = None
self.simulator_output_path = None
def make_pre_config(info):
def pre_config(output_path, simulator_output_path):
info.output_path = output_path
info.simulator_output_path = simulator_output_path
# Your code
return True
return pre_config
def make_post_check(info):
def post_check(output_path):
# Your code will have all information available through the info object
return True
return post_check
info = TestbenchInfo("my_testbench")
tb.set_pre_config(make_pre_config(info))
tb.set_post_check(make_post_check(info)) You can make a |
If you're not running in parallel threads then you will still have files being overwritten. You can always copy files from |
Ahh Will this important possibility of parallization be taken over into the master branch in the future? |
I mean simulator_output_path and own subdir for each thread |
|
Only outputpath is in the docu in Pre and post simulation hooks¶ |
Yeah, I see that it is missing from the documentation. I will add that. It is supported though: Line 152 in a66d757
|
maybe the same for the undocumented "output" in line 170 we use only master branch so we wait for the future supportmy workaround for now:
.... def pre_config(self,output_path,simulator_output_path): in def simulate (...
.... |
I use protected models from the suppliers.
They always write the same files. In parallel running simulation they are always overwritten. Thus a reference comparison is not possible.
I am looking for a simple solution to run the simulation not in the directory ...../vunit_out/modelsim/ with the libraries and modelsim.ini but in ...../vunit_out/modelsim/testxyz.
or run it in the output_path
but unfortunately I can't find anything suitable
The other threads could not help
Maybe a easy solution exists
BR
Helmut
The text was updated successfully, but these errors were encountered: