-
Notifications
You must be signed in to change notification settings - Fork 28
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
implement programatic expansion of metadata - macros #152
Comments
Hi @sopos , But in generic it could be also implemented by my extension via python pytest, you can in python write test generator for pytest, so that you can do whatever you want and generate matrix as you wish with full python selmantics, so that powerfull instead of trying to add own semantic Then fmf will collect data based on your generation. simply e.g. via So that your macro extension is something between this avocado multiplexer and dynamic python tests from my PoV. |
another real use case (from rhel6 :) : adjust:
- require-:
- rsyslog
require+:
- rsyslog7
when: component = rsyslog7 plus for all the required sub-packages. An elegant solution might be to use the macro language: set rsyslog=rsyslog7
require:
- ${rsyslog}
- ${rsyslog}-gnutls So the only require thing would be to replace all the requirement Another solution might be to use templates. |
Example:
imagine this metadata:
to simplify it one could use something like:
For more metadata worth simplification see https://github.com/RedHat-SP-Security/tests/blob/69e188bad1da05dbdbf21d102bcec25655ec9a3b/rsyslog/Sanity/gnutls-openssl/main.fmf#L57
The life metadata cannot be used directly due to nitrate TC mapping but it could be easily without it.
The fmf files would be pre-processed using a metalanguage and then processed as usual.
The text was updated successfully, but these errors were encountered: