]> git.ipfire.org Git - thirdparty/cups.git/blame - test/5.7-lprm.sh
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / test / 5.7-lprm.sh
CommitLineData
ef416fc2 1#!/bin/sh
2#
503b54c9 3# Test the lprm command.
ef416fc2 4#
503b54c9
MS
5# Copyright 2007-2011 by Apple Inc.
6# Copyright 1997-2005 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
15echo "LPRM Current Test"
16echo ""
839a51c8 17echo " lpr -o job-hold-until=indefinite testfile.jpg"
a2326b5b 18$VALGRIND ../berkeley/lpr -o job-hold-until=indefinite testfile.jpg 2>&1
ef416fc2 19echo " lprm"
a2326b5b 20$VALGRIND ../berkeley/lprm 2>&1
ef416fc2 21if test $? != 0; then
22 echo " FAILED"
23 exit 1
24else
25 echo " PASSED"
26fi
27echo ""
28
29echo "LPRM Destination Test"
30echo ""
839a51c8 31echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg"
a2326b5b 32$VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite testfile.jpg 2>&1
ef416fc2 33echo " lprm Test1"
a2326b5b 34$VALGRIND ../berkeley/lprm Test1 2>&1
ef416fc2 35if test $? != 0; then
36 echo " FAILED"
37 exit 1
38else
39 echo " PASSED"
40fi
41echo ""