1 Commits

Author SHA1 Message Date
Petr Šplíchal 28b3f3e400 Try fetching a source rpm for installed tmt 2021-06-17 14:55:34 +02:00
3 changed files with 30 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt
+4
View File
@@ -0,0 +1,4 @@
summary: Fetch source rpm
test: ./test.sh
framework: beakerlib
require: tmt
+21
View File
@@ -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
rlFetchSrcForInstalled "tmt"
rlRun "ls -la"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd