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