next test

This commit is contained in:
pdancak 2022-01-21 16:43:14 +01:00
commit fe18c83db0
3 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,27 @@
summary: Test for BZ#1592851 (rastertoepson filter crashes with paper size A6)
description: |
Bug summary: rastertoepson filter crashes with paper size A6
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1592851
contact: Petr Dancak <pdancak@redhat.com>
component:
- cups
test: ./runtest.sh
framework: beakerlib
recommend:
- cups
duration: 20m
enabled: true
tag:
- NoRHEL4
- NoRHEL5
- TIPfail
- TIPfail_infra
link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1592851
adjust:
- enabled: false
when: distro == rhel-4, rhel-5
continue: false
extra-nitrate: TC#0605872
extra-summary: /CoreOS/cups/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6
extra-task: /CoreOS/cups/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6

View file

@ -0,0 +1,54 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/cups/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6
# Description: Test for BZ#1592851 (rastertoepson filter crashes with paper size A6)
# Author: Zdenek Dohnal <zdohnal@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2020 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# 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, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="cups"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "cp gstoraster.ras $TmpDir"
rlRun "pushd $TmpDir"
rlServiceStart cups
rlPhaseEnd
rlPhaseStartTest
rlRun "lpadmin -p test -m drv:///sample.drv/okidat24.ppd"
rlRun "PPD=/etc/cups/ppd/test.ppd /usr/lib/cups/filter/rastertoepson 1 root '' 1 '' < ./gstoraster.ras > ./rastertoepson.prn"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "lpadmin -x test"
rlServiceRestore cups
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd