add test
This commit is contained in:
parent
569cbdae77
commit
57f02f7172
2 changed files with 47 additions and 0 deletions
26
Regression/logfile-feature/main.fmf
Normal file
26
Regression/logfile-feature/main.fmf
Normal file
|
|
@ -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
|
||||
21
Regression/logfile-feature/test.sh
Executable file
21
Regression/logfile-feature/test.sh
Executable 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
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue