teemtee / tmt

Test Management Tool
MIT License
79 stars 117 forks source link

Expose `prepare.distgit` #2994

Open LecrisUT opened 1 month ago

LecrisUT commented 1 month ago

Working a bit on refactoring cmake's tmt I've come to the situation where upstream does not have a tmt setup, but still I want to get the exact source (and test data) used for the build (including patching and all), and run the integrated tests. For this exposing prepare.how = distgit would be quite useful as a shortcut, with some tweaks.

lukaszachy commented 1 month ago
* expose the `srpm` on `TMT_PLAN_DATA`

Do we want to build srpm? Would you mind illustrating the use case?

LecrisUT commented 1 month ago

Not to build the srpm, but to have the srpm file and the extracted form available. Having the SRPM might come in handy if the sources are something other than Source0. As for the main use-case, let's take cmake: