1#!/bin/sh 2# 3# "$Id: 5.7-lprm.sh 11433 2013-11-20 18:57:44Z msweet $" 4# 5# Test the lprm command. 6# 7# Copyright 2007-2011 by Apple Inc. 8# Copyright 1997-2005 by Easy Software Products, all rights reserved. 9# 10# These coded instructions, statements, and computer programs are the 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/". 15# 16 17echo "LPRM Current Test" 18echo "" 19echo " lpr -o job-hold-until=indefinite testfile.jpg" 20$VALGRIND ../berkeley/lpr -o job-hold-until=indefinite testfile.jpg 2>&1 21echo " lprm" 22$VALGRIND ../berkeley/lprm 2>&1 23if test $? != 0; then 24 echo " FAILED" 25 exit 1 26else 27 echo " PASSED" 28fi 29echo "" 30 31echo "LPRM Destination Test" 32echo "" 33echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg" 34$VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite testfile.jpg 2>&1 35echo " lprm Test1" 36$VALGRIND ../berkeley/lprm Test1 2>&1 37if test $? != 0; then 38 echo " FAILED" 39 exit 1 40else 41 echo " PASSED" 42fi 43echo "" 44 45# 46# End of "$Id: 5.7-lprm.sh 11433 2013-11-20 18:57:44Z msweet $". 47# 48