]> git.ipfire.org Git - thirdparty/cups.git/blame - test/5.8-cancel.sh
Update ipp documentation to reflect the behavior of configuring WiFi on IPP USB printers.
[thirdparty/cups.git] / test / 5.8-cancel.sh
CommitLineData
ef416fc2 1#!/bin/sh
2#
503b54c9 3# Test the cancel command.
ef416fc2 4#
feb13eea 5# Copyright © 2007-2019 by Apple Inc.
53f8d64f 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
12echo "Cancel Destination Test"
13echo ""
839a51c8 14echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg"
feb13eea 15$runcups $VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1
ef416fc2 16echo " cancel Test1"
b37177a7 17$runcups $VALGRIND ../systemv/cancel Test1 2>&1
ef416fc2 18if test $? != 0; then
19 echo " FAILED"
20 exit 1
21else
22 echo " PASSED"
23fi
24echo ""
25
26echo "Cancel All Test"
27echo ""
bd7854cb 28echo " cancel -a"
b37177a7 29$runcups $VALGRIND ../systemv/cancel -a 2>&1
ef416fc2 30if test $? != 0; then
31 echo " FAILED"
32 exit 1
33else
34 echo " PASSED"
35fi
36echo ""
37
db8b865d
MS
38echo "Purge All Test"
39echo ""
40echo " cancel -a -x"
b37177a7 41$runcups $VALGRIND ../systemv/cancel -a -x 2>&1
db8b865d
MS
42if test $? != 0; then
43 echo " FAILED"
44 exit 1
45else
46 echo " PASSED"
47fi
48echo ""