]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | #!/bin/sh |
2 | # | |
503b54c9 | 3 | # Test the lprm command. |
ef416fc2 | 4 | # |
feb13eea | 5 | # Copyright © 2007-2019 by Apple Inc. |
53f8d64f | 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 | ||
12 | echo "LPRM Current Test" | |
13 | echo "" | |
839a51c8 | 14 | echo " lpr -o job-hold-until=indefinite testfile.jpg" |
feb13eea | 15 | $runcups $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1 |
ef416fc2 | 16 | echo " lprm" |
b37177a7 | 17 | $runcups $VALGRIND ../berkeley/lprm 2>&1 |
ef416fc2 | 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 "" | |
839a51c8 | 28 | echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg" |
feb13eea | 29 | $runcups $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1 |
ef416fc2 | 30 | echo " lprm Test1" |
b37177a7 | 31 | $runcups $VALGRIND ../berkeley/lprm Test1 2>&1 |
ef416fc2 | 32 | if test $? != 0; then |
33 | echo " FAILED" | |
34 | exit 1 | |
35 | else | |
36 | echo " PASSED" | |
37 | fi | |
38 | echo "" |