Yocto/bitbake recipe 'diff test'?
Kun Yi
kunyi at google.com
Tue Nov 12 05:45:49 AEDT 2019
Hello there,
After being hit by several regressions due to overrides in Yocto recipes, I
realized that we need a test for these configuration pieces. For changes
like https://gerrit.openbmc-project.xyz/c/openbmc/meta-ibm/+/23668, I would
want the Gerrit presubmit to provide me a diff on which machines this
change would take effect, and which variables are being changed.
Fortunately, I think it is relatively easy to generate such a diff using
bitbake '-e' capability, which produces all the variables after expansion,
so what requires is a little parsing before and after applying the patch.
What's tricky would be what machines to generate the bitbake log with, and
which variables to diff with. Any ideas? Does it make sense to do something
like:
1. Find all the override machine/platform types from within openbmc/openbmc
2. For all the bitbake recipe changes to be landed in openbmc/openbmc,
generate the environment variable diffs for all these overrides
3. Post the diff results to Gerrit as presubmit output
Regards,
Kun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191111/e2ff8938/attachment.htm>
More information about the openbmc
mailing list