adding opvp-driver-from-ArtifexSoftware

This commit is contained in:
psklenar@redhat.com 2024-06-10 09:19:12 +02:00
commit 78be76d13c
3 changed files with 2417 additions and 0 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,12 @@
summary: Trying opvp-driver from ArtifexSoftware
test: ./test.sh
contact: psklenar@redhat.com
component:
- ghostscript
framework: beakerlib
require:
- git
- ghostscript
- gcc
duration: 35m
tier: '2'

View file

@ -0,0 +1,29 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
rlPhaseEnd
rlPhaseStartTest "Test"
[ -d ghostpdl ] || rlRun "git clone https://github.com/psklenar/ghostpdl.git"
rlRun "pushd ghostpdl/contrib/opvp/"
rlRun "./build_opv_harness.sh"
rlRun "ls libopv.so"
rlLog "$(ls)"
rlRun "popd"
rlRun "gs -sDEVICE=opvp -sDriver=./ghostpdl/contrib/opvp/libopv.so -o output.txt -f ./ghostpdl/examples/*.*"
rlRun "grep opvpOpenPrinter opvp_command_dump.txt"
rlPhaseEnd
rlPhaseStartCleanup
rlFileSubmit opvp_command_dump.txt
rlFileSubmit output.txt
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd