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

Make program generated files optional? #86

Open
info-rchitect opened this issue Mar 25, 2018 · 1 comment
Open

Make program generated files optional? #86

info-rchitect opened this issue Mar 25, 2018 · 1 comment
Assignees
Labels

Comments

@info-rchitect
Copy link
Member

Hi,

We have a program assembly tool that recursively searches a test module's repo directory for .tf, .pmfl, and other program generated files. Because we are currently only using the generated .tf file, these files get found and cause test program loading issues. Is it possible to tell origen testers not to create certain files?

thx

@ginty
Copy link
Member

ginty commented Mar 27, 2018

Not currently, though you could obviously delete what you don't want from the app side.

Every file that OrigenTesters generates has a corresponding generator class that is responsible for it and each of those is a child class of OrigenTesters::Generator.

There is already a to_be_written? method that is used internally by overriding it within some generator sub-classes which should not create a file - https://github.com/Origen-SDK/origen_testers/blob/master/lib/origen_testers/generator.rb#L257

You could do a PR to allow the value returned by that to be overridden by the application.

Then you could do:

# I don't want a .pmfl to be generated
pattern_master.to_be_written = false

Once you have that, you could also add further syntactic sugar methods if you want:

tester.generate_flow_only = true

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

No branches or pull requests

3 participants