]> git.ipfire.org Git - thirdparty/cups.git/blob - test/5.9-lpinfo.sh
Fix unused store - actually use the count we saved.
[thirdparty/cups.git] / test / 5.9-lpinfo.sh
1 #!/bin/sh
2 #
3 # Test the lpinfo command.
4 #
5 # Copyright 2007-2011 by Apple Inc.
6 # Copyright 1997-2005 by Easy Software Products, all rights reserved.
7 #
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/".
13 #
14
15 echo "LPINFO Devices Test"
16 echo ""
17 echo " lpinfo -v"
18 $VALGRIND ../systemv/lpinfo -v 2>&1
19 if test $? != 0; then
20 echo " FAILED"
21 exit 1
22 else
23 echo " PASSED"
24 fi
25 echo ""
26
27 echo "LPINFO Drivers Test"
28 echo ""
29 echo " lpinfo -m"
30 $VALGRIND ../systemv/lpinfo -m 2>&1
31 if test $? != 0; then
32 echo " FAILED"
33 exit 1
34 else
35 echo " PASSED"
36 fi
37 echo ""
38
39 echo "LPINFO Drivers Test"
40 echo ""
41 echo " lpinfo -m | grep -q sample.drv"
42 $VALGRIND ../systemv/lpinfo -m | grep -q sample.drv 2>&1
43 if test $? != 0; then
44 echo " FAILED"
45 exit 1
46 else
47 echo " PASSED"
48 fi
49 echo ""