]> git.ipfire.org Git - thirdparty/cups.git/blob - test/5.7-lprm.sh
Move example ipptool files to the examples directory.
[thirdparty/cups.git] / test / 5.7-lprm.sh
1 #!/bin/sh
2 #
3 # Test the lprm command.
4 #
5 # Copyright © 2007-2011 by Apple Inc.
6 # Copyright © 1997-2005 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 "LPRM Current Test"
13 echo ""
14 echo " lpr -o job-hold-until=indefinite testfile.jpg"
15 $runcups $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite testfile.jpg 2>&1
16 echo " lprm"
17 $runcups $VALGRIND ../berkeley/lprm 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 "LPRM Destination Test"
27 echo ""
28 echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg"
29 $runcups $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite testfile.jpg 2>&1
30 echo " lprm Test1"
31 $runcups $VALGRIND ../berkeley/lprm Test1 2>&1
32 if test $? != 0; then
33 echo " FAILED"
34 exit 1
35 else
36 echo " PASSED"
37 fi
38 echo ""