From 61a1897ead3ec0eed8d8cfaee0a7fbdd42c220fc Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Nov 02 2020 12:29:15 +0000 Subject: Enable relevant tests from the shared shell repo This pull request enables tests in the Fedora CI using `tmt` which also allows to easily execute and debug tests from your laptop: Run tests directly on your localhost: sudo dnf install -y tmt tmt run --all provision --how local Run tests in a virtual machine: sudo dnf install -y tmt-provision-virtual tmt run Check the documentation to learn more about the tool: https://docs.fedoraproject.org/en-US/ci/tmt/ --- diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/shell.fmf b/plans/shell.fmf new file mode 100644 index 0000000..d348a4b --- /dev/null +++ b/plans/shell.fmf @@ -0,0 +1,14 @@ +summary: + Run relevant tests from the shell tests repository +discover: + how: fmf + url: https://src.fedoraproject.org/tests/shell + filter: component:dash +prepare: + how: install + package: dash +execute: + how: tmt +environment: + PACKAGES: dash + SH_BIN: dash diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index cb012a5..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- - -- hosts: localhost - roles: - - role: standard-test-beakerlib - tags: - - classic - repositories: - - repo: "https://src.fedoraproject.org/tests/shell.git" - dest: "shell" - fmf_filter: "tier: 1, 2 & component: dash" - environment: - PACKAGES: dash - SH_BIN: dash - required_packages: - - expect # login requires expect - - which # smoke requires which