Skip to content

Commit

Permalink
Use Packit/TMT to run Python-based udev tests
Browse files Browse the repository at this point in the history
Run all the tests defined in the udev subdirectory that should be run as
continuous integration and not as part of nightly CI.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Sep 21, 2023
1 parent 2158d88 commit 75337d1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 156 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
155 changes: 0 additions & 155 deletions .github/workflows/python.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ srpm_build_deps:
jobs:
- job: copr_build
trigger: pull_request
manual_trigger: true
targets:
- fedora-stable

- job: tests
trigger: pull_request
targets:
- fedora-stable
14 changes: 14 additions & 0 deletions plans/all.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
summary: top level management
prepare:
- name: Install packages
how: install
package:
- tang
- systemd
- name: Start tang server
how: shell
script: systemctl enable tangd.socket --now
discover:
how: fmf
execute:
how: tmt
12 changes: 12 additions & 0 deletions test/udev/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
summary: Run udev tests
duration: 20m
require:
- clevis-luks
- make
- python3-dbus
- python3-dbus-client-gen
- python3-dbus-python-client-gen
- python3-psutil
- python3-pyudev
test: TANG_URL=localhost RUST_LOG=stratisd=debug STRATISD=/usr/libexec/stratisd STRATIS_DUMPMETADATA=/usr/bin/stratis-dumpmetadata PYTHONPATH=./src make -f Makefile udev-tests tang-tests dump-metadata-tests
path: /tests/client-dbus

0 comments on commit 75337d1

Please sign in to comment.