]> git.ipfire.org Git - thirdparty/cups.git/blame_incremental - test/5.8-cancel.sh
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / test / 5.8-cancel.sh
... / ...
CommitLineData
1#!/bin/sh
2#
3# Test the cancel command.
4#
5# Copyright 2007-2013 by Apple Inc.
6# Copyright 1997-2006 by Easy Software Products, all rights reserved.
7#
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/".
13#
14
15echo "Cancel Destination Test"
16echo ""
17echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg"
18$VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite testfile.jpg 2>&1
19echo " cancel Test1"
20$VALGRIND ../systemv/cancel Test1 2>&1
21if test $? != 0; then
22 echo " FAILED"
23 exit 1
24else
25 echo " PASSED"
26fi
27echo ""
28
29echo "Cancel All Test"
30echo ""
31echo " cancel -a"
32$VALGRIND ../systemv/cancel -a 2>&1
33if test $? != 0; then
34 echo " FAILED"
35 exit 1
36else
37 echo " PASSED"
38fi
39echo ""
40
41echo "Purge All Test"
42echo ""
43echo " cancel -a -x"
44$VALGRIND ../systemv/cancel -a -x 2>&1
45if test $? != 0; then
46 echo " FAILED"
47 exit 1
48else
49 echo " PASSED"
50fi
51echo ""