]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | #!/bin/sh |
2 | # | |
503b54c9 | 3 | # Test the cancel command. |
ef416fc2 | 4 | # |
503b54c9 MS |
5 | # Copyright 2007-2013 by Apple Inc. |
6 | # Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
ef416fc2 | 7 | # |
503b54c9 MS |
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/". | |
ef416fc2 | 13 | # |
14 | ||
15 | echo "Cancel Destination Test" | |
16 | echo "" | |
839a51c8 | 17 | echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg" |
a2326b5b | 18 | $VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite testfile.jpg 2>&1 |
ef416fc2 | 19 | echo " cancel Test1" |
a2326b5b | 20 | $VALGRIND ../systemv/cancel Test1 2>&1 |
ef416fc2 | 21 | if test $? != 0; then |
22 | echo " FAILED" | |
23 | exit 1 | |
24 | else | |
25 | echo " PASSED" | |
26 | fi | |
27 | echo "" | |
28 | ||
29 | echo "Cancel All Test" | |
30 | echo "" | |
bd7854cb | 31 | echo " cancel -a" |
a2326b5b | 32 | $VALGRIND ../systemv/cancel -a 2>&1 |
ef416fc2 | 33 | if test $? != 0; then |
34 | echo " FAILED" | |
35 | exit 1 | |
36 | else | |
37 | echo " PASSED" | |
38 | fi | |
39 | echo "" | |
40 | ||
db8b865d MS |
41 | echo "Purge All Test" |
42 | echo "" | |
43 | echo " cancel -a -x" | |
44 | $VALGRIND ../systemv/cancel -a -x 2>&1 | |
45 | if test $? != 0; then | |
46 | echo " FAILED" | |
47 | exit 1 | |
48 | else | |
49 | echo " PASSED" | |
50 | fi | |
51 | echo "" |