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/build/unit-tests/main.fmf b/build/unit-tests/main.fmf new file mode 100644 index 0000000..aa05a37 --- /dev/null +++ b/build/unit-tests/main.fmf @@ -0,0 +1,6 @@ +summary: Concise summary describing what the test does +test: ./test.sh +require: + - perl-IPC-SysV + - perl-Time-HiRes + - systemd-tests diff --git a/build/unit-tests/test.sh b/build/unit-tests/test.sh new file mode 100755 index 0000000..82c4c93 --- /dev/null +++ b/build/unit-tests/test.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -eux +set -o pipefail + +if ! rpm -q systemd-tests; then + echo >&2 "Missing package 'systemd-tests'" + exit 1 +fi + +/usr/lib/systemd/tests/run-unit-tests.py --unsafe diff --git a/plans/ci.fmf b/plans/ci.fmf new file mode 100644 index 0000000..514b0c7 --- /dev/null +++ b/plans/ci.fmf @@ -0,0 +1,13 @@ +# vi: sw=2 ts=2 et ft=yaml: + +summary: systemd Fedora test suite +discover: + how: fmf +prepare: + - name: systemd + how: install + exclude: + - systemd-standalone-tmpfiles + - systemd-standalone-sysusers +execute: + how: tmt