]> git.ipfire.org Git - thirdparty/cups.git/blob - test/5.8-cancel.sh
Update test suite for new location of test files.
[thirdparty/cups.git] / test / 5.8-cancel.sh
1 #!/bin/sh
2 #
3 # Test the cancel command.
4 #
5 # Copyright © 2007-2019 by Apple Inc.
6 # Copyright © 1997-2006 by Easy Software Products, all rights reserved.
7 #
8 # Licensed under Apache License v2.0. See the file "LICENSE" for more
9 # information.
10 #
11
12 echo "Cancel Destination Test"
13 echo ""
14 echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg"
15 $runcups $VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1
16 echo " cancel Test1"
17 $runcups $VALGRIND ../systemv/cancel Test1 2>&1
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 ""
28 echo " cancel -a"
29 $runcups $VALGRIND ../systemv/cancel -a 2>&1
30 if test $? != 0; then
31 echo " FAILED"
32 exit 1
33 else
34 echo " PASSED"
35 fi
36 echo ""
37
38 echo "Purge All Test"
39 echo ""
40 echo " cancel -a -x"
41 $runcups $VALGRIND ../systemv/cancel -a -x 2>&1
42 if test $? != 0; then
43 echo " FAILED"
44 exit 1
45 else
46 echo " PASSED"
47 fi
48 echo ""