]>
git.ipfire.org Git - thirdparty/cups.git/blob - test/5.1-lpadmin.sh
3 # Test the lpadmin command.
5 # Copyright 2007-2013 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 "Add Printer Test"
17 echo " lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/deskjet.ppd"
18 $VALGRIND ..
/systemv
/lpadmin
-p Test3
-v file:/dev
/null
-E -m drv
:///sample.drv
/deskjet.ppd
2>&1
23 if test -f $CUPS_SERVERROOT/ppd
/Test3.ppd
; then
26 echo " FAILED (No PPD)"
32 echo "Modify Printer Test"
34 echo " lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4"
35 $VALGRIND ..
/systemv
/lpadmin
-p Test3
-v file:/tmp
/Test3
-o PageSize
=A4
2>&1
44 echo "Delete Printer Test"
46 echo " lpadmin -x Test3"
47 $VALGRIND ..
/systemv
/lpadmin
-x Test3
2>&1
56 echo "Add Shared Printer Test"
58 echo " lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere"
59 $VALGRIND ..
/systemv
/lpadmin
-p Test3
-E -v ipp
://localhost
:$IPP_PORT/printers
/Test2
-m everywhere
2>&1