]>
git.ipfire.org Git - thirdparty/cups.git/blob - test/5.6-lpr.sh
3 # "$Id: 5.6-lpr.sh 7409 2008-03-29 00:26:03Z mike $"
5 # Test the lpr command.
7 # Copyright 2007-2009 by Apple Inc.
8 # Copyright 1997-2005 by Easy Software Products, all rights reserved.
10 # These coded instructions, statements, and computer programs are the
11 # property of Apple Inc. and are protected by Federal copyright
12 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 # which should have been included with this file. If this file is
14 # file is missing or damaged, see the license at "http://www.cups.org/".
17 echo "LPR Default Test"
19 echo " lpr testfile.pdf"
20 ..
/berkeley
/lpr testfile.pdf
2>&1
29 echo "LPR Destination Test"
31 echo " lpr -P Test2 testfile.jpg"
32 ..
/berkeley
/lpr
-P Test2 testfile.jpg
2>&1
41 echo "LPR Options Test"
43 echo " lpr -P Test1 -o number-up=4 -o job-sheets=standard,none testfile.pdf"
44 ..
/berkeley
/lpr
-P Test1
-o number-up
=4 -o job-sheets
=standard
,none testfile.pdf
2>&1
53 echo "LPR Flood Test ($1 times in parallel)"
55 echo " lpr -P Test1 testfile.jpg"
56 echo " lpr -P Test2 testfile.jpg"
58 while test $i -lt $1; do
59 echo " flood copy $i..." 1>&2
62 while test $j -le $2; do
63 ..
/berkeley
/lpr
-P test-
$j testfile.jpg
2>&1
67 ..
/berkeley
/lpr
-P Test1 testfile.jpg
2>&1 &
68 ..
/berkeley
/lpr
-P Test2 testfile.jpg
2>&1 &
85 # End of "$Id: 5.6-lpr.sh 7409 2008-03-29 00:26:03Z mike $".