3 # "$Id: 5.5-lp.sh 12066 2014-07-30 18:30:44Z msweet $"
7 # Copyright 2007-2014 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 "LP Default Test"
19 echo " lp testfile.pdf"
20 $VALGRIND ../systemv/lp testfile.pdf 2>&1
29 echo "LP Destination Test"
31 echo " lp -d Test3 -o fit-to-page testfile.jpg"
32 $VALGRIND ../systemv/lp -d Test3 -o fit-to-page testfile.jpg 2>&1
41 echo "LP Options Test"
43 echo " lp -d Test1 -P 1-4 -o job-sheets=classified,classified testfile.pdf"
44 $VALGRIND ../systemv/lp -d Test1 -P 1-4 -o job-sheets=classified,classified testfile.pdf 2>&1
53 echo "LP Flood Test ($1 times in parallel)"
55 echo " lp -d Test1 testfile.jpg"
56 echo " lp -d Test2 testfile.jpg"
59 while test $i -lt $1; do
61 while test $j -le $2; do
62 $VALGRIND ../systemv/lp -d test-$j testfile.jpg 2>&1
66 $VALGRIND ../systemv/lp -d Test1 testfile.jpg 2>&1 &
68 $VALGRIND ../systemv/lp -d Test2 testfile.jpg 2>&1 &
84 echo "LPSTAT Completed Jobs Order Test"
86 echo " lpstat -W completed -o"
87 $VALGRIND ../systemv/lpstat -W completed -o | tee $BASE/lpstat-completed.txt
88 if test "`uniq -d $BASE/lpstat-completed.txt`" != ""; then
98 # End of "$Id: 5.5-lp.sh 12066 2014-07-30 18:30:44Z msweet $".