|
Packit |
2fc92b |
#!/bin/sh
|
|
Packit |
2fc92b |
#
|
|
Packit |
2fc92b |
# Test the lpq command.
|
|
Packit |
2fc92b |
#
|
|
Packit |
2fc92b |
# Copyright 2007 by Apple Inc.
|
|
Packit |
2fc92b |
# Copyright 1997-2005 by Easy Software Products, all rights reserved.
|
|
Packit |
2fc92b |
#
|
|
Packit |
2fc92b |
# These coded instructions, statements, and computer programs are the
|
|
Packit |
2fc92b |
# property of Apple Inc. and are protected by Federal copyright
|
|
Packit |
2fc92b |
# law. Distribution and use rights are outlined in the file "LICENSE.txt"
|
|
Packit |
2fc92b |
# which should have been included with this file. If this file is
|
|
Packit |
2fc92b |
# file is missing or damaged, see the license at "http://www.cups.org/".
|
|
Packit |
2fc92b |
#
|
|
Packit |
2fc92b |
|
|
Packit |
2fc92b |
echo "LPQ Test"
|
|
Packit |
2fc92b |
echo ""
|
|
Packit |
2fc92b |
echo " lpq -P Test1"
|
|
Packit |
2fc92b |
$VALGRIND ../berkeley/lpq -P Test1 2>&1
|
|
Packit |
2fc92b |
if test $? != 0; then
|
|
Packit |
2fc92b |
echo " FAILED"
|
|
Packit |
2fc92b |
exit 1
|
|
Packit |
2fc92b |
else
|
|
Packit |
2fc92b |
echo " PASSED"
|
|
Packit |
2fc92b |
fi
|
|
Packit |
2fc92b |
echo ""
|