]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | #!/bin/sh |
2 | # | |
503b54c9 | 3 | # Test the lpinfo 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 | ||
12 | echo "LPINFO Devices Test" | |
13 | echo "" | |
14 | echo " lpinfo -v" | |
a2326b5b | 15 | $VALGRIND ../systemv/lpinfo -v 2>&1 |
ef416fc2 | 16 | if test $? != 0; then |
17 | echo " FAILED" | |
18 | exit 1 | |
19 | else | |
20 | echo " PASSED" | |
21 | fi | |
22 | echo "" | |
23 | ||
24 | echo "LPINFO Drivers Test" | |
25 | echo "" | |
26 | echo " lpinfo -m" | |
a2326b5b | 27 | $VALGRIND ../systemv/lpinfo -m 2>&1 |
ef416fc2 | 28 | if test $? != 0; then |
29 | echo " FAILED" | |
30 | exit 1 | |
31 | else | |
32 | echo " PASSED" | |
33 | fi | |
34 | echo "" | |
35 | ||
4509bb49 MS |
36 | echo "LPINFO Drivers Test" |
37 | echo "" | |
38 | echo " lpinfo -m | grep -q sample.drv" | |
a2326b5b | 39 | $VALGRIND ../systemv/lpinfo -m | grep -q sample.drv 2>&1 |
4509bb49 MS |
40 | if test $? != 0; then |
41 | echo " FAILED" | |
42 | exit 1 | |
43 | else | |
44 | echo " PASSED" | |
45 | fi | |
46 | echo "" |