]>
git.ipfire.org Git - thirdparty/cups.git/blob - test/5.5-lp.sh
5 # Copyright © 2007-2019 by Apple Inc.
6 # Copyright © 1997-2005 by Easy Software Products, all rights reserved.
8 # Licensed under Apache License v2.0. See the file "LICENSE" for more
12 echo "LP Default Test"
14 echo " lp testfile.pdf"
15 $runcups $VALGRIND ..
/systemv
/lp ..
/examples
/testfile.pdf
2>&1
24 echo "LP Destination Test"
26 echo " lp -d Test3 -o fit-to-page testfile.jpg"
27 $runcups $VALGRIND ..
/systemv
/lp -d Test3
-o fit-to-page ..
/examples
/testfile.jpg
2>&1
36 echo "LP Options Test"
38 echo " lp -d Test1 -P 1-4 -o job-sheets=classified,classified testfile.pdf"
39 $runcups $VALGRIND ..
/systemv
/lp -d Test1
-P 1-4 -o job-sheets
=classified
,classified ..
/examples
/testfile.pdf
2>&1
48 echo "LP Flood Test ($1 times in parallel)"
50 echo " lp -d Test1 testfile.jpg"
51 echo " lp -d Test2 testfile.jpg"
54 while test $i -lt $1; do
56 while test $j -le $2; do
57 $runcups $VALGRIND ..
/systemv
/lp -d test-
$j ..
/examples
/testfile.jpg
2>&1
61 $runcups $VALGRIND ..
/systemv
/lp -d Test1 ..
/examples
/testfile.jpg
2>&1 &
63 $runcups $VALGRIND ..
/systemv
/lp -d Test2 ..
/examples
/testfile.jpg
2>&1 &
79 echo "LPSTAT Completed Jobs Order Test"
81 echo " lpstat -W completed -o"
82 $runcups $VALGRIND ..
/systemv
/lpstat
-W completed
-o |
tee $BASE/lpstat-completed.txt
83 if test "`uniq -d $BASE/lpstat-completed.txt`" != ""; then