-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Some useful cmake plans and reusable tests:
- Importing the cmake project via
find_packageandFetchContent- Need to make sure that the caller of
tmt/plan/importinstalls the necessary packages. (Maybe this is handled automatically?) - Use an environment variable to specify the name of the package and git URL/tag to import
- Have a mechanism to smoke test. Maybe using
FetchContentto retrieve the necessary additional files to be run viaadd_subdirectory?
- Need to make sure that the caller of
- Running cmake/ctests through cmake presets
- Similar to above, but running a full configure-build-test workflow
- Specify a path where the
CMakePresets.jsonshould be called from
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.
- Are tmt plans run sequentially e.g. are the prepare steps run one after another in the same environment?
- 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?
Pinging: @lukaszachy @psss @sopos
Metadata
Metadata
Assignees
Labels
No labels