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/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..eb110c7 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,6 @@ +jobs: + - job: tests + trigger: pull_request + metadata: + targets: [fedora-all] + skip_build: true diff --git a/plans/example.fmf b/plans/example.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/example.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/tc#000/main.fmf b/tests/tc#000/main.fmf new file mode 100644 index 0000000..39b5cb5 --- /dev/null +++ b/tests/tc#000/main.fmf @@ -0,0 +1,4 @@ +summary: Test with hash sign in the name +test: ./test.sh +framework: beakerlib +require: tmt diff --git a/tests/tc#000/test.sh b/tests/tc#000/test.sh new file mode 100755 index 0000000..c4d126f --- /dev/null +++ b/tests/tc#000/test.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +rlJournalStart + rlPhaseStartSetup + rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory" + rlRun "pushd $tmp" + rlRun "set -o pipefail" + rlPhaseEnd + + rlPhaseStartTest + rlRun "tmt --help | tee output" 0 "Check help message" + rlAssertGrep "Test Management Tool" "output" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $tmp" 0 "Remove tmp directory" + rlPhaseEnd +rlJournalEnd