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 "LP Default Test"
17 echo " lp testfile.pdf"
18 $VALGRIND ../systemv/lp testfile.pdf 2>&1
27 echo "LP Destination Test"
29 echo " lp -d Test3 -o fit-to-page testfile.jpg"
30 $VALGRIND ../systemv/lp -d Test3 -o fit-to-page testfile.jpg 2>&1
39 echo "LP Options Test"
41 echo " lp -d Test1 -P 1-4 -o job-sheets=classified,classified testfile.pdf"
42 $VALGRIND ../systemv/lp -d Test1 -P 1-4 -o job-sheets=classified,classified testfile.pdf 2>&1
51 echo "LP Flood Test ($1 times in parallel)"
53 echo " lp -d Test1 testfile.jpg"
54 echo " lp -d Test2 testfile.jpg"
57 while test $i -lt $1; do
59 while test $j -le $2; do
60 $VALGRIND ../systemv/lp -d test-$j testfile.jpg 2>&1
64 $VALGRIND ../systemv/lp -d Test1 testfile.jpg 2>&1 &
66 $VALGRIND ../systemv/lp -d Test2 testfile.jpg 2>&1 &
82 echo "LPSTAT Completed Jobs Order Test"
84 echo " lpstat -W completed -o"
85 $VALGRIND ../systemv/lpstat -W completed -o | tee $BASE/lpstat-completed.txt
86 if test "`uniq -d $BASE/lpstat-completed.txt`" != ""; then