]>
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 # 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 "LPSTAT Basic Test"
18 $VALGRIND ..
/systemv
/lpstat
-t 2>&1
27 echo "LPSTAT Enumeration Test"
30 printers
="`$VALGRIND ../systemv/lpstat -e 2>&1`"
31 if test $?
!= 0 -o "x$printers" = x
; then
35 for printer
in $printers; do
42 echo "LPSTAT Get Host Test"
45 server
="`$VALGRIND ../systemv/lpstat -H 2>&1`"
46 if test $?
!= 0 -o "x$server" != x
$CUPS_SERVER; then
47 echo " FAILED ($server)"
50 echo " PASSED ($server)"