]> git.ipfire.org Git - thirdparty/cups.git/blame - test/5.4-lpstat.sh
Import CUPS v1.7.1
[thirdparty/cups.git] / test / 5.4-lpstat.sh
CommitLineData
ef416fc2 1#!/bin/sh
2#
61515785 3# "$Id: 5.4-lpstat.sh 11396 2013-11-06 20:09:03Z msweet $"
ef416fc2 4#
5# Test the lpstat command.
6#
a2326b5b 7# Copyright 2007-2011 by Apple Inc.
ef416fc2 8# Copyright 1997-2005 by Easy Software Products, all rights reserved.
9#
10# These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 15#
16
17echo "LPSTAT Test"
18echo ""
19echo " lpstat -t"
a2326b5b 20$VALGRIND ../systemv/lpstat -t 2>&1
ef416fc2 21if test $? != 0; then
22 echo " FAILED"
23 exit 1
24else
25 echo " PASSED"
26fi
27echo ""
28
e07d4801
MS
29echo "LPSTAT Test"
30echo ""
31echo " lpstat -H"
a2326b5b 32server="`$VALGRIND ../systemv/lpstat -H 2>&1`"
e07d4801
MS
33if test $? != 0 -o "x$server" != xlocalhost:8631; then
34 echo " FAILED ($server)"
35 exit 1
36else
37 echo " PASSED ($server)"
38fi
39echo ""
40
ef416fc2 41#
61515785 42# End of "$Id: 5.4-lpstat.sh 11396 2013-11-06 20:09:03Z msweet $".
ef416fc2 43#