CI Gating: Test cover bz460153
This commit is contained in:
parent
75e1534e80
commit
b17e542250
3
ci.fmf
3
ci.fmf
@ -12,5 +12,8 @@
|
||||
how: fmf
|
||||
test: ["/Sanity/memstomp-testsuite"]
|
||||
url: "https://src.fedoraproject.org/rpms/memstomp.git"
|
||||
- name: local_tests
|
||||
how: fmf
|
||||
directory: tests
|
||||
execute:
|
||||
how: tmt
|
||||
|
@ -0,0 +1,13 @@
|
||||
summary: 'Test for bz460153'
|
||||
description: 'Perror should not errcnt across test files'
|
||||
contact: Martin Cermak <mcermak@redhat.com>
|
||||
component:
|
||||
- dejagnu
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
recommend:
|
||||
- dejagnu
|
||||
- expect
|
||||
duration: 5m
|
||||
extra-summary: /CoreOS/dejagnu/Sanity/bz460153-perror-should-not-errcnt-across-test-files
|
||||
extra-task: /CoreOS/dejagnu/Sanity/bz460153-perror-should-not-errcnt-across-test-files
|
@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/dejagnu/Sanity/bz460153-perror-should-not-errcnt-across-test-files
|
||||
# Description: Test for bz460153 (perror should not errcnt across test files)
|
||||
# Author: Marek Polacek <mpolacek@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2011 Red Hat, Inc. All rights reserved.
|
||||
#
|
||||
# This copyrighted material is made available to anyone wishing
|
||||
# to use, modify, copy, or redistribute it subject to the terms
|
||||
# and conditions of the GNU General Public License version 2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be
|
||||
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
# PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public
|
||||
# License along with this program; if not, write to the Free
|
||||
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
# Include rhts environment
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PACKAGE="dejagnu"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "TmpDir=\`mktemp -d\`" 0 "Creating tmp directory"
|
||||
rlRun "pushd $TmpDir"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "echo 'perror foo' > a.exp; echo 'pass bar' > b.exp; runtest a.exp b.exp" 0
|
||||
rlAssertGrep "PASS: bar" testrun.sum
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
Loading…
Reference in New Issue
Block a user