Skip to content
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

class vunit.ui.testbench.TestBench missing get_configs() #800

Closed
asicnet opened this issue Feb 14, 2022 · 4 comments
Closed

class vunit.ui.testbench.TestBench missing get_configs() #800

asicnet opened this issue Feb 14, 2022 · 4 comments

Comments

@asicnet
Copy link

asicnet commented Feb 14, 2022

The method is described in the docu but not impelemented in the master branch

found it in add-configuration-support branch

get_configs(pattern='*')
Get test bench configurations matching pattern.

Parameters
pattern – A wildcard pattern matching the configuration name(s).

Returns
A ConfigurationList object

@LarsAsplund
Copy link
Collaborator

@asicnet Don't see it but @umarcor just fixed some other things. Still a problem?

@asicnet
Copy link
Author

asicnet commented Feb 15, 2022

hi
what happen :) I reload https://vunit.github.io/py/vunit.html#vunit.ui.test.Test and get_configs() has disappeared
It would be nice to have this function.

My task: Search for a test
mylib.mytop.mytest.myseed

I use (short desc.)

for lib in vu._project.get_libraries(): ..... mising vu.get_libraries()
for bench in vu.library(lib.name).get_test_benches(): ....
for cfg in bench._test_bench._configs: .....

So missing the function in testbench.py

def get_configs(self):
    return self._test_bench._configs

Than i can use
for cfg in bench.get_configs: .....

@LarsAsplund
Copy link
Collaborator

@asicnet I'm not sure what happen there but noticed that the problem disappeared with the other fixes.

We have a branch adding support for dealing with top-level VHDL configurations (#785). That will add methods to get configurations. Will that work for you use case?

@LarsAsplund
Copy link
Collaborator

Handled by #785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants