]>
git.ipfire.org Git - thirdparty/cups.git/blob - test/5.1-lpadmin.sh
3 # "$Id: 5.1-lpadmin.sh 12393 2014-12-19 15:33:22Z msweet $"
5 # Test the lpadmin command.
7 # Copyright 2007-2013 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 "Add Printer Test"
19 echo " lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/deskjet.ppd"
20 $VALGRIND ..
/systemv
/lpadmin
-p Test3
-v file:/dev
/null
-E -m drv
:///sample.drv
/deskjet.ppd
2>&1
25 if test -f $CUPS_SERVERROOT/ppd
/Test3.ppd
; then
28 echo " FAILED (No PPD)"
34 echo "Modify Printer Test"
36 echo " lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4"
37 $VALGRIND ..
/systemv
/lpadmin
-p Test3
-v file:/tmp
/Test3
-o PageSize
=A4
2>&1
46 echo "Delete Printer Test"
48 echo " lpadmin -x Test3"
49 $VALGRIND ..
/systemv
/lpadmin
-x Test3
2>&1
58 echo "Add Shared Printer Test"
60 echo " lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m raw"
61 $VALGRIND ..
/systemv
/lpadmin
-p Test3
-E -v ipp
://localhost
:$IPP_PORT/printers
/Test2
-m raw
2>&1
71 # End of "$Id: 5.1-lpadmin.sh 12393 2014-12-19 15:33:22Z msweet $".