From fa92fbc6512d8c82f321e5339e76875bccb53708 Mon Sep 17 00:00:00 2001 From: Filip Suba Date: Thu, 30 Apr 2026 16:32:43 +0200 Subject: [PATCH] Use tmt for gating tests Related: RHEL-173745 --- plans/gating.fmf | 14 ++++++++++++++ tests/functions_test/main.fmf | 7 +++++++ tests/tests.yml | 26 -------------------------- tests/tools_not_linked_usr/main.fmf | 7 +++++++ 4 files changed, 28 insertions(+), 26 deletions(-) create mode 100644 plans/gating.fmf create mode 100644 tests/functions_test/main.fmf delete mode 100644 tests/tests.yml create mode 100644 tests/tools_not_linked_usr/main.fmf diff --git a/plans/gating.fmf b/plans/gating.fmf new file mode 100644 index 0000000..395852f --- /dev/null +++ b/plans/gating.fmf @@ -0,0 +1,14 @@ +summary: device-mapper-persistent-data gating tests +discover: + how: fmf +execute: + how: tmt +provision: + hardware: + memory: ">= 3 GB" +prepare: + how: install + package: + - device-mapper-persistent-data + - which + - python3 diff --git a/tests/functions_test/main.fmf b/tests/functions_test/main.fmf new file mode 100644 index 0000000..31666d9 --- /dev/null +++ b/tests/functions_test/main.fmf @@ -0,0 +1,7 @@ +summary: Testing thin tools provided by device-mapper-persistent-data +description: | + Verify that thin tools provided by device-mapper-persistent-data work correctly. +component: + - device-mapper-persistent-data +test: ./dmpd_functions.py +duration: 60m diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 67072a2..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# Tests suitable to run in classic environment -- hosts: localhost - roles: - - role: standard-test-beakerlib - tags: - - classic - tests: - - tools_not_linked_usr - - functions_test - required_packages: - - findutils # beakerlib needs find command - - which # tools_not_linked_usr needs which command - -# Tests suitable to run in container and atomic environments -- hosts: localhost - roles: - - role: standard-test-beakerlib - tags: - - container - - atomic - tests: - - tools_not_linked_usr - required_packages: - - findutils # beakerlib needs find command - - which # tools_not_linked_usr needs which command diff --git a/tests/tools_not_linked_usr/main.fmf b/tests/tools_not_linked_usr/main.fmf new file mode 100644 index 0000000..154bc7d --- /dev/null +++ b/tests/tools_not_linked_usr/main.fmf @@ -0,0 +1,7 @@ +summary: Make sure tools are not using any library that is linked to /usr +description: | + Make sure tools are not using any library that is linked to /usr +component: + - device-mapper-persistent-data +test: ./tools_not_linked_usr.py +duration: 10m