]> git.ipfire.org Git - thirdparty/cups.git/blob - test/5.5-lp.sh
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / test / 5.5-lp.sh
1 #!/bin/sh
2 #
3 # "$Id: 5.5-lp.sh 177 2006-06-21 00:20:03Z jlovell $"
4 #
5 # Test the lp command.
6 #
7 # Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 #
9 # These coded instructions, statements, and computer programs are the
10 # property of Easy Software Products and are protected by Federal
11 # copyright law. Distribution and use rights are outlined in the file
12 # "LICENSE.txt" which should have been included with this file. If this
13 # file is missing or damaged please contact Easy Software Products
14 # at:
15 #
16 # Attn: CUPS Licensing Information
17 # Easy Software Products
18 # 44141 Airport View Drive, Suite 204
19 # Hollywood, Maryland 20636 USA
20 #
21 # Voice: (301) 373-9600
22 # EMail: cups-info@cups.org
23 # WWW: http://www.cups.org
24 #
25
26 echo "LP Default Test"
27 echo ""
28 echo " lp testfile.jpg"
29 ../systemv/lp testfile.jpg 2>&1
30 if test $? != 0; then
31 echo " FAILED"
32 exit 1
33 else
34 echo " PASSED"
35 fi
36 echo ""
37
38 echo "LP Destination Test"
39 echo ""
40 echo " lp -d Test1 testfile.jpg"
41 ../systemv/lp -d Test1 testfile.jpg 2>&1
42 if test $? != 0; then
43 echo " FAILED"
44 exit 1
45 else
46 echo " PASSED"
47 fi
48 echo ""
49
50 echo "LP Flood Test"
51 echo ""
52 echo " lp -d Test1 testfile.jpg ($1 times in parallel)"
53 i=0
54 while test $i -lt $1; do
55 echo " flood copy $i..." 1>&2
56 ../systemv/lp -d Test1 testfile.jpg 2>&1 &
57 lppid=$!
58 i=`expr $i + 1`
59 done
60 wait $lppid
61 if test $? != 0; then
62 echo " FAILED"
63 exit 1
64 else
65 echo " PASSED"
66 fi
67 echo ""
68
69 #
70 # End of "$Id: 5.5-lp.sh 177 2006-06-21 00:20:03Z jlovell $".
71 #