]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/5.9-lpinfo.sh
Support TIFF files in ipptool (STR #4418)
[thirdparty/cups.git] / test / 5.9-lpinfo.sh
index 0ba2e7430fabd6d222f1b51a6eba9573eb105683..adb041b0ad6a122acd732294f9ce9a2a6e35c65c 100644 (file)
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# "$Id: 5.9-lpinfo.sh 6649 2007-07-11 21:46:42Z mike $"
+# "$Id$"
 #
 #   Test the lpinfo command.
 #
-#   Copyright 2007 by Apple Inc.
+#   Copyright 2007-2011 by Apple Inc.
 #   Copyright 1997-2005 by Easy Software Products, all rights reserved.
 #
 #   These coded instructions, statements, and computer programs are the
@@ -17,7 +17,7 @@
 echo "LPINFO Devices Test"
 echo ""
 echo "    lpinfo -v"
-../systemv/lpinfo -v 2>&1
+$VALGRIND ../systemv/lpinfo -v 2>&1
 if test $? != 0; then
        echo "    FAILED"
        exit 1
@@ -29,7 +29,19 @@ echo ""
 echo "LPINFO Drivers Test"
 echo ""
 echo "    lpinfo -m"
-../systemv/lpinfo -m 2>&1
+$VALGRIND ../systemv/lpinfo -m 2>&1
+if test $? != 0; then
+       echo "    FAILED"
+       exit 1
+else
+       echo "    PASSED"
+fi
+echo ""
+
+echo "LPINFO Drivers Test"
+echo ""
+echo "    lpinfo -m | grep -q sample.drv"
+$VALGRIND ../systemv/lpinfo -m | grep -q sample.drv 2>&1
 if test $? != 0; then
        echo "    FAILED"
        exit 1
@@ -39,5 +51,5 @@ fi
 echo ""
 
 #
-# End of "$Id: 5.9-lpinfo.sh 6649 2007-07-11 21:46:42Z mike $".
+# End of "$Id$".
 #