From 7d83b360e0ecb69efc08615a15f4571f7ed9af8c Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Jul 26 2022 08:13:29 +0000 Subject: Add `tmt` example with installing packages --- diff --git a/modules/ROOT/pages/tmt.adoc b/modules/ROOT/pages/tmt.adoc index cb129f5..3b1f246 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 `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] method documentation for details. + === Multiple Repositories === In the discover step it is possible to reference multiple repositories as well.