]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | #!/bin/sh |
2 | # | |
75bd9771 | 3 | # "$Id: 5.7-lprm.sh 7409 2008-03-29 00:26:03Z mike $" |
ef416fc2 | 4 | # |
5 | # Test the lprm command. | |
6 | # | |
a2326b5b | 7 | # Copyright 2007-2011 by Apple Inc. |
ef416fc2 | 8 | # Copyright 1997-2005 by Easy Software Products, all rights reserved. |
9 | # | |
10 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
ef416fc2 | 15 | # |
16 | ||
17 | echo "LPRM Current Test" | |
18 | echo "" | |
839a51c8 | 19 | echo " lpr -o job-hold-until=indefinite testfile.jpg" |
a2326b5b | 20 | $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite testfile.jpg 2>&1 |
ef416fc2 | 21 | echo " lprm" |
a2326b5b | 22 | $VALGRIND ../berkeley/lprm 2>&1 |
ef416fc2 | 23 | if test $? != 0; then |
24 | echo " FAILED" | |
25 | exit 1 | |
26 | else | |
27 | echo " PASSED" | |
28 | fi | |
29 | echo "" | |
30 | ||
31 | echo "LPRM Destination Test" | |
32 | echo "" | |
839a51c8 | 33 | echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg" |
a2326b5b | 34 | $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite testfile.jpg 2>&1 |
ef416fc2 | 35 | echo " lprm Test1" |
a2326b5b | 36 | $VALGRIND ../berkeley/lprm Test1 2>&1 |
ef416fc2 | 37 | if test $? != 0; then |
38 | echo " FAILED" | |
39 | exit 1 | |
40 | else | |
41 | echo " PASSED" | |
42 | fi | |
43 | echo "" | |
44 | ||
45 | # | |
75bd9771 | 46 | # End of "$Id: 5.7-lprm.sh 7409 2008-03-29 00:26:03Z mike $". |
ef416fc2 | 47 | # |