]> git.ipfire.org Git - thirdparty/cups.git/blame - test/5.4-lpstat.sh
Sync up with changes from IPP sample code project.
[thirdparty/cups.git] / test / 5.4-lpstat.sh
CommitLineData
ef416fc2 1#!/bin/sh
2#
503b54c9 3# Test the lpstat command.
ef416fc2 4#
503b54c9
MS
5# Copyright 2007-2011 by Apple Inc.
6# Copyright 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 7#
503b54c9
MS
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/".
ef416fc2 13#
14
15echo "LPSTAT Test"
16echo ""
17echo " lpstat -t"
a2326b5b 18$VALGRIND ../systemv/lpstat -t 2>&1
ef416fc2 19if test $? != 0; then
20 echo " FAILED"
21 exit 1
22else
23 echo " PASSED"
24fi
25echo ""
26
e07d4801
MS
27echo "LPSTAT Test"
28echo ""
29echo " lpstat -H"
a2326b5b 30server="`$VALGRIND ../systemv/lpstat -H 2>&1`"
2cf627f0 31if test $? != 0 -o "x$server" != x$CUPS_SERVER; then
e07d4801
MS
32 echo " FAILED ($server)"
33 exit 1
34else
35 echo " PASSED ($server)"
36fi
37echo ""