]> git.ipfire.org Git - thirdparty/cups.git/blob - test/5.7-lprm.sh
e456ec0832aaf9370ac19f1d14fef2cdbfc69bce
[thirdparty/cups.git] / test / 5.7-lprm.sh
1 #!/bin/sh
2 #
3 # Test the lprm 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 "LPRM Current Test"
16 echo ""
17 echo " lpr -o job-hold-until=indefinite testfile.jpg"
18 $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite testfile.jpg 2>&1
19 echo " lprm"
20 $VALGRIND ../berkeley/lprm 2>&1
21 if test $? != 0; then
22 echo " FAILED"
23 exit 1
24 else
25 echo " PASSED"
26 fi
27 echo ""
28
29 echo "LPRM Destination Test"
30 echo ""
31 echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg"
32 $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite testfile.jpg 2>&1
33 echo " lprm Test1"
34 $VALGRIND ../berkeley/lprm Test1 2>&1
35 if test $? != 0; then
36 echo " FAILED"
37 exit 1
38 else
39 echo " PASSED"
40 fi
41 echo ""