From 17f1cc7fcd7d1c5d6c7b0f0e8d8e01166ba59ba9 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: May 31 2023 08:30:18 +0000 Subject: Add `tmt` example with installing packages --- diff --git a/modules/ROOT/pages/tmt.adoc b/modules/ROOT/pages/tmt.adoc index cb129f5..e40f1a1 100644 --- a/modules/ROOT/pages/tmt.adoc +++ b/modules/ROOT/pages/tmt.adoc @@ -293,6 +293,21 @@ Multiple shell commands can be provided under the `script` attribute as well: See the https://tmt.readthedocs.io/en/latest/spec/plans.html#script[script] method documentation for details. +=== Installing Dependencies === + +Required packages can be installed using the `prepare` attribute: + + summary: Basic smoke test for python3-m2crypto + prepare: + how: install + package: + - python3-setuptools + - python3-m2crypto + execute: + script: python3 -c "import M2Crypto" + +See the https://tmt.readthedocs.io/en/latest/spec/plans.html#prepare[prepare] step documentation for details. + === Multiple Repositories === In the discover step it is possible to reference multiple repositories as well.