diff --git a/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/gstoraster.ras b/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/gstoraster.ras new file mode 100644 index 0000000..bc7dfd2 Binary files /dev/null and b/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/gstoraster.ras differ diff --git a/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/main.fmf b/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/main.fmf new file mode 100644 index 0000000..d7a019b --- /dev/null +++ b/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/main.fmf @@ -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 +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 diff --git a/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/runtest.sh b/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/runtest.sh new file mode 100755 index 0000000..82c795c --- /dev/null +++ b/Regression/bz1592851-rastertoepson-filter-crashes-with-paper-size-A6/runtest.sh @@ -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 +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# 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