1#!/bin/sh
2#
3# "$Id: 5.9-lpinfo.sh 11433 2013-11-20 18:57:44Z msweet $"
4#
5#   Test the lpinfo command.
6#
7#   Copyright 2007-2011 by Apple Inc.
8#   Copyright 1997-2005 by Easy Software Products, all rights reserved.
9#
10#   These coded instructions, statements, and computer programs are the
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/".
15#
16
17echo "LPINFO Devices Test"
18echo ""
19echo "    lpinfo -v"
20$VALGRIND ../systemv/lpinfo -v 2>&1
21if test $? != 0; then
22	echo "    FAILED"
23	exit 1
24else
25	echo "    PASSED"
26fi
27echo ""
28
29echo "LPINFO Drivers Test"
30echo ""
31echo "    lpinfo -m"
32$VALGRIND ../systemv/lpinfo -m 2>&1
33if test $? != 0; then
34	echo "    FAILED"
35	exit 1
36else
37	echo "    PASSED"
38fi
39echo ""
40
41echo "LPINFO Drivers Test"
42echo ""
43echo "    lpinfo -m | grep -q sample.drv"
44$VALGRIND ../systemv/lpinfo -m | grep -q sample.drv 2>&1
45if test $? != 0; then
46	echo "    FAILED"
47	exit 1
48else
49	echo "    PASSED"
50fi
51echo ""
52
53#
54# End of "$Id: 5.9-lpinfo.sh 11433 2013-11-20 18:57:44Z msweet $".
55#
56