beakerlib / libraries

Documentation for shared beakerlib libraries and general libraries requests.
2 stars 2 forks source link

Request library: `cmake` #14

Open LecrisUT opened 1 year ago

LecrisUT commented 1 year ago

Some useful cmake plans and reusable tests:

I am using some tmt/beakerlib tests in https://github.com/LecrisUT/CmakeExtraUtils, and it would be nice to make some of them reusable. But there are a few points that I could use some help in order to make them portable.

Pinging: @lukaszachy @psss @sopos

psss commented 1 year ago

Are tmt plans run sequentially e.g. are the prepare steps run one after another in the same environment?

Currently tmt plans are run sequentially but each plan performs a separate guest provision step so there would be always a fresh/clean environment for each plan. In the future there is a plan to support executing plan in parallel as well.

Can an imported tmt plan access the tmt tree of the calling plan? If so how to distinguish one from another or navigate through them? Basically the opposite of tests/require?

For the imported plan the whole remote repository is cloned and the plan is initialized from there. If I remember correctly, as for now no access to the calling plan tree is provided. @adiosnb, any thoughts on this?