]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | #!/bin/sh |
2 | # | |
75bd9771 | 3 | # "$Id: 5.1-lpadmin.sh 7494 2008-04-25 18:36:46Z mike $" |
ef416fc2 | 4 | # |
5 | # Test the lpadmin command. | |
6 | # | |
bc44d920 | 7 | # Copyright 2007 by Apple Inc. |
ef416fc2 | 8 | # Copyright 1997-2005 by Easy Software Products, all rights reserved. |
9 | # | |
10 | # These coded instructions, statements, and computer programs are the | |
bc44d920 | 11 | # property of Apple Inc. and are protected by Federal copyright |
12 | # law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
13 | # which should have been included with this file. If this file is | |
14 | # file is missing or damaged, see the license at "http://www.cups.org/". | |
ef416fc2 | 15 | # |
16 | ||
17 | echo "Add Printer Test" | |
18 | echo "" | |
7a14d768 MS |
19 | echo " lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/DESKJET.PPD" |
20 | ../systemv/lpadmin -p Test3 -v file:/dev/null -E -m drv:///sample.drv/DESKJET.PPD 2>&1 | |
ef416fc2 | 21 | if test $? != 0; then |
22 | echo " FAILED" | |
23 | exit 1 | |
24 | else | |
25 | echo " PASSED" | |
26 | fi | |
27 | echo "" | |
28 | ||
29 | echo "Modify Printer Test" | |
30 | echo "" | |
31 | echo " lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4" | |
32 | ../systemv/lpadmin -p Test3 -v file:/tmp/Test3 -o PageSize=A4 2>&1 | |
33 | if test $? != 0; then | |
34 | echo " FAILED" | |
35 | exit 1 | |
36 | else | |
37 | echo " PASSED" | |
38 | fi | |
39 | echo "" | |
40 | ||
41 | echo "Delete Printer Test" | |
42 | echo "" | |
43 | echo " lpadmin -x Test3" | |
44 | ../systemv/lpadmin -x Test3 2>&1 | |
45 | if test $? != 0; then | |
46 | echo " FAILED" | |
47 | exit 1 | |
48 | else | |
49 | echo " PASSED" | |
50 | fi | |
51 | echo "" | |
52 | ||
53 | # | |
75bd9771 | 54 | # End of "$Id: 5.1-lpadmin.sh 7494 2008-04-25 18:36:46Z mike $". |
ef416fc2 | 55 | # |