From 56dda0f1a625ee5a4e429035e4c3a4a894d628b0 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Mon, 17 Jun 2024 10:28:27 +0200 Subject: [PATCH 1/2] ci: Add a simple tmt test and run it via packit --- .packit.yaml | 10 ++++++++++ plans/tests.fmf | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plans/tests.fmf diff --git a/.packit.yaml b/.packit.yaml index 573920eb9..95e135c12 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -26,6 +26,16 @@ jobs: additional_repos: - "copr://@storage/udisks-daily" +- job: tests + trigger: pull_request + targets: + - fedora-latest-stable + tf_extra_params: + environments: + - artifacts: + - type: repository-file + id: https://copr.fedorainfracloud.org/coprs/g/storage/udisks-daily/repo/fedora-$releasever/group_storage-udisks-daily-fedora-$releasever.repo + # run tests for udisks consumers, see plans/ with `revdeps == yes` - job: tests identifier: revdeps diff --git a/plans/tests.fmf b/plans/tests.fmf new file mode 100644 index 000000000..13eaf1e9a --- /dev/null +++ b/plans/tests.fmf @@ -0,0 +1,20 @@ +summary: Run tests + +adjust+: + when: revdeps == yes + enabled: false + +prepare: + - name: copr + how: shell + script: + - sudo dnf install -y 'dnf-command(copr)' + - sudo dnf copr enable -y @storage/udisks-daily + + - name: ansible + how: ansible + playbook: misc/install-test-dependencies.yml + +execute: + how: tmt + script: ./autogen.sh --enable-modules && make -j && sudo make dbus-tests From 71254ec1b59e9da461a19b656c4dffea65d94a42 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Mon, 17 Jun 2024 11:25:08 +0200 Subject: [PATCH 2/2] misc: Add cryptsetup to test dependencies --- misc/install-test-dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/install-test-dependencies.yml b/misc/install-test-dependencies.yml index 5d11d92ca..8b9d68b70 100644 --- a/misc/install-test-dependencies.yml +++ b/misc/install-test-dependencies.yml @@ -63,4 +63,5 @@ - python-systemd - python3-systemd - python3-monotonic + - cryptsetup when: ansible_distribution == 'Fedora'