Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:uninstall:Printing
rasterview
rv-maketestfiles.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rv-maketestfiles.diff of Package rasterview
--- test/maketestfiles.sh | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) Index: test/maketestfiles.sh =================================================================== --- test/maketestfiles.sh.orig +++ test/maketestfiles.sh @@ -7,7 +7,7 @@ # # ./maketestfiles.sh [depth(s)] [colorspace(s)] [order(s)] [all] # [pstoraster | imagetoraster | cgpdftoraster | -# cgimagetoraster] +# cgimagetoraster | gstoraster] # PPD=rasterview.ppd; export PPD @@ -22,6 +22,16 @@ else filterpath="/usr/lib/cups/filter" fi +if ! test -w $basedir; then + basedir=`readlink -n -f $basedir` + tmpdir=`mktemp -d --tmpdir rasterview_test.XXXX` + echo -e "\nUsing $tmpdir for output ...\n" + cd $tmpdir + for file in $PPD testprint.jpg testprint.ps testprint.pdf ; do + ln -s $basedir/$file . + done +fi + for file in imagetoraster cgimagetoraster; do if test -x $filterpath/$file; then filter=$file @@ -48,8 +58,12 @@ for option in $*; do ICCE | ICCF) cspaces="$cspaces $option" ;; - pstoraster | imagetoraster | cgimagetoraster | cgpdftoraster) - filter="$option" + gstoraster | pstoraster | imagetoraster | cgimagetoraster | cgpdftoraster) + if test -x $filterpath/$option; then + filter="$option" + else + echo "Filter $option not found, skipping ..." + fi ;; all) cspaces="W RGB RGBA K CMY YMC CMYK YMCK KCMY KCMYcm" @@ -129,6 +143,15 @@ for cspace in $cspaces; do echo -n $filter-$cspace-$depth-$order.ras: case $filter in + gstoraster) + ($filterpath/pstops job user title 1 \ + "ColorModel=$cspace cupsBitsPerColor=$depth cupsColorOrder=$order" \ + $basedir/testprint.ps | \ + $filterpath/gstoraster job user \ + title 1 "") \ + > $filter-$cspace-$depth-$order.ras \ + 2> $filter-$cspace-$depth-$order.log + ;; pstoraster) ($filterpath/pstops job user title 1 \ "ColorModel=$cspace cupsBitsPerColor=$depth cupsColorOrder=$order" \
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor