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