3 # Test the lpadmin command.
5 # Copyright © 2007-2018 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 "Add Printer Test"
14 echo " lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/deskjet.ppd"
15 $runcups $VALGRIND ../systemv/lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/deskjet.ppd 2>&1
20 if test -f $CUPS_SERVERROOT/ppd/Test3.ppd; then
23 echo " FAILED (No PPD)"
29 echo "Modify Printer Test"
31 echo " lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4"
32 $runcups $VALGRIND ../systemv/lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4 2>&1
41 echo "Delete Printer Test"
43 echo " lpadmin -x Test3"
44 $runcups $VALGRIND ../systemv/lpadmin -x Test3 2>&1
53 echo "Add Shared Printer Test"
55 echo " lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere"
56 $runcups $VALGRIND ../systemv/lpadmin -p Test3 -E -v ipp://localhost:$IPP_PORT/printers/Test2 -m everywhere 2>&1