From: Ondrej Lichtner <olichtne(a)redhat.com>
This is a recipe grouping class for virtual recipes where we use the
same list of mixin/composition classes to generate specific config
combinations and measurements.
The main difference to the BaremetalEnrtRecipe is the different type of
stat cpu measurement generation.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Recipes/ENRT/VirtualEnrtRecipe.py | 28 ++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 lnst/Recipes/ENRT/VirtualEnrtRecipe.py
diff --git a/lnst/Recipes/ENRT/VirtualEnrtRecipe.py
b/lnst/Recipes/ENRT/VirtualEnrtRecipe.py
new file mode 100644
index 0000000..82d6e3a
--- /dev/null
+++ b/lnst/Recipes/ENRT/VirtualEnrtRecipe.py
@@ -0,0 +1,28 @@
+from lnst.Recipes.ENRT.BaseEnrtRecipe import BaseEnrtRecipe
+from lnst.Recipes.ENRT.PerfTestMixins import CommonPerfTestTweakMixin
+from lnst.Recipes.ENRT.ConfigMixins.DisableTurboboostMixin import (
+ DisableTurboboostMixin,
+)
+from lnst.Recipes.ENRT.ConfigMixins.DisableIdleStatesMixin import (
+ DisableIdleStatesMixin,
+)
+
+from lnst.Recipes.ENRT.MeasurementGenerators.IperfMeasurementGenerator import (
+ IperfMeasurementGenerator,
+)
+from lnst.Recipes.ENRT.MeasurementGenerators.HypervisorsStatCPUMeasurementGenerator
import (
+ HypervisorsStatCPUMeasurementGenerator,
+)
+
+
+class VirtualEnrtRecipe(
+ CommonPerfTestTweakMixin,
+ DisableTurboboostMixin,
+ DisableIdleStatesMixin,
+ HypervisorsStatCPUMeasurementGenerator,
+ IperfMeasurementGenerator,
+ BaseEnrtRecipe,
+):
+ @property
+ def hypervisor_hosts(self):
+ return set([self.matched.host1, self.matched.host2])
--
2.30.0