]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | #!/bin/sh |
2 | # | |
79a784c4 | 3 | # "$Id$" |
ef416fc2 | 4 | # |
5 | # Test the cancel command. | |
6 | # | |
db8b865d | 7 | # Copyright 2007-2013 by Apple Inc. |
bd7854cb | 8 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 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 "Cancel Destination Test" | |
18 | echo "" | |
839a51c8 | 19 | echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg" |
a2326b5b | 20 | $VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite testfile.jpg 2>&1 |
ef416fc2 | 21 | echo " cancel Test1" |
a2326b5b | 22 | $VALGRIND ../systemv/cancel Test1 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 "Cancel All Test" | |
32 | echo "" | |
bd7854cb | 33 | echo " cancel -a" |
a2326b5b | 34 | $VALGRIND ../systemv/cancel -a 2>&1 |
ef416fc2 | 35 | if test $? != 0; then |
36 | echo " FAILED" | |
37 | exit 1 | |
38 | else | |
39 | echo " PASSED" | |
40 | fi | |
41 | echo "" | |
42 | ||
db8b865d MS |
43 | echo "Purge All Test" |
44 | echo "" | |
45 | echo " cancel -a -x" | |
46 | $VALGRIND ../systemv/cancel -a -x 2>&1 | |
47 | if test $? != 0; then | |
48 | echo " FAILED" | |
49 | exit 1 | |
50 | else | |
51 | echo " PASSED" | |
52 | fi | |
53 | echo "" | |
54 | ||
ef416fc2 | 55 | # |
79a784c4 | 56 | # End of "$Id$". |
ef416fc2 | 57 | # |