diff --git a/Regression/logfile-feature/main.fmf b/Regression/logfile-feature/main.fmf new file mode 100644 index 0000000..594f900 --- /dev/null +++ b/Regression/logfile-feature/main.fmf @@ -0,0 +1,26 @@ +summary: Testing lofile feature +test: ./test.sh +framework: beakerlib +contact: psklenar@redhat.com +component: + - xterm +recommend: + - xterm + - xorg-x11-server-Xvfb +duration: 5m +enabled: true +tag: + - Tier1 +tier: '1' +link: + - verifies: https://bugzilla.redhat.com/show_bug.cgi?id=2178912 + - verifies: https://bugzilla.redhat.com/show_bug.cgi?id=2179054 +adjust: + - enabled: false + when: distro < rhel-8.9 + continue: false + - enabled: false + when: distro ~< rhel-9.3 + continue: false +extra-nitrate: TC#0615394 +id: 0a199949-850b-4a99-824e-1d0745eb98fb diff --git a/Regression/logfile-feature/test.sh b/Regression/logfile-feature/test.sh new file mode 100755 index 0000000..731c26a --- /dev/null +++ b/Regression/logfile-feature/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 "xvfb-run timeout --preserve-status 15 xterm -l -lf logfile -e 'echo uniquestring'" 0 "running xterm" + rlAssertGrep "uniquestring" "logfile" + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $tmp" 0 "Remove tmp directory" + rlPhaseEnd +rlJournalEnd