Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70f18f79d3 | ||
|
|
7168e79ec9 | ||
|
|
fdd51a0bff | ||
|
|
636264e566 | ||
|
|
c25e5a47c6 | ||
|
|
cddeeffd5a | ||
|
|
47ecbc1f2f |
11 changed files with 87 additions and 13 deletions
1
README
1
README
|
|
@ -1 +0,0 @@
|
||||||
Repository for ghostscript CI tests
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
summary: Trying opvp-driver from ArtifexSoftware
|
summary: Trying opvp-driver from ArtifexSoftware
|
||||||
test: ./test.sh
|
test: ./test.sh
|
||||||
contact: psklenar@redhat.com
|
contact: psklenar@redhat.com
|
||||||
component:
|
component:
|
||||||
|
|
@ -7,6 +7,8 @@ framework: beakerlib
|
||||||
require:
|
require:
|
||||||
- git
|
- git
|
||||||
- ghostscript
|
- ghostscript
|
||||||
- gcc
|
- gcc
|
||||||
duration: 35m
|
duration: 35m
|
||||||
tier: '2'
|
tier: '2'
|
||||||
|
extra-nitrate: TC#0617552
|
||||||
|
id: 8e6dd1f0-0166-4f4f-afb0-cd3296992f57
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
rlPhaseStartSetup
|
rlPhaseStartSetup
|
||||||
|
rlLog "`rpm -q ghostscript`"
|
||||||
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
|
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
|
||||||
rlRun "pushd $tmp"
|
rlRun "pushd $tmp"
|
||||||
rlRun "set -o pipefail"
|
rlRun "set -o pipefail"
|
||||||
|
|
@ -16,7 +17,12 @@ rlJournalStart
|
||||||
rlRun "ls libopv.so"
|
rlRun "ls libopv.so"
|
||||||
rlLog "$(ls)"
|
rlLog "$(ls)"
|
||||||
rlRun "popd"
|
rlRun "popd"
|
||||||
rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f ./ghostpdl/examples/*.*"
|
rlRun "ls ./ghostpdl/examples"
|
||||||
|
for i in $(ls ./ghostpdl/examples/*.*);do
|
||||||
|
rlLog "file $i"
|
||||||
|
rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f $i"
|
||||||
|
rlLog "--------------------"
|
||||||
|
done
|
||||||
rlRun "grep opvpOpenPrinter opvp_command_dump.txt"
|
rlRun "grep opvpOpenPrinter opvp_command_dump.txt"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ test: ./runtest.sh
|
||||||
framework: beakerlib
|
framework: beakerlib
|
||||||
recommend:
|
recommend:
|
||||||
- ghostscript
|
- ghostscript
|
||||||
|
- file
|
||||||
duration: 10m
|
duration: 10m
|
||||||
enabled: true
|
enabled: true
|
||||||
tag:
|
tag:
|
||||||
|
|
|
||||||
|
|
@ -77,9 +77,14 @@ for i in "ghostscript" "gs" "gsnd" "ps2ascii";do
|
||||||
done
|
done
|
||||||
|
|
||||||
rlPhaseStartTest 'pdf2dsc'
|
rlPhaseStartTest 'pdf2dsc'
|
||||||
rlRun "pdf2dsc IBM-RED-HAT-Press-Release-10-2018.pdf &> $LOG"
|
if rlIsRHELLike '>10'
|
||||||
rlRun "cff $LOG"
|
then
|
||||||
rlRun "file IBM-RED-HAT-Press-Release-10-2018.dsc|grep DSC"
|
rlLog "pdf2dsc is not maintained upstream, skipping"
|
||||||
|
else
|
||||||
|
rlRun "pdf2dsc IBM-RED-HAT-Press-Release-10-2018.pdf &> $LOG"
|
||||||
|
rlRun "cff $LOG"
|
||||||
|
rlRun "file IBM-RED-HAT-Press-Release-10-2018.dsc|grep DSC"
|
||||||
|
fi
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
|
|
||||||
rlPhaseStartTest 'pdf2ps'
|
rlPhaseStartTest 'pdf2ps'
|
||||||
|
|
|
||||||
2
main.fmf
2
main.fmf
|
|
@ -1,2 +1,4 @@
|
||||||
# QE owner
|
# QE owner
|
||||||
contact: Petr Sklenar <psklenar@redhat.com>
|
contact: Petr Sklenar <psklenar@redhat.com>
|
||||||
|
check:
|
||||||
|
- how: avc
|
||||||
|
|
|
||||||
5
plans/all.fmf
Normal file
5
plans/all.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
summary: Run all tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
summary: CI plan, picks up all tests, runs in beakerlib.
|
|
||||||
discover:
|
|
||||||
- name: fedora
|
|
||||||
how: fmf
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
||||||
20
plans/others.fmf
Normal file
20
plans/others.fmf
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
/public:
|
||||||
|
summary: Public other tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost'
|
||||||
|
url: "https://src.fedoraproject.org/tests/ghostscript.git"
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
/internal:
|
||||||
|
summary: Internal other tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: -1 & tier: -2 & tier: -3 & tag: -multihost'
|
||||||
|
url: https://gitlab.com/redhat/rhel/tests/ghostscript
|
||||||
|
adjust:
|
||||||
|
enabled: false
|
||||||
|
when: distro == centos-stream or distro == fedora
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
20
plans/tier1.fmf
Normal file
20
plans/tier1.fmf
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
/public:
|
||||||
|
summary: Public Tier1 tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 1'
|
||||||
|
url: "https://src.fedoraproject.org/tests/ghostscript.git"
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
/internal:
|
||||||
|
summary: Internal Tier1 tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 1'
|
||||||
|
url: https://gitlab.com/redhat/rhel/tests/ghostscript
|
||||||
|
adjust:
|
||||||
|
enabled: false
|
||||||
|
when: distro == centos-stream or distro == fedora
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
20
plans/tier2-tier3.fmf
Normal file
20
plans/tier2-tier3.fmf
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
/public:
|
||||||
|
summary: Public Tier2 and Tier3 tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 2 | tier: 3'
|
||||||
|
url: "https://src.fedoraproject.org/tests/ghostscript.git"
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
|
|
||||||
|
/internal:
|
||||||
|
summary: Internal Tier2 and Tier3 tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
filter: 'tier: 2 | tier: 3'
|
||||||
|
url: https://gitlab.com/redhat/rhel/tests/ghostscript
|
||||||
|
adjust:
|
||||||
|
enabled: false
|
||||||
|
when: distro == centos-stream or distro == fedora
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
Loading…
Add table
Add a link
Reference in a new issue