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