]>
git.ipfire.org Git - thirdparty/cups.git/blob - test/5.4-lpstat.sh
3 # Test the lpstat command.
5 # Copyright © 2007-2017 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 "LPSTAT Basic Test"
15 $runcups $VALGRIND ..
/systemv
/lpstat
-t 2>&1
24 echo "LPSTAT Enumeration Test"
27 printers
="`$runcups $VALGRIND ../systemv/lpstat -e 2>&1`"
28 if test $?
!= 0 -o "x$printers" = x
; then
32 for printer
in $printers; do
39 echo "LPSTAT Get Host Test"
42 server
="`$runcups $VALGRIND ../systemv/lpstat -H 2>&1`"
43 if test $?
!= 0 -o "x$server" != x
$CUPS_SERVER; then
44 echo " FAILED ($server)"
47 echo " PASSED ($server)"