]>
git.ipfire.org Git - thirdparty/cups.git/blob - test/5.6-lpr.sh
3 # Test the lpr command.
5 # Copyright 2007-2014 by Apple Inc.
6 # Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 # These coded instructions, statements, and computer programs are the
9 # property of Apple Inc. and are protected by Federal copyright
10 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
11 # which should have been included with this file. If this file is
12 # file is missing or damaged, see the license at "http://www.cups.org/".
15 echo "LPR Default Test"
17 echo " lpr testfile.pdf"
18 $VALGRIND ..
/berkeley
/lpr testfile.pdf
2>&1
27 echo "LPR Destination Test"
29 echo " lpr -P Test3 -o fit-to-page testfile.jpg"
30 $VALGRIND ..
/berkeley
/lpr
-P Test3
-o fit-to-page testfile.jpg
2>&1
39 echo "LPR Options Test"
41 echo " lpr -P Test1 -o number-up=4 -o job-sheets=standard,none testfile.pdf"
42 $VALGRIND ..
/berkeley
/lpr
-P Test1
-o number-up
=4 -o job-sheets
=standard
,none testfile.pdf
2>&1
51 echo "LPR Flood Test ($1 times in parallel)"
53 echo " lpr -P Test1 testfile.jpg"
54 echo " lpr -P Test2 testfile.jpg"
57 while test $i -lt $1; do
59 while test $j -le $2; do
60 $VALGRIND ..
/berkeley
/lpr
-P test-
$j testfile.jpg
2>&1
64 $VALGRIND ..
/berkeley
/lpr
-P Test1 testfile.jpg
2>&1 &
66 $VALGRIND ..
/berkeley
/lpr
-P Test2 testfile.jpg
2>&1 &