Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
psklenar@redhat.com
e2caf4fabe file path 2024-06-12 11:54:30 +02:00
psklenar@redhat.com
6903394795 file by file 2024-06-12 10:00:34 +02:00
psklenar@redhat.com
f3145d9818 tmt test export 2024-06-12 09:46:01 +02:00
psklenar@redhat.com
beb4d6c506 show version 2024-06-11 11:11:35 +02:00
Petr Sklenar
b84a90120a Update Sanity/opvp-driver-from-ArtifexSoftware/test.sh 2024-06-10 07:21:37 +00:00
2 changed files with 12 additions and 4 deletions

View file

@ -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#0617559
id: 9f202f36-9b8d-4637-ad70-15ad32994191

View file

@ -4,19 +4,25 @@
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"
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest "Test" rlPhaseStartTest "Test the driver"
[ -d ghostpdl ] || rlRun "git clone https://github.com/psklenar/ghostpdl.git" [ -d ghostpdl ] || rlRun "git clone https://github.com/psklenar/ghostpdl.git"
rlRun "pushd ghostpdl/contrib/opvp/" rlRun "pushd ghostpdl/contrib/opvp/"
rlRun "./build_opv_harness.sh" rlRun "./build_opv_harness.sh"
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